Fail callers that use exact alarms without permission
Switching the flag to throw by default. Test: adb shell dumpsys alarm atest CtsAlarmManagerTestCases atest FrameworksMockingServicesTests:com.android.server.alarm Bug: 171306433 Change-Id: I990f6ef37a4b7976fbef10de53c292fbb1fe25bc
This commit is contained in:
@@ -472,8 +472,7 @@ public class AlarmManagerService extends SystemService {
|
||||
private static final long DEFAULT_ALLOW_WHILE_IDLE_WINDOW = 60 * 60 * 1000; // 1 hour.
|
||||
private static final long DEFAULT_ALLOW_WHILE_IDLE_COMPAT_WINDOW = 9 * 60 * 1000; // 9 mins.
|
||||
|
||||
// TODO (b/171306433): Change to true by default.
|
||||
private static final boolean DEFAULT_CRASH_NON_CLOCK_APPS = false;
|
||||
private static final boolean DEFAULT_CRASH_NON_CLOCK_APPS = true;
|
||||
|
||||
private static final long DEFAULT_PRIORITY_ALARM_DELAY = 9 * 60_000;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user