Unbelievably improve the battery life during idle of your device by empowering Android's built-in Doze power saving functionality. It supports Marshmallow, Nougat, Oreo and now Pie. It features more options for rooted devices, but it'll also work if you're unrooted.
Because why the hell not?
Doze is amazing but with it has its quirks. It can take at least 2 hours to kick in (if the device is stationary, not charging etc). If you move around, even with the screen off, doze won't kick in, so there are a lot of potential battery saving opportunities lost, gone with the wind.
Naptime fixes that for you
Q: Rootless mode?
To use Naptime's features without Root you need to grant it DUMP permission via ADB on your computer by executing this command:
adb -d shell pm grant com.franco.doze android.permission.DUMP
You also need to grant WRITE_SECURE_SETTINGS permission:
adb -d shell pm grant com.franco.doze android.permission.WRITE_SECURE_SETTINGS
After these two permissions are granted you'll be able to use Naptime freely.
Q: I don't receive notifications or my music streaming apps stop working after screen off. Please halp!
With 'Aggressive Doze' doze is being forced after you screen off. Doze is, currently, the most powerful battery saving mechanism on Android.
The following restrictions apply to your apps while in Doze:
· Only high-priority push notifications are delivered;
· Network access is suspended;
· The system ignores wake locks;
· Standard AlarmManager alarms are deferred to the next maintenance window:
· The system does not perform Wi-Fi scans;
· The system does not allow sync adapters to run;
· The system does not allow JobScheduler to run;
Apps like Gmail, which use normal-priority notifications, have them delivered during the maintenance window or when you wake up your device. This is standard behavior and can't be changed
Although, you can choose apps to bypass doze. Go to Settings -> Battery -> overflow ->Battery optimization -> All apps -> Your app -> Don't optimize
That'll allow apps like Spotify to bypass the forced doze and actually work on screen off.
Q: What's the 'Sensors app whitelist' feature?
It works together with the 'Disable motion detection' feature and allows you to choose up-to one app (sorry, Android limits us to only one app) to request sensor information even if you disable motion detection.
For example it allows apps, such as Google Fit, to query the accelerometer or gyroscope to count your steps.
Q: Why does my display, sometimes, blink once after screening on?
This might happen if you're disabling the motion sensors. The reason for this is simple, for system brightness & auto-rotate settings to work after screening on they must be toggled on/off (otherwise they won't work) and therefore it may blink (even if it's only for a couple milliseconds).
Q: My fingerprint scanner doesn't work when I disable the sensor motion detection!
Unfortunately not all devices will work fine when disabling motion sensor detection and in the process some other sensors & functionality might stop working. There's nothing I can do about it and your only option is to not use that setting enabled. There's also some weird compatibility with LG phones where the display doesn't even turn on again if this setting is enabled.