Loading services/core/java/com/android/server/power/ShutdownThread.java +7 −2 Original line number Diff line number Diff line Loading @@ -524,8 +524,13 @@ public final class ShutdownThread extends Thread { AlarmManager.POWER_OFF_ALARM_HANDLED); } // If it is factory data reset, value in POWER_OFF_ALARM_TIMEZONE_FILE will be cleared. if (mReboot && PowerManager.REBOOT_RECOVERY.equals(mReason)) { AlarmManager.writePowerOffAlarmFile(AlarmManager.POWER_OFF_ALARM_TIMEZONE_FILE, ""); } else { AlarmManager.writePowerOffAlarmFile(AlarmManager.POWER_OFF_ALARM_TIMEZONE_FILE, SystemProperties.get("persist.sys.timezone")); } rebootOrShutdown(mContext, mReboot, mReason); } Loading Loading
services/core/java/com/android/server/power/ShutdownThread.java +7 −2 Original line number Diff line number Diff line Loading @@ -524,8 +524,13 @@ public final class ShutdownThread extends Thread { AlarmManager.POWER_OFF_ALARM_HANDLED); } // If it is factory data reset, value in POWER_OFF_ALARM_TIMEZONE_FILE will be cleared. if (mReboot && PowerManager.REBOOT_RECOVERY.equals(mReason)) { AlarmManager.writePowerOffAlarmFile(AlarmManager.POWER_OFF_ALARM_TIMEZONE_FILE, ""); } else { AlarmManager.writePowerOffAlarmFile(AlarmManager.POWER_OFF_ALARM_TIMEZONE_FILE, SystemProperties.get("persist.sys.timezone")); } rebootOrShutdown(mContext, mReboot, mReason); } Loading