cmsdk: Run in core apps only for poweroff alarm boot

* Publishing LiveDisplay tile is crashing.

Change-Id: I5b6262958fb40aed2c0915991db97804beaaca45
This commit is contained in:
LuK1337
2017-06-14 19:48:47 +02:00
committed by Sam Mortimer
parent 62ab051496
commit ffe2bb69b3

View File

@@ -45,8 +45,10 @@ public class CMSystemServer {
public static boolean coreAppsOnly() {
// Only run "core" apps+services if we're encrypting the device.
final String cryptState = SystemProperties.get("vold.decrypt");
final boolean isAlarmBoot = SystemProperties.getBoolean("ro.alarm_boot", false);
return ENCRYPTING_STATE.equals(cryptState) ||
ENCRYPTED_STATE.equals(cryptState);
ENCRYPTED_STATE.equals(cryptState) ||
isAlarmBoot;
}
/**