Toggle schedule_exact_alarm to be denied by default
Flipping the flag to on. This will mean apps targeting T will need to request permission from the user before they can schedule exact alarms. Test: atest CtsAlarmManagerTestCases Bug: 226439802 Change-Id: I69dacf6dfb4871ed3597dff805eaec27df831205
This commit is contained in:
@@ -612,8 +612,7 @@ public class AlarmManagerService extends SystemService {
|
||||
|
||||
private static final boolean DEFAULT_KILL_ON_SCHEDULE_EXACT_ALARM_REVOKED = true;
|
||||
|
||||
// TODO(b/226439802): Flip to true.
|
||||
private static final boolean DEFAULT_SCHEDULE_EXACT_ALARM_DENIED_BY_DEFAULT = false;
|
||||
private static final boolean DEFAULT_SCHEDULE_EXACT_ALARM_DENIED_BY_DEFAULT = true;
|
||||
|
||||
// Minimum futurity of a new alarm
|
||||
public long MIN_FUTURITY = DEFAULT_MIN_FUTURITY;
|
||||
|
||||
Reference in New Issue
Block a user