Revert "recovery: report compliant reboot reason"
This reverts commit 6f4e4db4f9.
Reason for revert: Booting out of recovery (choose `Reboot system now`)
on taimen is broken. Device keeps booting back into recovery.
Bug: 133326470
Test: Choose `Reboot system now` from recovery menu. Deivce attempts
normal boot.
Change-Id: I6e85fc248e18953a6fb94513c3abc7e7e0fb0477
This commit is contained in:
+3
-3
@@ -229,9 +229,9 @@ bool Reboot(std::string_view target) {
|
||||
return android::base::SetProperty(ANDROID_RB_PROPERTY, cmd);
|
||||
}
|
||||
|
||||
bool Shutdown(std::string_view target) {
|
||||
std::string cmd = "shutdown," + std::string(target);
|
||||
return android::base::SetProperty(ANDROID_RB_PROPERTY, cmd);
|
||||
bool Shutdown() {
|
||||
// "shutdown" doesn't need a "reason" arg nor a comma.
|
||||
return android::base::SetProperty(ANDROID_RB_PROPERTY, "shutdown");
|
||||
}
|
||||
|
||||
std::vector<char*> StringVectorToNullTerminatedArray(const std::vector<std::string>& args) {
|
||||
|
||||
Reference in New Issue
Block a user