-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure recovery supports installing Ubuntu Touch #2505
Comments
recoveries are updated over systemimage, right? so we can assume it to be there after the next ota? we'll probably also have to update some configs (eg https://github.com/ubports/installer-configs/blob/master/v2/devices/FP2.yml#L48) to make sure we're downloading the right version. |
this depends on the device. what do you think about adding a new method to call in the installer config to verify recovery? until most devices are updated and we can move the check to be opt-out. |
Some prerequisites for this in ubports/promise-android-tools#61. Making it opt-in during the rollout is a good idea. I can imagine two ways this could be done. a) The - actions:
- systemimage:install:
verify_recovery: true b) A special - actions:
- adb:assert_prop:
property: "ro.ubuntu.recovery"
value: "true"
- systemimage:assert_capable_recovery:
fallback:
- <steps needed to install a capable recovery> |
i really like the potential scaling and possibilities of an
then it we can also reuse that to also implement a), which does the |
i think we should be able to implement regex support there, that way all of those things could be done! Also, very good point, it doesn't have to be one or the other! the systemimage step is already implemented as a sort of meta-step that just "creates" steps to be executed by other plugins, so the actual logic does not need to be duplicated. kinda excited about the possibilities of this :] |
```yml - actions: - adb:assert_prop: prop: "ro.ubuntu.recovery" value: "true" - actions: - fastboot:assert_var: variable: "ro.ubuntu.recovery" value: "true" ```
Required for ubports/ubports-installer#2505. Example: ```yml - adb:assert_prop: prop: "ro.ubuntu.recovery" value: "true" - fastboot:assert_var: variable: "ro.ubuntu.recovery" value: "true" - adb:assert_prop: prop: "ro.ubuntu.recovery" regex: pattern: "true" flags: "i" - fastboot:assert_var: variable: "ro.ubuntu.recovery" regex: pattern: "true" flags: "i" - systemimage:install: verify_recovery: true ```
Add fastboot:assert_var and adb:assert_prop actions for #2505
```yml - actions: - adb:assert_prop: prop: "ro.ubuntu.recovery" value: "true" - actions: - fastboot:assert_var: variable: "ro.ubuntu.recovery" value: "true" ```
See: ubports/halium_bootable_recovery#22
The text was updated successfully, but these errors were encountered: