Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I have noticed 2 issues with the use of the AlarmManager.
The first one is a performance issue: once started repeatingly, the alarm is never cancelled, even when PoM is not running. Meanning that the app will repeatedly send a broadcast every minute.
The other issue could be a bigger problem: using
To reproduce: set PoM to 5 minutes, disconnect phone charger and turn off display. If left idle, the phone cannot receive any phone calls 7 or 8 minutes later.
I have not tested using the original app, but that's the case currently in my fork and very probably the case in the original app since my modifications are not related to the AlarmManager and BroadcastReceiver.