[Guide] How to fix Android OS battery drain (stay awake) without root!

xantrk

Senior Member
Nov 9, 2011
1,088
1,352
143
Hello guys! It has been a long time since I have been trying to sort out my drain issues on my S6 Edge+ , a couple of days ago I finally figured out to use Wakelock Detector without root then it comes out that it was actually the maps keeping the phone awake via "NLPWakelock" through Android OS. I will cover out the process step by step to found out which app is causing the drain and why! We will need ABD, so we must have a computer.

1)First we are gonna need the app; "Wakelock Detector [Lite]" root users may use normal version too.
Play store link: https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector.noroot&hl=tr,

2) We should open USB Debugging option in developer settings. And connect our phone to computer via USB.


3) To check if we have adb installed, you can simply run command promt ( windows/run/cmd ) and write
Code:
adb devices
If the output is similar to the image below, it means you have ADB installed and if you have device entry you have your ADB device drivers installed too.

If ADB is not installed, please kindly check Snoop05's thread to use his perfect tool - 15 Seconds ADB installer ( Yes, 15 seconds, actually less )

4) Once you make sure you have your device entry after writing " adb devices" , we gonna need to write this command to give Wakelock Detector battery history permissions:
Code:
adb -d shell pm grant com.uzumapps.wakelockdetector.noroot android.permission.BATTERY_STATS
At this point we may see a popup dialog on our phone like this:

You need to allow it and preferably you can check always allow option.

5) That's it guys. Now we have Wakelock detector working!


Most of the important drains caused by CPU wakelocks and Kernel Wakelocks. With or without root, the things we can do to kernel wakelocks are limited, afaik. So lets come to CPU Wakelocks. What you should do is use your phone regularly a couple hours after you gave permissions to the app and run it. Then you will see which apps , and which wakelocks they have called both individually. After that you can pinpoint the issue with a google search! Hope it helps you guys. I fixed my drain, I was getting 3hours of SOT before now I have more than 4-4.5 hours through my daily usage.

Notes:
Here is an awesome guide about wakelocks by T.J. Bender , you can check your wakelock there too.

Please feel free to ask any questions or unclear points. Hope your phones deeper sleeps!
 
Last edited:

jutezak

Senior Member
Sep 19, 2010
208
36
0
Thanks for this instruction, especially with the ADB command. For that command it is clear to me what it does (grant a permission) and that the permission is relatively safe.

I wouldn't have installed it with the Chrome extension. Running it is basically a 'feel free to rummage around my phone' permission. So again thanks for that adb command.
 

xantrk

Senior Member
Nov 9, 2011
1,088
1,352
143
Thanks for this instruction, especially with the ADB command. For that command it is clear to me what it does (grant a permission) and that the permission is relatively safe.

I wouldn't have installed it with the Chrome extension. Running it is basically a 'feel free to rummage around my phone' permission. So again thanks for that adb command.
You are welcome!
 

Ohhdayumm

Senior Member
Sep 26, 2015
571
59
0
Hello i got wld to work on my nonrooted note 5 and i have 220+ wakeups from google playservices how do i stop it or lower the amount of wakeups?
 

jetbruceli

Senior Member
May 8, 2011
2,918
608
0
Bamberg, Germany
This isn't a real fix for previous rooted users. Before I rooted my note 5 N920C, it had normal battery life. I rooted to try out the note 7 roms and then decided to go back to stock. I flashed official firmware and saw quick draining caused b Android OS. I factory resetted and reflashed and set the phone up with no accounts and on airplane mode. No location services or anything. The drain was still there. I installed BattleHero's prerooted stock rom and the drain was gone. I am assuming the stock non rooted kernal knows about Knox being tripped and causes this drain on purpose.
 

angelfacekiller

Senior Member
Aug 14, 2016
54
8
0
This isn't a real fix for previous rooted users. Before I rooted my note 5 N920C, it had normal battery life. I rooted to try out the note 7 roms and then decided to go back to stock. I flashed official firmware and saw quick draining caused b Android OS. I factory resetted and reflashed and set the phone up with no accounts and on airplane mode. No location services or anything. The drain was still there. I installed BattleHero's prerooted stock rom and the drain was gone. I am assuming the stock non rooted kernal knows about Knox being tripped and causes this drain on purpose.
It is related my friend... we are all doomed until Samsung fix this in the stock software. Dr. Ketans fix kills this bug on stock rom but you lose NFC because of the custom rom indication. No more NFC tap payments...
 

Sito13

Member
Dec 19, 2013
6
0
0
It is related my friend... we are all doomed until Samsung fix this in the stock software. Dr. Ketans fix kills this bug on stock rom but you lose NFC because of the custom rom indication. No more NFC tap payments...
Can you tell me what Dr. Ketans fix is? I can't seem to find it and I want to try this.
 

yomiguy

Senior Member
Nov 8, 2011
725
186
43
Thanks! I was looking for the command to use with adb, because I have used this method for bbs and its working fine too. So I hope I can use it with wld as well.

- Enviado desde mi Pepinote4 -
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone