diff options
| author | Joseph Annareddy <javelinanddart@gmail.com> | 2023-08-16 12:04:56 -0400 |
|---|---|---|
| committer | Joseph Annareddy <javelinanddart@gmail.com> | 2023-08-16 13:56:30 -0400 |
| commit | e5c3f128ca728ae53c1f9606e79f85df817bdeee (patch) | |
| tree | d79214303d7add7e7d50a7eaaac9645dc2f8b54f /install | |
| parent | a18688e5b8ebd59678f75a7046e0291ff1475c1c (diff) | |
recovery: Bypass reboot prompt for sideload-auto-reboot
When we want to automatically reboot after a sideload, it doesn't make
much sense to try and prompt the user for a reboot into recovery.
Change-Id: Id0195965362b62bf940caba1f83ffe12191a73c6
Diffstat (limited to 'install')
| -rw-r--r-- | install/install.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/install.cpp b/install/install.cpp index 11a6b3ff..979616dc 100644 --- a/install/install.cpp +++ b/install/install.cpp @@ -587,7 +587,7 @@ static InstallResult TryUpdateBinary(Package* package, bool* wipe_cache, if (package_is_ab) { ab_package_installed = true; PerformPowerwashIfRequired(zip, device); - if (ask_to_ab_reboot(device)) { + if (!ui->IsSideloadAutoReboot() && ask_to_ab_reboot(device)) { reboot_to_recovery(); } } |
