Loading install/install.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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(); } } Loading recovery.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -966,6 +966,7 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri if (!sideload_auto_reboot) { ui->ShowText(true); } ui->SetSideloadAutoReboot(sideload_auto_reboot); status = ApplyFromAdb(device, false /* rescue_mode */, &next_action); ui->Print("\nInstall from ADB complete (status: %d).\n", status); if (sideload_auto_reboot) { Loading recovery_ui/include/recovery_ui/ui.h +10 −0 Original line number Diff line number Diff line Loading @@ -297,6 +297,14 @@ class RecoveryUI { EnqueueKey(KEY_REFRESH); } bool IsSideloadAutoReboot() const { return sideload_auto_reboot_; } void SetSideloadAutoReboot(bool sar) { sideload_auto_reboot_ = sar; } protected: void EnqueueKey(int key_code); void EnqueueTouch(const Point& pos); Loading @@ -314,6 +322,8 @@ class RecoveryUI { bool fastbootd_logo_enabled_; bool sideload_auto_reboot_; private: enum class ScreensaverState { DISABLED, Loading recovery_ui/ui.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ RecoveryUI::RecoveryUI() max_brightness_file_(MAX_BRIGHTNESS_FILE), touch_screen_allowed_(true), fastbootd_logo_enabled_(false), sideload_auto_reboot_(false), touch_low_threshold_(android::base::GetIntProperty("ro.recovery.ui.touch_low_threshold", kDefaultTouchLowThreshold)), touch_high_threshold_(android::base::GetIntProperty("ro.recovery.ui.touch_high_threshold", Loading Loading
install/install.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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(); } } Loading
recovery.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -966,6 +966,7 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri if (!sideload_auto_reboot) { ui->ShowText(true); } ui->SetSideloadAutoReboot(sideload_auto_reboot); status = ApplyFromAdb(device, false /* rescue_mode */, &next_action); ui->Print("\nInstall from ADB complete (status: %d).\n", status); if (sideload_auto_reboot) { Loading
recovery_ui/include/recovery_ui/ui.h +10 −0 Original line number Diff line number Diff line Loading @@ -297,6 +297,14 @@ class RecoveryUI { EnqueueKey(KEY_REFRESH); } bool IsSideloadAutoReboot() const { return sideload_auto_reboot_; } void SetSideloadAutoReboot(bool sar) { sideload_auto_reboot_ = sar; } protected: void EnqueueKey(int key_code); void EnqueueTouch(const Point& pos); Loading @@ -314,6 +322,8 @@ class RecoveryUI { bool fastbootd_logo_enabled_; bool sideload_auto_reboot_; private: enum class ScreensaverState { DISABLED, Loading
recovery_ui/ui.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ RecoveryUI::RecoveryUI() max_brightness_file_(MAX_BRIGHTNESS_FILE), touch_screen_allowed_(true), fastbootd_logo_enabled_(false), sideload_auto_reboot_(false), touch_low_threshold_(android::base::GetIntProperty("ro.recovery.ui.touch_low_threshold", kDefaultTouchLowThreshold)), touch_high_threshold_(android::base::GetIntProperty("ro.recovery.ui.touch_high_threshold", Loading