mcastillof / FakeTraveler

Fake where your phone is located (Mock location for Android).
GNU General Public License v3.0
773 stars 95 forks source link

Added SCHEDULE_EXACT_ALARM permission to allow calling alarmManager.setExactAndAllowWhileIdle API 33+ #63

Closed NetLagina closed 10 months ago

NetLagina commented 1 year ago

Added SCHEDULE_EXACT_ALARM permission to fix exception when trying to call alarmManager.setExactAndAllowWhileIdle.

The SCHEDULE_EXACT_ALARM permission is required starting from Android 12 to initiate exact alarms via the following APIs or a SecurityException will be thrown:

setExact() setExactAndAllowWhileIdle() setAlarmClock()