cmsdk: Run in core apps only for poweroff alarm boot
* Publishing LiveDisplay tile is crashing. Change-Id: I5b6262958fb40aed2c0915991db97804beaaca45
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user