Saturday, April 9, 2016

Mail (and other apps) notifications solved by disabling Android's Doze [ROOT]

Getting tired of waiting for a firmware to correct the missing notifications I decided to simply let a script run at bootup.

Now, for me at least, all notifications come right through, no matter the rom / firmware used. Needed steps:
  • Download this init.d app from the Play Store
  • Set the options as on the first screenshot below
  • Create a file in a random folder, containing shown text
  • Direct the app to your chosen folder and click execute all files
  • Optionally set a delay, I choose to run it immediately
  • Let the app auto-launch at startup (important!)




Reboot phone. After a short while (depending on the number of apps / stuff you run at startup) you will see a small notification on the bottom of the screen that the app has acquired root privileges. A second after that the script has run as well.

Now Android's build-in Doze is disabled and the (mail) notifications will all come in instantly, as they should.
To double check you can enter the command dumpsys deviceidle disable in a terminal prompt (invoke su first).
When there is no output, as shown in third shot below, doze indeed is disabled and all is well.
Otherwise you will see a response, in that case the app / script has not been executed properly.




Enjoy notifications as they should work :good:

Impact on battery has not been tested yet due to constant rom /firmware flashing :cool:


from xda-developers http://ift.tt/1S9dMhJ
via IFTTT

No comments:

Post a Comment