Skip to content
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

add a final recovery flash after installing the system image #406

Conversation

freechelmi
Copy link
Contributor

in a lot of scenario the recovery is not yet installed after the system installation
This PR ensure that we always flash the recovery after the system to be sure that OTA updates can be done.

@MagicLike
Copy link
Member

MagicLike commented Dec 29, 2023

This should be optional / deactivatable / activatable either via UI or via config, as it can influence compatibility on some devices.

@@ -292,7 +292,12 @@ def adb_twrp_wipe_and_install(
# if not an a/b-device just stay in twrp
pass
else:
for line in adb_reboot(bin_path=bin_path):
#recovery might not be installed yet , we reboot to fastboot to flash it
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here a adb_reboot_recovery would be needed.

But why only flash it afterwards? If flashing twrp directly is save, we could do it directly and run fastboot_flash_recovery to begin with. (like it is done for example for Xiaomi recoveries)

@freechelmi freechelmi closed this Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants