Loading install/install.cpp +10 −2 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ #include <android-base/strings.h> #include <android-base/unique_fd.h> #include "bootloader_message/bootloader_message.h" #include "install/snapshot_utils.h" #include "install/spl_check.h" #include "install/wipe_data.h" Loading Loading @@ -418,10 +419,17 @@ static InstallResult TryUpdateBinary(Package* package, bool* wipe_cache, return INSTALL_ERROR; } const auto reboot_to_recovery = [] { if (std::string err; !clear_bootloader_message(&err)) { LOG(ERROR) << "Failed to clear BCB message: " << err; } Reboot("userrequested,recovery,ui"); }; static bool ab_package_installed = false; if (ab_package_installed) { if (ask_to_ab_reboot(device)) { Reboot("userrequested,recovery,ui"); reboot_to_recovery(); } return INSTALL_ERROR; } Loading Loading @@ -614,7 +622,7 @@ static InstallResult TryUpdateBinary(Package* package, bool* wipe_cache, ab_package_installed = true; PerformPowerwashIfRequired(zip, device); if (ask_to_ab_reboot(device)) { Reboot("userrequested,recovery,ui"); reboot_to_recovery(); } } Loading Loading
install/install.cpp +10 −2 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ #include <android-base/strings.h> #include <android-base/unique_fd.h> #include "bootloader_message/bootloader_message.h" #include "install/snapshot_utils.h" #include "install/spl_check.h" #include "install/wipe_data.h" Loading Loading @@ -418,10 +419,17 @@ static InstallResult TryUpdateBinary(Package* package, bool* wipe_cache, return INSTALL_ERROR; } const auto reboot_to_recovery = [] { if (std::string err; !clear_bootloader_message(&err)) { LOG(ERROR) << "Failed to clear BCB message: " << err; } Reboot("userrequested,recovery,ui"); }; static bool ab_package_installed = false; if (ab_package_installed) { if (ask_to_ab_reboot(device)) { Reboot("userrequested,recovery,ui"); reboot_to_recovery(); } return INSTALL_ERROR; } Loading Loading @@ -614,7 +622,7 @@ static InstallResult TryUpdateBinary(Package* package, bool* wipe_cache, ab_package_installed = true; PerformPowerwashIfRequired(zip, device); if (ask_to_ab_reboot(device)) { Reboot("userrequested,recovery,ui"); reboot_to_recovery(); } } Loading