Merge "Fix Quiescent Reboot Reason"

This commit is contained in:
Hongguang Chen
2021-08-16 18:12:18 +00:00
committed by Gerrit Code Review

View File

@@ -3756,7 +3756,10 @@ public final class PowerManagerService extends SystemService
if (sQuiescent) {
// Pass the optional "quiescent" argument to the bootloader to let it know
// that it should not turn the screen/lights on.
reason = reason + ",quiescent";
if (reason != ""){
reason += ",";
}
reason = reason + "quiescent";
}
SystemProperties.set("sys.powerctl", "reboot," + reason);