Related
Good Day all,
I have benefitted greatly from Google and XDA. So I thought I would provide a consolidated way of saving our battery's grace from Android System demonic drain.
I am running Euphoria with Furnace, and I had loads of Gapps installed.
I tried multiple attempts over a 3 days period and did many researches back and forth. And it came down to these few main culprits:
1. Android Location Services
2. Google Play Services
3. Qualcomm Location Services
4. Google Now Launcher
5. Unwanted Sync
Tools I have used to assist in this matter.
1. Disable Service - here
2. Greenify
3. Privacy Guard (should be in built in most custom roms)
4. Titanium Backup
Basically the highest causing drain came from Google Play Services and Qualcomm Location Services. These items persistently wakes the phone up and runs on the background. Using greenify on there further cause issues as greenify tries to hibernate these services over and over again, making this a self-made draining routine.
I followed this thread on Google Play Services drain fix and used the Privacy Guard to perform those tricks. I ran through ALL Google Related Apps and as long as "Keep Awake", "Wake up" or "Auto Start" is enabled, I disabled them. I also look through apps I suspect were waking phone up by looking at the last activation of those events (Keep Awake, Wake Up, Auto Start).
Next I followed this thread on Guide to disable google play internal services using Disable Service app. I also took the opportunity to look at both 3rd party apps and system apps to see if there are services that could be disabled. I disabled Apex Notifier as I realize I didn't needed its service.
Then the next sneaky culprit was the Qualcomm Location Services. Even though I froze them with Titanium Backup, they persist in the system. So making a backup of them, I uninstalled them completely. Hasn't caused me any issue with GPS or Maps. They are namely, com.qualcomm.location and com.qualcomm.services.location. Both appeared as LocationServices 1.0 on Titanium Backup.
I went ahead to Greenify many Google Apps, namely Google App, Google Play Store, Google Services Framework, Google+. I also Greenify many apps that Greenify suggested would slow system down or appear to run in the background which I have no use for.
Lastly I uninstalled Google Now Launcher as it was persistently coming up as alternative home launcher even though I froze it. And I also went through settings of apps to make sure sync were turn off. I only kept Calender and Contacts and Gmail Sync on.
Now I have reduced Android System from 34% to 2% and increased my SOT from 2++ hours to 4++ hours at least. Not an out of earth SOT, but I believe that's decent.
Hope I helped and I wish you all the best in your endeavour to reduce Android System Drain. Cheers.
Thanks bro
Will try and give feedback asap
Suscribed, Rated, and Thanked.
I didn't had time to do any research on this, and this thread appeared on the right time.
Thanks
Paradoxxx said:
Suscribed, Rated, and Thanked.
I didn't had time to do any research on this, and this thread appeared on the right time.
Thanks
Click to expand...
Click to collapse
metuncc said:
Will try and give feedback asap
Click to expand...
Click to collapse
Your feedbacks will be appreciated. It works for me and I hope it works for you. And hopefully help many others that face our problem. Cheers
I can't seem to find App Ops anywhere..
Edit: found it by the name "Access lock" but there is no google play services in there..
bestest609 said:
I can't seem to find App Ops anywhere..
Edit: found it by the name "Access lock" but there is no google play services in there..
Click to expand...
Click to collapse
It should be found in settings page, "Privacy".
I know that this guide is meant for CM based ROMs but I said to myself "ehh, what the hell" and I tried it on my Cloudy 2.2 and the results were horrible. Had to fully charge my device twice in order to go through 22 hours and a total of 2h of screen on time which consisted mostly of browsing and messaging. Wakelock Detector told me that the device was mostly asleep and everything was normal in the Batter Usage menu. Usually I get around 18-20h on a full charge with 2,5-3h SoT. Maybe the locations tweeks were not liked by my Tasker app and caused a huge battery drain, although it didn't appear that much as a wakelock trigger.
I am wondering if the problem was caused by Tasker or the stock ROM itself, but badly I do not have the time now to tweak around and I am reverting back to my previous configuration.
steelclaw said:
I know that this guide is meant for CM based ROMs but I said to myself "ehh, what the hell" and I tried it on my Cloudy 2.2 and the results were horrible. Had to fully charge my device twice in order to go through 22 hours and a total of 2h of screen on time which consisted mostly of browsing and messaging. Wakelock Detector told me that the device was mostly asleep and everything was normal in the Batter Usage menu. Usually I get around 18-20h on a full charge with 2,5-3h SoT. Maybe the locations tweeks were not liked by my Tasker app and caused a huge battery drain, although it didn't appear that much as a wakelock trigger.
I am wondering if the problem was caused by Tasker or the stock ROM itself, but badly I do not have the time now to tweak around and I am reverting back to my previous configuration.
Click to expand...
Click to collapse
Try using GSam battery monitor to find out the real culprit. I used that to boil down to the final two irritants - Qualcomm LocationServices.
Really enjoying the app.
Here are the screenshots:
https://www.dropbox.com/sc/fvzvyvdsfqr1e89/AABeH-BwUHKOjpqnXaFcATbaa
steelclaw said:
Really enjoying the app.
Here are the screenshots:
https://www.dropbox.com/sc/fvzvyvdsfqr1e89/AABeH-BwUHKOjpqnXaFcATbaa
Click to expand...
Click to collapse
Kernel OS issue I am not too sure what issues are they. The issues I had was high Android OS drain.
@JokerAce my friend ...nice to see you posting useful advice ....gonna grab it ...especially qualcomm service....thanks mate
/LG-G3/d-855/16Gb/Titanium Black/
m1trand1r said:
@JokerAce my friend ...nice to see you posting useful advice ....gonna grab it ...especially qualcomm service....thanks mate
/LG-G3/d-855/16Gb/Titanium Black/
Click to expand...
Click to collapse
Thanks mate )
I'm posting this based on a number of requests from other users; regarding optimization of the OnePlus 3T. In general I feel like this phone is already very good. Has great performance and a solid battery. The one issue I suffered was the "Mobile Radio Active" bug. I will explain more about it in this guide.
NOTE - This guide isn't finished yet. I'll try my best to get to it when I get a chance, but for the time being I will share with you all what I have documented so far. Some of my content was referenced from other online sources, so I want to be sure that I state that.
If you have any questions, suggestion, or are interested in adding to this, please let me know.
Before we begin, I’ll start out by listing my configured device. My configuration may be different than yours due to the rom. If you use a custom rom, you need to be careful with some of the options.
That being said…
I am using the 64Gb OnePlus 3T. My bootloader is unlocked, my device is rooted using SuperSU v 2.79 and I use the custom recovery “TWRP 3.0.4-1”
The applications I use:
Amplify - https://play.google.com/store/apps/details?id=com.ryansteckler.nlpunbounce
ForceDoze - https://play.google.com/store/apps/details?id=com.suyashsrijan.forcedoze
Greenify - https://play.google.com/store/apps/details?id=com.oasisfeng.greenify
L-Speed - https://play.google.com/store/apps/details?id=com.paget96.lspeed
LeanDroid - https://play.google.com/store/apps/details?id=com.teqtic.leandata
Naptime - https://play.google.com/store/apps/details?id=com.franco.doze
Power Nap - https://play.google.com/store/apps/details?id=net.jzhang.powernap
Xposed - https://forum.xda-developers.com/attachment.php?attachmentid=3921508&d=1477916609
Xposed Framework - http://dl-xda.xposed.info/framework/sdk23/arm64/xposed-v87-sdk23-arm64.zip
Some of these are personal preference so you don’t need them if you don’t want to.
NOTE – Also, I am on Stock OOS 3.5.4. The reason for this is because I was experiencing battery drain due to a bug known as “Mobile Radio Active”. This is a bug that affects users even with the new OS, and unfortunately I don’t think it has been fixed even with Nougats new doze feature. Basically even though doze is enable, your radio still draws battery in the background even though it’s not in use. Xposed has a plugin to fix this issue; however since Xposed isn’t available for Nougat this is why I am still on Marshmallow.
You can read more about the bug here:
https://forum.xda-developers.com/xposed/modules/xposed-mobileradioactivefix-t3189393
And the fix is here:
http://repo.xposed.info/module/com.pyler.mobileradioactivefix
This is a fairly in-depth tut, so I’ll try to go through this as quickly and painlessly as I can. If you have any questions, feel free to ask.
Amplify
Limit the following:
ALARM
Alarms(Allow every 600 seconds)
• com.android.internal.telephony.data-stall
Alarms(Allow every 1800 seconds)
• com.oasisfeng.greenify.CLEAN_NOW
Alarms(Allow every 3600 seconds)
• android.appwidget.action.APPWIDGET_UPDATE
Alarms(Allow every 7200 seconds)
• android.content.syncmanager.SYNC_ALARM(delays sync
Alarms(Allow every 10800 seconds)
• android.net.ConnectivityService.action.PKT_CNT_SAM PLE_INTERVAL_ELAPSED
• com.facebook.common.executors.WakingExecutorServic e.ACTION.ALARM.com.facebook.katana
• com.google.android.apps.hangouts.CLEANUP_DB
• com.pushbullet.android/.gcm.GcmFixReceiver
• com.android.server.action.NETWORK_STATS_POLL
• com.diune.pictures.intent.action.MEDIA_CHECK
• LocationManagerService
Alarms[LOCATION](Allow every 41400 seconds)
• ALARM_WAKEUP_LOCATOR(com.google.android.gms.nlp.AL ARM_WAKEUP_LOCATOR)
• ALARM_WAKEUP_CACHE_UPDATER
• ALARM_WAKEUP_BURST_COLLECTOR(com.google.android.gm s.nlp.ALARM_WAKEUP_BURST_COLLECTOR)
• com.google.android.gms.location.fused.GPS_ALARM_BA LANCED_ACCURACY
• ALARM_WAKEUP_ACTIVE_COLLECTOR
• ALARM_WAKEUP_PASSIVE_COLLECTOR
• ALARM_WAKEUP_BURST_COLLECTION_TRIGGER
• com.google.android.intent.action.SEND_IDLE
• ALARM_WAKEUP_ACTIVITY_DETECTION
• com.google.android.location.reporting.ACTION_UPDAT E_WORLD
Alarms(Allow every 93600 seconds)
• android.app.backup.intent.RUN
• com.google.android.gms/.checkin.EventLogService$Receiver
• com.google.android.gms/.checkinCheckinService%Receiver
Alarms(REGEX Blocking)
• ALARM_WAKEUPxxxxx
Procedure
• Open Amplify.
• Select Alarms from the menu.
• Tap the list icon on the top right corner
• Tap + button on top.
• Add the following code to 'Enter Regex to match
• ALARM_WAKEUP[0-9]+
• Set the interval to 9999999 seconds.
WAKELOCKS
Wakelocks(Allow every 800 seconds)
• WakefulIntentService[GCoreUlr-LocationReportingService]
• RILJ
• NetworkStats
Wakelocks(Allow every 3600 seconds)
• WeatherUpdateService
Wakelocks(Allow every 10800 seconds)
• SyncLoopWakeLock(delays sync)
• *net_scheduler*
• GCoreFlp
• Icing
• Wakeful StateMachine: GeofencerStateMachine
• NfcService:mRoutingWakeLock
• wake:com.pushbullet.android/.gcm.GcmService
• SyncService(Package: Push Bullet)
• ai(Package: Push Bullet)
• ae(Package: Push Bullet)
• AsyncService
Wakelocks(Allow every 41400 seconds)
• NlpWakeLock
• NlpCollectorWakeLock
• LocationManagerService
• Config Service Fetch
Wakelocks(Allow every 9999999 seconds)
• *job*/com.facebook.katana/com.facebook.analytics2.logger.LollipopUploadServi ce
• JobSchedulerHack-com.facebook.analytics2.logger.LollipopUploadServi ce
• UploadServiceLogic-com.facebook.analytics2.logger.LollipopUploadServi ce
• *job*/com.facebook.orca/com.facebook.bugreporter.scheduler.LollipopService (com.facebook.orca.Messenger)
• *job*/com.facebook.katana/com.facebook.bugreporter.scheduler.LollipopService (com.facebook.katana.Facebook)
SERVICES
Services(Block/Deny)
NB:I don't use Location Service. That's why I've disabled the location Services. If your'e using Location service, do not disable the services with location and GPS tag
• com.google.android.gms.analytics.AnalyticsService
• com.google.android.gms/com.google.android.location.internal.GoogleLocatio nManagerService(Location Service)
• com.android.gms.Feedback.FeedbackService(Breaks Play Games)
• com.android.gms.ads.AdRequestBrokerService
• com.google.android.gms/com.google.android.location.network.NetworkLocationService(Location Service)
• com.google.android.location.geofencer.service.Geof encerProviderService(GPS Service)
• com.google.android.gms/com.google.android.location.copresence.service.ProximitySettingInjectorService
• com.facebook.katana/com.facebook.analytics.service.AnalyticsService
• com.facebook.orca/com.facebook.analytics.service.AnalyticsService
• com.android.cellbroadcastreceiver/.CellBroadcastAlertService
• com.android.cellbroadcastreceiver/.CellBroadcastConfigService
POWERNAP
Power Nap for Xposed is the SONY's stamina mod for non-Sony devices. When your screen is off, Power Nap maximizes your device's deep sleep time by stopping services, alarms and wakelocks from waking the device when the screen is off. You can get notification from the apps you've whitelisted.
Set the Endurance Mode to Always ON.
You can use Power Nap along with Greenify and Amplify for a better sleep time. You have to whitelist both Greenify and Amplifyfor proper working of both the modules.
If you use IMs and need Push Notifications,you have to whitelist those apps along with Greenify and Amplify.
See My list Of whitelisted apps.(Varies according to users):
• AndroidSystem
• Greenify
• Amplify
• Xposed
• Clock
• ForceDoze
• LeanDroid
• L-Speed
• Powernap
• Naptime
Greenify and L-Speed in 2K17. haHAA
Ignore the idiot above i have proven greenify makes a difference because doze on the go is a thing. Why are you using 3 doze apps that essentially do the same thing, just use one.
Also get rid of L-speed its a pile of crap flash franco kernal and use the battery profile or flash elemental x and use AKT.
Regarding that bug can't you just disable synch on everything that's what i did on everything except gmail and calander and i have no issue
@EuEra
Yeah regarding the doze, I was trying to figure out which one worked best for me. I'm still trying to figure out which one does the best job.
Which doze app do you recommend? Also thanks for your suggestion of the kernel. I can give them a try and see which one suits me. Do you have a preference between the 2 you mentioned?
One of the doze apps that I use actually does a good job of stopping all sync's like you mentioned, but I have to look back at it and try to figure out which option would work best for me. I appreciate the input though. As I mentioned if I get some more time I'll try to investigate this a little further and update it.
Also, are you running Marshmallow or Nougat? If nougat, which firmware are you on?
@xpissio - Lspeed might be unneeded, but you don't have to come off negative. You laugh about it, and maybe it's unnecessary for the OP3T, but I will tell you when I had the S7 it was a VERY much needed app due to the lag of Touchwiz and Samsungs overbloated crap on the device. In that regard, I do find the application useful, and maybe some other will too.
As for Greenify, I do believe that's a solid app and it DOES indeed help all phones regardless of how good your battery and performance is.
m0d hipp¥ said:
@EuEra
Yeah regarding the doze, I was trying to figure out which one worked best for me. I'm still trying to figure out which one does the best job.
Which doze app do you recommend? Also thanks for your suggestion of the kernel. I can give them a try and see which one suits me. Do you have a preference between the 2 you mentioned?
One of the doze apps that I use actually does a good job of stopping all sync's like you mentioned, but I have to look back at it and try to figure out which option would work best for me. I appreciate the input though. As I mentioned if I get some more time I'll try to investigate this a little further and update it.
Also, are you running Marshmallow or Nougat? If nougat, which firmware are you on?
@xpissio - Lspeed might be unneeded, but you don't have to come off negative. You laugh about it, and maybe it's unnecessary for the OP3T, but I will tell you when I had the S7 it was a VERY much needed app due to the lag of Touchwiz and Samsungs overbloated crap on the device. In that regard, I do find the application useful, and maybe some other will too.
As for Greenify, I do believe that's a solid app and it DOES indeed help all phones regardless of how good your battery and performance is.
Click to expand...
Click to collapse
Personally i prefer elemental x with the AKT tweaks you get a lot of control over what specifically you want for example i use the extreme battery saving profile (there are about 6 different profiles each for performance, balanced and battery) just search oneplus 3 akt in google. A lot of people love franco kernal as well it has 1 profile for each he has an app to go with it a free one and a paid one with more features.
I only use naptime, i am on the latest nougat 7.1.1 OOS 4.1.1 obviously i don't have exposed or i would use power nap as well. I think it's worth backing up and trying the latest OOS unless you really need xposed or something.
What battery time are you getting? On average i get 2.5-3 days with 6-8 hours screen time.
I get what you're getting now in terms of battery life, but when I went to nougat, I was lucky to get a day out of my battery. I don't even use it that often. I mean I use facebook once or twice a day for maybe 15 mins, I don't play games, I use hangouts as my messenger, but most of the time I message from my computer as it is. Honestly I was shocked when I barely had a day out of the phone because when I went to the battery stats it only had about6 apps listed there and they were all system apps. Then when I went to "Cell Standby" option I could see the Mobile Radio active was consuming the 2nd most amount of battery despite screen being off and device being idle.
Anyway, thanks for your input. I went ahead and tried the franco kernel atm on my current MM rom, but I will consider giving Nougat another shot. Thanks for your feedback!
OnePlus 3T with Resurrection Remix Nougat (Official)
Normal use: 1,5-2 days (Selected sync on, dual-sim, Data always on, Auto-brightness) - Phone calls, Messaging, Messanger, bit of Facebook and Insta or YouTube.
SOT ~ 7-9hrs (best results were about <11hrs, but in my opinion it's not something that you can get while normally using your phone).
My suggestions:
- turn off selected syncs, that you don't necessary need (in my case Google Docs, Photos etc.)
- Ambient Display
- Low on gestures
- Dark themes in custom roms or Dark Mode in OOS
- Animations in 0.5x or nothing
- Don't kill apps in recents, let it work by itself
- Turn off auto update apps or notify about updates
- Low on widgets
- Turn off background data in Facebook/Instagram and all unnecessary apps
- Turn off vibrations, if it's not that important to you
- Get rid of Google App and Google Now if you're not using it
- Block location authorizations as often as you can
- Use dark wallpapers
piotrkruczek said:
OnePlus 3T with Resurrection Remix Nougat (Official)
Normal use: 1,5-2 days (Selected sync on, dual-sim, Data always on, Auto-brightness) - Phone calls, Messaging, Messanger, bit of Facebook and Insta or YouTube.
SOT ~ 7-9hrs (best results were about <11hrs, but in my opinion it's not something that you can get while normally using your phone).
My suggestions:
- turn off selected syncs, that you don't necessary need (in my case Google Docs, Photos etc.)
- Ambient Display
- Low on gestures
- Dark themes in custom roms or Dark Mode in OOS
- Animations in 0.5x or nothing
- Don't kill apps in recents, let it work by itself
- Turn off auto update apps or notify about updates
- Low on widgets
- Turn off background data in Facebook/Instagram and all unnecessary apps
- Turn off vibrations, if it's not that important to you
- Get rid of Google App and Google Now if you're not using it
- Block location authorizations as often as you can
- Use dark wallpapers
Click to expand...
Click to collapse
Dzieki Potr!
Jesus, 9 Apps, Xposed, And a page long list of blocking stuff? And in the end you randomly stop getting notifications (my experience with greenify)?
On my Note 4 i did similar things to get through the day (2 hours SoT) but the 3T is really great in that regarde.
I'm on stock OB4, Franco Kernel without battery tweaks. No aggressive doze, or any battery saving options and i get over 3 days of standby with 6 hours SoT. This includes BT Streaming which drains without the screen being on.
I really see no need for any restrictions on this phone. Except when you install Facebook. Which you should never do. It's a well known fact that facebook drains your battery like crazy. Even if you never actively open it throughout the day.
about L Speed: It depends on the phone and on the usage. On my Galaxy S5 and My Oneplus X I can get like 30% more SOT with a little bit more performance. My 3T I can user three days and I have a 6h SOT. With L-Speed 6.5 - 7h. But it doesn't make the screen on time better for me, rather the screen off. I have with L-Speed 0.2% battery drain in a hour with the screen off, compared to 0.7-0.9% without.
My advice: Try it out and give the amazing dev a feedback. He's very friendly and he helps if you have a bad result.
If you have lower performance or more battery drain with L-Speed and you don't wanna give feedback, just uninstall it and reboot -> all changes are back to stock
Thanks all! The feedback is all good. The problem with phones is everyones experience is going to be a little different. I agree facebook/messenger drains battery, but there are other apps as well that do the same... playstore, google now, etc... I like googlenow because of the updates I get for weather, sports things like that. However it does use up battery and resources in the background even when it's not in use. Facebook; same thing. I like staying in touch with friends and family. If there was a less resource hog version of these apps I'd definitely consider without it limiting my options. The utilities I posted are just some of my preferences, but I'm always open to hear suggestions and others' recommendations.
I agree with the battery life, in general I'd say it's very good, but from my experiences in the past I just had bad luck I suppose with the "mobile radio active" bug; as I have explained above. It's really a hit or miss sort of thing. I've done clean installs, full wipes, etc and it seems to still be hit or miss for me. At first I had several days and then after about a week or 2, I noticed the battery life dropped significantly. That's when I used these utilities to help out with the life of the battery and for me it made a difference.
I actually REALLY like nougat, but I also use a few plugins I really like that require Xposed framework, which obviously isn't supported in nougat yet. I've been busier than normal last several weeks, but if I get a chance to backup everything I might consider doing another clean install of nougat and see how things go.
these features can also be found in the custom roms anyway
m0d hipp¥ said:
Thanks all! The feedback is all good. The problem with phones is everyones experience is going to be a little different. I agree facebook/messenger drains battery, but there are other apps as well that do the same... playstore, google now, etc... I like googlenow because of the updates I get for weather, sports things like that. However it does use up battery and resources in the background even when it's not in use. Facebook; same thing. I like staying in touch with friends and family. If there was a less resource hog version of these apps I'd definitely consider without it limiting my options. The utilities I posted are just some of my preferences, but I'm always open to hear suggestions and others' recommendations.
I agree with the battery life, in general I'd say it's very good, but from my experiences in the past I just had bad luck I suppose with the "mobile radio active" bug; as I have explained above. It's really a hit or miss sort of thing. I've done clean installs, full wipes, etc and it seems to still be hit or miss for me. At first I had several days and then after about a week or 2, I noticed the battery life dropped significantly. That's when I used these utilities to help out with the life of the battery and for me it made a difference.
I actually REALLY like nougat, but I also use a few plugins I really like that require Xposed framework, which obviously isn't supported in nougat yet. I've been busier than normal last several weeks, but if I get a chance to backup everything I might consider doing another clean install of nougat and see how things go.
Click to expand...
Click to collapse
1st of all thank you for the post and for other people who replied , I think ( hope ! ) That I learned something , and I'll try to implement it.
2nd as you said for Facebook alternative I can recommend "Friendly" or the other option is "Simple" it's a framework app for the Facebook web , try I think you will get it useful and battery friendly
Never liked the Facebook app for Android and never understood the need to make two separate apps. The need for the app then the messenger is totally useless. There are tons of Facebook alternatives, but why download those alternatives when you can view Facebook through mobile browser. You would think that with the billions Facebook makes they'd have a better R&D team working on a better Facebook app without 50 permissions and battery hog.
Sent from my ONEPLUS A3000 using Tapatalk
Xpcounter said:
1st of all thank you for the post and for other people who replied , I think ( hope ! ) That I learned something , and I'll try to implement it.
2nd as you said for Facebook alternative I can recommend "Friendly" or the other option is "Simple" it's a framework app for the Facebook web , try I think you will get it useful and battery friendly
Click to expand...
Click to collapse
Why even bother for any apps when you can get notifications of Facebook on chrome
I've posted this guide on reddit already, but thought it might be useful here as well. A lot of users promote intense usage of package disablers to reduce battery drain, but this is not required to such an insane extend.
---
After experimenting with my S8 for 2-3 months now, I've collected some data and constructed some basic idea on how to fight wakelocks without having to root your device. I'll try to lay down everything here under a few categories.
First of all, I'll say that I tried using my S8 with a package disabler with hundreds of apps and services disabled, and also tried using it with no package disabler at all. I did not see a significant difference. It's too hard to determine if there is one, but I have to note that disabling TOO MUCH can actually hurt your battery usage.
Finally, I settled on using the device with a disabler again, only this time I disabled things strategically after some investigation with battery stats measurement and wakelock detection.
The apps I used were:
BK Package Disabler + BK Plugin
Better Battery Stats or GSam
These are paid apps, but I am happy with what they can do. BK can be replaced with another disabler (as long as it gives you control over individual package services) and BBS can be replaced with GSam Battery Stats, which is free.
General tips on using these apps:
BBS will require your device to have USB debugging enabled, so that you can connect the phone to your PC and unlock the permission manually. You need an ADB command prompt to do that, and you need to give it the following permission with the following command (read more here).
Code:
adb -d shell pm grant com.gsamlabs.bbm android.permission.BATTERY_STATS
You can use BBS if you do not restart your phone while testing. If you do, it will wipe stats and likely not activate for another few hours, or until you charge again.
You should be using BBS to observe Deep Sleep percentage in the Summary tab (which should be above 95% when the phone is left in idle mode for hours), and Partial Wakelocks to find individual wakelocks that come from apps. Kernel wakelocks are hardly ever something you can do anything about and shouldn't be observed too much, no point in that unless you are rooted. The highest kernel wakelocks should be the ones related to your screen-on time - they are easy to point out as their awake time equals your screen on time.
BK Package disabler, or any other disabler for that matter, WILL require admin privileges to work on your device, so keep that in mind.
BK Package disabler should be used in tandem with BBS, only once you have found wakelocks and/or managed to understand which service is the actual cause. I will give examples below.
---
So, let's start.
Google Play Services battery drain
This one really sucks and it seems to plague any Android device at some point. Most often than not, this problem will occur after you do a system update without doing a factory reset. Last time it occurred on my S8 was right after I did the AQI7 update, after having very good idle drain previous to updating.
What to do in this case?
Log out of your Google account(s).
Enroll for Google Play Services BETA. To enroll, scroll down on this page and find the beta button OR Find Play services in your App list, and do "Uninstall updates", then update it right after that.
Turn off your phone and then boot it in recovery mode (Hold volume up + bixby key, then also hold power button) and select Wipe Cache - This will erase Dalvik cache.
Reboot the phone and delete system cache from the Storage settings
Log back into your Google account(s).
Charge your device and then observe idle drain overnight, or over a few hours.
If this process does not help your problem at all, you might have to do a factory reset to cure the services issue, or the problem might be related to something else, like a google service from some particular app. Use BBS to investigate wakelocks as you check your idle drain.
If this process helps you, but you see the issue again in future without changing anything, try going to the Developer Settings, look for active processes, and find Google Play services. Open them and then hit 'STOP' for each of their sub-services. Don't worry, they will restart on their own. After doing this, you might reboot your phone as well. Last time this little chore helped me out and the drain went away.
---
General Wakelocks
It's normal to get wakelocks even on a perfect system, but BBS will show exact percentages on each of them. Normal wakelocks usually show 0-1% of awake time for a session. If you start seeing numbers like 3%, 7% , 9%, or more, on some specific wakelock, then there is definitely a problem.
Wakelock battery drain will usually appear in your Android System/OS drain stats, so it's impossible to determine without an app.
The most common wakelocks for me are:
- *net_scheduler* wakelock - this one can be related to your WiFi connection. In order to fix it you should have access to the router's settings, and that is not always possible. If you do have access, you can try changing the Wi-Fi channel (choose channel based on Channel Width, for example 40Hz width on 2.4GHz network could use channel 11), and Beacon Interval (set the interval to the highest possible). I found this helped in my case. This wakelock can also be related to google play services - check the previous part of the post on how to possibly resolve the GPS issue. Also, the wakelock can appear under the icons of other apps, when there is little you can do to track down exactly why it happens.
- *com.google.android.gms.measurement* wakelock - this is a VERY common one in my case, and BBS usually shows it comes from Google Services, but always has a specific app icon next to it. In order to resolve this wakelock I had to do the following:
Open my package disabler and go through each app that might be using background data, or the app that is shown next to that wakelock, and then open their lists of individual services. I searched for:
1. AppMeasurementService
2. AppMeasurementJobService
3. Firebase... any service starting with Firebase in its name
These services are related to apps collecting some usage statistics on how you use them and sending them back somewhere, probably the app vendors. You do not need them for any app to be functional, and many apps don't have them. For some reason they can keep your device awake for long periods of time. I disabled them on ALL apps I could find them in and it seemed to resolve a lot of wakelocks after investigating the next following days. This process was probably one of the things that helped me the most with hunting down daily wakelocks as the drain is very stable for me now. For example, today I came back from work with 20 hours of phone usage since charge, almost 1h of SoT and 75% battery left. Other days, I have come back from home with 10 hours of usage, 1.5h of SoT and ~60%. I've seen a lot of improvement lately after doing all of the suggested things and keeping Google services at bay in parallel to that.
---
Bluetooth wakelock
This one was the most inexplicable to me. I never use Bluetooth, or turn it ON for any reason at all. I could not understand why the wakelock occurs.
Ultimately, my solution was to completely disable the Bluetooth System package and all services in it through the BK disabler.
I know this solution doesn't sound good to anyone, but at the same time it might be useful if you also do not use BT at all.
I plan to buy BT headphones in the near future and will be re-enabling this, and at that point I will start observing the behavior of the package once again and maybe turn it on/off at will if the wakelock re-appears too often.
---
Other wakelocks
The general rule here still applies. First, you record your usage with BBS. Then you note down which wakelocks appear on top, and google them as best as you can. Search is your friend here, as the wakelocks are endless and it is impossible for me to list them all and give solutions for even a small percentage of them. Sometimes you might get lucky and find an easy fix. In other times, there will be no easy explanation, or no explanation at all. Such is the nature of Android.
In some cases the wakelocks might be specific services that you can disable for specific apps. In other cases, they will be too general and it will be unclear why they occur. For example, I sometimes get *net_scheduler* wakelock with the Viber app, that can last for 20-30 minutes at random times, and still have not found a way to resolve that, other than uninstalling Viber completely (which is not a bad idea but sadly some of my contacts insist on using that crap. Telegram is your friend).
---
General Tips:
Use an AMOLED black theme. System theme from Samsung Themes (!) and individual app themes / status bar from Substratum. Do not use overlays for the system UNLESS you do not use samsung themes. I found out that Samsung themes do a better job at painting all system apps black, while some substratum overlays miss a few things. It will also be a LOT less painful to update overlays as you uninstall all of them and re-install them, because using Samsung for the system means less packages from Substratum to be installed. REMEMBER to always uninstall system overlays and statusbar overlays (ALL overlays if you want to be super safe) before doing a system update! Otherwise you can soft-brick your device.
Use auto-brightness and make sure to make it as low as you are comfortable with in rooms that you stay often in (like your own room, your office room, etc). Smart auto-brightness will remember you preference and you will hardly ever use more brightness than you need.
Turn off notifications for any apps that are not essential to you. In fact, I have turned off everything except Gmail, because I have a habit of checking my phone very often and do not miss out on anything, while notifications have become a bit annoying to me anyway.
Put almost all of your apps to 'Always Sleeping' in the device optimization app.
Do NOT always sleep apps that you need to be awake, like your Messaging app, Home Launcher, utility stuff like Navbar Apps, Keyboard. Put those in the 'Unmonitored' category instead.
DE-OPTIMIZE your fingerprint scanner from battery optimization settings if you are having issues with waking up the device with it. It is optimized by default if I remember correctly.
If you are feeling BRAVE, you can do your own investigation for each app that you use often to look for any services that might look like Analytics services. Experiment at your own risk, but generally such services are always a benefit to turn OFF for both battery and privacy reasons.
---
Overall, that's it. If I remember something, I will update the thread. Hopefully this can help someone.
In my personal results, I've managed to achieve a 0.3% idle drain per hour with Wi-Fi active during a test of 12 hours of standby. As visible in the screenshot, the Wi-Fi signal is not even perfect.
Here is an example of idle drain with about 1h 10m of SoT at the time it was taken.
---
Feel free to use this guide in conjunction with Neomancr's general battery and performance tuning guide
Thanks!
magarto said:
Thanks!
Click to expand...
Click to collapse
No problem!
This should be on top! Thanks a lot!
The "Service Disabler" functionality has been removed from the latest app version due to Google Play policies.
Fortunately we can find the previous apk version in the developers website.
https://kunkunsoft.wordpress.com/news_2/
Cheers!
hey thanks a ton for this article! My battery is horrible...REALLY. 2 h ost...I've just completed the first part. please explaind better what do you mean with "sign out from Google accounts" step by step. and in my case BBS was not adb enabled...I was not able to see wakelocks. the command explained here https://alexus.org/howto/better-battery-stats-no-root/amp (the google play store version) granted permissions for me. maybe you want to update the guide! I'll let you know how it goes.
cheers
@brokich
Could you please point us exactly to what are the main apps with AppMeasurement and Firebase services?
Until now I have found only the Google play store app.
Thanks for your great guide.
Thanks for the guide. Starting to debug battery issues. Meanwhile tried setting up the black theme. What do you mean by installing only Samsung theme? Do you mean a specific theme made by Samsung electronics or any black theme from Samsung theme market?
Here are the correct adb commands to BBS, as shown in the app in first start:
adb -d shell pm grant com.asksven.betterbatterystats android.permission.BATTERY_STATS
adb -d shell pm grant com.asksven.betterbatterystats android.permission.DUMP
adb -d shell pm grant com.asksven.betterbatterystats android.permission.PACKAGE_USAGE_STATS
There's a lot of threads out there regarding battery saving techniques, but I didn't really see anything that went into a lot of detail on the OP3t. I own both an OP3t and an OP5T, and after running into some issues with the battery I have finally gotten my phone to idle fairly well on the devices and figured I would share my techniques.
Anyone that reads this and finds this useful, I encourage you to let me know the outcome of your battery after following this guide. Also if you have any suggestions/recommendations, please share them with me on here. I can update the original post and include your suggestions so that it can be helpful for other users as well.
The wakelocks category can be pretty intimiating because it's different for all users based on applications they have, but if you have some custom regex wakelocks or just standard wakelocks that you would like to share, please let me know.
Now to the guide...
Phone Specs:
OnePlus 3T - 64Gb
OxygenOS 5.0.3 (stock) & rooted with Magisk
Kernel - Bane Kernel https://forum.xda-developers.com/on...e-development/kernel-bane-kernel-r-1-t3801778
Recovery - https://androidfilehost.com/?fid=890129502657595792
Developer Options:
Developer - On
OEM Unlocking - Enabled
Advanced Reboot - Enabled
* Doze mode * - Disabled
-I need to highlight this, because I usually enable this option, and I know many others do as well. I'm not sure if my situation is an anomaly, however I must highlight if you use 3rd party battery saving apps such as naptime, forcedoze, leandroid, you should disable this mode. If you don't use these apps, then you should be okay to enable the option. I had this option enabled initially while using the 3rd party apps, and they were conflicting with my phone and my battery was draining very rapidly. It wasn't until after I disabled this option that I noticed a significant improvement with the battery.
USB Debugging - Enabled
Verify apps over USB - Enabled
Tools I use:
Amplify - https://forum.xda-developers.com/xposed/modules/mod-nlpunbounce-reduce-nlp-wakelocks-t2853874
Better Battery Stats - https://forum.xda-developers.com/showthread.php?t=1179809
ForceDoze - https://forum.xda-developers.com/android/apps-games/app-forcedoze-force-doze-mode-screen-t3377694
LeanDroid - https://forum.xda-developers.com/showthread.php?t=2743316
Magisk v16.0\5.8.3 - https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Nova Launcher - https://forum.xda-developers.com/showthread.php?t=1389071
Xposed Framework v90 beta3 - https://dl-xda.xposed.info/framework/sdk26/arm64/xposed-v90-sdk26-arm64-beta3.zip
OOS Debloater v5 - https://forum.xda-developers.com/on...hemes-apps--mods/aroma-oos-debloater-t3615828
Amplify Settings:
WakeLocks:
Wakelocks(Allow every 900 seconds)
WakefulIntentService[GCoreUlr-LocationReportingService]
NetworkStats
Wakelocks(Allow every 3600 seconds)
WeatherUpdateService
Wakelocks(Allow every 10800 seconds)
SyncLoopWakeLock(delays sync)
*net_scheduler*
GCoreFlp
Icing
Wakeful StateMachine: GeofencerStateMachine
NfcService:mRoutingWakeLock
wake:com.pushbullet.android/.gcm.GcmService
SyncService(Package: Push Bullet)
ai(Package: Push Bullet)
ae(Package: Push Bullet)
AsyncService
Wakelocks(Allow every 41400 seconds)
NlpWakeLock
NlpCollectorWakeLock
LocationManagerService
Config Service Fetch
Wakelock regex:
*gms* 900 seconds
*facebook* 9999999 seconds (if you use facebook)
Alarms:
Alarms(Allow every 600 seconds)
com.android.internal.telephony.data-stall
Alarms(Allow every 1800 seconds)
com.oasisfeng.greenify.CLEAN_NOW (If you use greenify)
Alarms(Allow every 3600 seconds)
android.appwidget.action.APPWIDGET_UPDATE
Alarms(Allow every 7200 seconds)
android.content.syncmanager.SYNC_ALARM(delays sync
Alarms(Allow every 10800 seconds)
android.net.ConnectivityService.action.PKT_CNT_SAM PLE_INTERVAL_ELAPSED
com.facebook.common.executors.WakingExecutorServic e.ACTION.ALARM.com.facebook.katana
com.google.android.apps.hangouts.CLEANUP_DB
com.pushbullet.android/.gcm.GcmFixReceiver
com.android.server.action.NETWORK_STATS_POLL
com.diune.pictures.intent.action.MEDIA_CHECK
LocationManagerService
Alarms[LOCATION](Allow every 41400 seconds)
ALARM_WAKEUP_LOCATOR(com.google.android.gms.nlp.AL ARM_WAKEUP_LOCATOR)
ALARM_WAKEUP_CACHE_UPDATER
ALARM_WAKEUP_BURST_COLLECTOR(com.google.android.gm s.nlp.ALARM_WAKEUP_BURST_COLLECTOR)
com.google.android.gms.location.fused.GPS_ALARM_BA LANCED_ACCURACY
ALARM_WAKEUP_ACTIVE_COLLECTOR
ALARM_WAKEUP_PASSIVE_COLLECTOR
ALARM_WAKEUP_BURST_COLLECTION_TRIGGER
com.google.android.intent.action.SEND_IDLE
ALARM_WAKEUP_ACTIVITY_DETECTION
com.google.android.location.reporting.ACTION_UPDATE_WORLD
Alarms(Allow every 93600 seconds)
android.app.backup.intent.RUN
com.google.android.gms/.checkin.EventLogService$Receiver
com.google.android.gms/.checkinCheckinService%Receiver
Alarms regex:
ALARM_WAKEUP[0-9]+ 9999999 seconds
ForceDoze
These are the options I have checked in Forcedoze settings. Everything else is unchecked.
Turn off while charging - checked
Show persistent notification - checked
Ignore lockscreen timeout - checked
Disable motion sensing for Doze - checked
LeanDroid
DisableWi-Fi - checked
Cellular data - checked
Cellular Radio - unchecked
Bluetooth - checked
Network location - checked
GPS location - checked
SwitchCellular network mode to 2G - unchecked
5 min after screen off except (click except to add exceptions)
The only options I have checked under the exceptions are the following:
Except if tethering - checked
except if charging (AC) - checked
except if charging (USB/wireless) - checked
Disable (Under Exceptions settings)The only options I have checked are
Under (wi-fi, data, network mode)
Except if active: limit 3KB/s - checked
Under Bluetooth
Except if connected - checked
Under Location
Except if GPS in use - checked
Now back to the Leandroid home screen the following settings under "Restore"
I have selected "After screen unlocked"
Every 60 min for 60 seconds after screen off - checked
except 11PM - 6AM - checked
Except below 15% - checked
Magisk
The only module I use in Magisk is "Sysconfig Patcher" - This is supposed to help with optimizing battery for the google services (that are normally exempt from battery optimizations)
Xposed
The modules I have enabled are:
Amplify
ForceDoze
No Device Check (this is a xposed module you can download from the app that helps make SafetyNet check pass)
Now in Android Settings --> Data usage
Click on the cellular data usage as well as the wifi data usage, you can click on an app that shows up in that list that uses up a lot of data and when you click on it, there is an option to toggle off the option "Background data"
I'm not sure if this is really needed, but what I did is I went through the apps that used the most data (including google play store and google play services) and I toggled the background data off
Android Settings --> Battery
Click "Battery Optimization" --> click the ellipses (top right corner) --> Advanced optimization --> turn this on
Android Settings --> Apps --> Special Access --> Usage Access
Turned off for google play store and google play services
Android Settings --> Apps --> Special Access --> Unrestricted data access
All apps are turned off
These are all my custom settings. If you would like to share any, let me know!
Probably you didn't search enough.
There are many helpful topics here or at Oneplus forum for Amplify, Betterbatterystats or with guides for increased battery.
Sent from my ONEPLUS A3003 using Tapatalk
RASTAVIPER said:
Probably you didn't search enough.
There are many helpful topics here or at Oneplus forum for Amplify, Betterbatterystats or with guides for increased battery.
Sent from my ONEPLUS A3003 using Tapatalk
Click to expand...
Click to collapse
There are several very useful posts each individually spread around these forums; the purpose of this thread is to have a unified source so people don't have to look all over like I did. I know you initially posted on my thread when I had terrible battery drain issues; and after I posted the information you requested, I haven't heard anything from anyone so I had to troubleshoot and fix it on my own. I guess what I'm saying is, I just want to help others in case they run into a similar situation because it can be frustrating when you're seeking guidance or help and no one responds.
I use Naptime and also had enabled the Doze mode in the settings, so like you say i disabled doze mode now and kept naptime running , ill update this post with my findings
manohar3787 said:
I use Naptime and also had enabled the Doze mode in the settings, so like you say i disabled doze mode now and kept naptime running , ill update this post with my findings
Click to expand...
Click to collapse
Yeah, keep me posted. I'd be interested to see if your results are similar to mine. Were you also having a lot of battery drain despite using naptime and doze mode?
manohar3787 said:
I use Naptime and also had enabled the Doze mode in the settings, so like you say i disabled doze mode now and kept naptime running , ill update this post with my findings
Click to expand...
Click to collapse
@manohar3787 - curious to hear about your phone after turning off doze. Any updates?
Leandroid app is responsible of a severe wakelock, I think is almost better not to have it? Any opinion?
Also, what about RILJ And RILJ_ACW_WL wakelocks? Are these safe to block?
Sent from my ONEPLUS A3003 using Tapatalk
RILJ was safe to block on nougat and below, but in Oreo+ it will actually cause a lot of trouble with the system. The other wakelock you mentioned "RILJ_ACW_WL", I'm not familiar with. What I woudl recommend is do a full backup in your recovery, then make the change to observe what happens. If it messes things up you can recover from your backup.
Regarding Leandroid, I haven't really heard any concerns with it. There have been some responses of users that didn't find it to help any, but I haven't heard of it having an adverse affect.
Another app I haven't tried, but am tempted to try at some point is called Island: https://play.google.com/store/apps/details?id=com.oasisfeng.island
Also a thread about it here: http://forum.xda-developers.com/android/-t3366295
@xNAPx - how is your SOT and your idle battery like? DO you use any 3rd party apps/tools to help with battery drain?
m0d hipp¥ said:
RILJ was safe to block on nougat and below, but in Oreo+ it will actually cause a lot of trouble with the system. The other wakelock you mentioned "RILJ_ACW_WL", I'm not familiar with. What I woudl recommend is do a full backup in your recovery, then make the change to observe what happens. If it messes things up you can recover from your backup.
Regarding Leandroid, I haven't really heard any concerns with it. There have been some responses of users that didn't find it to help any, but I haven't heard of it having an adverse affect.
Another app I haven't tried, but am tempted to try at some point is called Island: https://play.google.com/store/apps/details?id=com.oasisfeng.island
Also a thread about it here: http://forum.xda-developers.com/android/-t3366295
@xNAPx - how is your SOT and your idle battery like? DO you use any 3rd party apps/tools to help with battery drain?
Click to expand...
Click to collapse
My SoT is dependent on the usage, night drain is less than 1% a hour even 0% sometimes, SoT is between 7 and 5 h
About those wakelock I've heard the same about RILJ on Oreo, about the other one I don't know but is heavy as well.
About Leandroid I'm not very convinced. It messes up with notification and now I have another big wakelock to worry about
Sent from my ONEPLUS A3003 using Tapatalk
Unable to End Google play services
i am unable to doze google play services since am already running doze mode+magisk modules(sysconfig patcher + enable doze moe for gms )
Still i can see play services in Running services
Kind help needed
@xNAPx - do you have any custom settings or tools you use? Do you use Greenify?
What are the big wakelock issues that you have trouble with? Is it the one you mentioned "RILJ_ACW_WL" or other ones?
@Anusha Rao - Are you using doze mode within the Android system or 3rd party tools like I posted?
I don't think you want to use both magisk modules. As I mentioned in my post, I only use the sysconfig patcher. And make sure you reboot the phone after enabling that.
To check and see if google play services is being optimized for battery try going here:
Settings --> Apps --> Application List--> Google Play Services --> Battery
When I look at mine it shows 0m in use
0% battery usage
Battery Optimization:
Optimizing battery use
EDIT:
I'm posting screenshots of my googple play store and the google play services having battery optimization enabled and using 0% battery.
BTW, just so we're on the same page, you shouldn't completely "stop" google play services because it's essentially what drives the OS. Those services are important for letting your phone operate correctly. My thread is about optimizing those services not disabling/stopping them.
If you want to completely "freeze" certain apps and services you can try out that application I posted in my previous post called "Island". I'd be curious to hear how it works out.
That one plus "RILJ" plus "LEANDROID service" (which I un installed) , and also "AudioMix" and "xalarmx"
Sent from my ONEPLUS A3003 using Tapatalk
Amplify tells me I need to root my device but I have Magisk installed...?
I'm not familiar with the rom that you have "Dirty Unicorns". I use the stock ROM.
Most custom roms have root built in though so you might not even need to use magisk or super SU. You can check to see if there are any custom rom settings o maybe go into developer settings and see if you see a "Root" option.
Face unlock is not supported in the "Bane Kernel".
Does Lean Droid caused more battery Drain?
m0d hipp¥ said:
@Anusha Rao - Are you using doze mode within the Android system or 3rd party tools like I posted?
I don't think you want to use both magisk modules. As I mentioned in my post, I only use the sysconfig patcher. And make sure you reboot the phone after enabling that.
To check and see if google play services is being optimized for battery try going here:
Settings --> Apps --> Application List--> Google Play Services --> Battery
When I look at mine it shows 0m in use
0% battery usage
Battery Optimization:
Optimizing battery use
EDIT:
I'm posting screenshots of my googple play store and the google play services having battery optimization enabled and using 0% battery.
BTW, just so we're on the same page, you shouldn't completely "stop" google play services because it's essentially what drives the OS. Those services are important for letting your phone operate correctly. My thread is about optimizing those services not disabling/stopping them.
If you want to completely "freeze" certain apps and services you can try out that application I posted in my previous post called "Island". I'd be curious to hear how it works out.
Click to expand...
Click to collapse
Disable background data in Play Store and Play service will not disabling them right?
@Bintang Ksatria - Leandroid should be using less battery. @Rvl7 - No it won't disable them. I still use them, but it's on manual load, and not in the back ground. At least that has been my experience.
m0d hipp¥ said:
@Bintang Ksatria - Leandroid should be using less battery. @Rvl7 - No it won't disable them. I still use them, but it's on manual load, and not in the back ground. At least that has been my experience.
Click to expand...
Click to collapse
A good post , it helps us a lot .
I cannot receive any whatsapp call when the screen is locked, calls do come only when screen is on. This is not the case with other similar apps such as Line or Viber.
-Do not disturb mode is off.
-Battery optimization is set to 'unrestricted'
-Data saver is off
-Unlimited data usage is on
...
I tried literally every possible setting but no success. As if the phone somehow puts whatsapp calls to silent or restricts them when screen is off.
I'm rooted on Pixel Experience ROM but it is not ROM related because on other ROMs same problem occured.... could this be a kernel problem?
What might cause it?
What other possible solutions are there besides changing settings?
Hope someone could help.
---
EDIT: Managed to fix it through universal GMS doze module.
GitHub - gloeyisk/universal-gms-doze: Patches Google Play services app and its background processes to be able using battery optimization
Patches Google Play services app and its background processes to be able using battery optimization - GitHub - gloeyisk/universal-gms-doze: Patches Google Play services app and its background proce...
github.com