mcastillof / FakeTraveler

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

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

Closed NetLagina closed 5 months ago

NetLagina commented 9 months 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()