Android O and BBS (or wakelock detector) - Google Pixel Questions & Answers

Does BBS or wakelock detector not work with Android O? After giving the app root permissions and letting the phone sit for a few hours, it isn't finding any partial wakelock data.

BetterBatteryStats 2.3 (beta, currently 2.3-109) works for me on my Pixel XL (on Fi) running OPR1.170623.026, rooted with Magisk. It's said to not require systemization anymore, but I have it systemized anyway (systemlessly, with Magisk, via Terminal App Systemizer and Privileged Permission Whitelist). For full effect, it requires doze whitelisting, as it always did. As far as I can tell, SELinux Enforcing mode is said/suspected to interfere with some BBS stats, so I'm using the SELinux Permissive Script (Magisk module) until/unless I find out otherwise. The BetterBatteryStats forum thread is very active and contains loads of info related to troubleshooting and making use of the data.
BetterBatteryStats 2.2.2.0 doesn't work. I believe this is (at least in part) because it can't handle the large size of the battery info packets that it is fed by the system's battery info service.
Wakelock Detector Full 2.0.4 doesn't work for me. I've tried setting it up essentially the same way as BBS (altering its privileged app permissions to suit it). It recognizes that it's a system app, but its stat pages are all blank and a toast that says:
Failed to perform this task at the moment, try again later
Click to expand...
Click to collapse
Its forum thread is much less active and contains no mention of Oreo.

Related

Massive battery drain with xposed framework or Gravity box latest update ?

Am I the only one that has seen massive battery drain with xposed framework or gravity box latest update ?
I always make a backup before updating so now i'm back at version 2.5.1 Xposed and 3.1.2 on gravity box. Not having battery problem now.
If i update to 2.6.1 xposed and to 3.1.4 GravityBox i have massive battery drain.
Am i the only one?
Maybe i'm updating in the wrong way. This is how i do:
1.Download and install latest xposed apk.
2.Framework--> Install/Update
3.Reboot.
That's really strange. After updating, did you try wiping cache/dalvik?
What do you mean by massive battery drain? Need more details, what's causing it. A battery screen shot would be better than nothing, better yet, gsam or bbs
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
What do you mean by massive battery drain? Need more details, what's causing it. A battery screen shot would be better than nothing, better yet, gsam or bbs
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Didn't try to wiping cache/dalvik.
I can't make battery screen shot because i've restored the nandroid backup. I remember on BBS under "Partial Wakelocks" the first was nlpCollectorWakeLock, in about 20 minutes the wakelocks count were at about 200. And under "Alarms" com.google.android.gms was first.
Matte93 said:
Didn't try to wiping cache/dalvik.
I can't make battery screen shot because i've restored the nandroid backup. I remember on BBS under "Partial Wakelocks" the first was nlpCollectorWakeLock, in about 20 minutes the wakelocks count were at about 200. And under "Alarms" com.google.android.gms was first.
Click to expand...
Click to collapse
This has absolutely nothing to do with Xposed or Gravity Box. NLP stands for Network Location Provider and the cause of NLP wakelocks are the Google Location Service. There's a long thread about this particular issue in the Nexus 5 general section. Turn your location settings off or "device only" and/or turn off Google Now. That is right now the only work-around available until Google fixes it.
Edit: Here's a link to that thread so you can read more about the issue. It is not ROM related, it is not Xposed related, it is not kernel related and it is not recovery related.
Ok thanks. I'll try to update again xposed and gravitybox
Matte93 said:
Ok thanks. I'll try to update again xposed and gravitybox
Click to expand...
Click to collapse
Like I said mate, it doesn't matter. You can even uninstall xposed and gravitybox and it won't make any difference regarding that NLP wakelock bug. It is Google's problem and occurs with location access and Google Now.
I disabled Google Now, and changed the location setting to only GPS. Now it's even better. Thanks!
Do you think that using the xposed to rearrange the nav-bar buttons will affect the performance or the battery life?

[Tip][KitKat] Battery Saving Tip / Disable NlpCollectorWakeLock

Found something helpful today.
Many of you must have noticed that "NlpCollectorWakeLock" keeps the phone awake for long durations (running into multiple hours per day sometimes). Now, it may appear that this has something to do with network location and one might think that disabling it would affect your phone's location capabilities. But, as it happens, this doesn't affect your phone's location capabilities. This wakelock is for something else apparently, so just go ahead and bypass it! Here's the method:
REQUIREMENTS: KitKat, Root, Xposed Framework
DOWNLOAD: "Wakelock Terminator" from Play Store
The app is accompanied by an Xposed Module, so you'll need to restart to enable it. Don't do any tinkering in the app before restarting.
After restarting, go in to the app, find "Google Play services", tap on it once, check the "Prevent Wake Lock" checkbox.
Tap on "Filter Wake Lock" and type in "NlpCollectorWakeLock" in the provided area. (Check the spelling and cases.) (Multiple entries here, if you fancy, need to be in separate lines. You can optionally include "NlpWakeLock" and "Checkin Service" - or "CheckinService" - though they aren't as big hoggers as the other one.)
Restart phone once.
DONE!
You should be able to see a visible reduction in battery drain. I did.
The good thing about this is it doesn't affect your phone's location capabilities. Maps will work as they should. Google Now's location-based features will work as they should.
Also, be aware, this doesn't completely disable the wakelocks. But it WILL considerably reduce the amount of time they are taking by spoofing them. (Read Wakelock Terminator's website)
Nevertheless, take it with a pinch of salt. Report any unforeseen side-effects here.
Hope this helps!
Oh, and here's where I found this.
Meanwhile on Planet Xposed:
There's another fix for the ridiculous Nlp wakelocks.
Check this out.
It increases the alarm interval at which Play services runs these wakelocks. This is certainly a better approach as it will still allow you all the functionality of the Google Location services. By default, Play services has an alarm interval of 60 seconds (yep, that often). This Xposed module will let you increase that to any value (I'm currently keeping it at 10 mins). Please note, the UI where you can change these intervals is currently accessible only through the Modules page in the Xposed Installer app.
Don't forget to unblock the wakelocks from Wakelock Terminator or CM Privacy Guard (if you have done so).

No CPU deep sleep

Hi,
I am not sure if this should be posted to specific forum for my Moto X. If so, please let me know.
The battery drains very quickly. I used CPU spy and it showed that phone never enters deep sleep, even though I barely uses it.
How could I found out which application is preventing the sleep?
Thanks
Like Sewrizer said, search for a wakelock detector on google play store and lock your screen for some time
It should show you which app is causing this problem
I have Moto X with 4.4 and no root. It looks like Wake Lock Detector would need root on 4.4. Is that right?
Thanks
betterbatterystatus is also a good app that helps with analysis of battery drain.
Anyway in the case you know you only need to check wakelocks, but I would still recommend BBS for you (of cource, BBS can analysis wakelocks as well)
@redhonker
BBS did not work in 4.4.4 in non rooted mode.
It happened to me on Moto g. Some culprit app drained battery. So i used DS battery and greenify together.
DS battery- Slumberer mode (This forces deep sleep i guess)
Greenify- Allows you to shut down nonsense background apps.
Now phone is back to normalcy. Again CM battery doctor listed some music app as "Fast draining" I uninstalled some.
As general advice:
Disable auto sync and poll frequency of your email and other apps and get back your motto x. Enjoy
Press Thanks if helped.
Sent from my XT1033 using XDA Free mobile app
I thought greenify needs root as well. Will try it.
This KitKat change is really bad. I don't know why they want to prevent users to know more about their battery usage.
What is CM battery?
Thanks
Greenify has a hack for non root. You can enable hibernate feature from home up button for screen lock pin enabled devices through experimental menu.
For non - pin screen lock devices go to experimental menu click "automated hibernation". This will enable hibernation after screen off.
I prefer home button scroll up menu for " hibernate + lock screen ".
CM battery doctor was previously KS battery doctor. I just use it to kill apps and know battery % left in status bar.
Remember no battery saver app is useful for non root devices because ability to control is much lessor.
Rooted battery savers can limit cpu usage, kill apps and prevent again from Android picking up.
Greenify an exception beyond 4.0 devices.
Sent from my XT1033 using XDA Free mobile app
This post will benefit all not just @OP
To identify bg apps that suck your internet and battery just install No root firewall and check access log. Uninstall those apps that keep pinging servers outside for adverts etc.
https://play.google.com/store/apps/details?id=app.greyshirts.firewall&hl=en
Eg: Nova launcher access advertisements on avg of 4/sec. Do decide which one is best for you.
You can even control system apps like Motorola updates etc.
DS battery saver
https://play.google.com/store/apps/details?id=com.rootuninstaller.batrsaver&hl=en
Greenify
https://play.google.com/store/apps/details?id=com.oasisfeng.greenify&hl=en
CM/KS battery doctor
https://play.google.com/store/apps/details?id=com.ijinshan.kbatterydoctor_en&hl=en
As you see CM reports higher battery available time than DS battery saver.
I suspect former (CM) is more publicity driven and not sure about its performance. While DS is good.
Please press THANKS if interesting. Sent from Moto G-od via xt1033 free Android app.
One more way to analyze usage
1. Press following
*#*#4636#*#*
2. Or download phone testing app which does the above for you
https://play.google.com/store/apps/details?id=diewland.testing.phone&hl=en
3. Click "Usage Statistics" -> "Usage time"
This does not require memory intensive app or root as it comes pre installed on your phone. Enjoy.
Please press THANKS if interesting. Sent from Moto G-od via xt1033 free Android app.
I run Mobiwol and block all apps I don't think need internet access. Plus AdblockPlus to remove advertisement trafficc. (I wish I have root then I need only one app).
Without root on 4.4, how much these can do?
I installed GSam. The frustrating thing is that most of application usage is by Android System and Kernel: 9 and 5 out of 34.
Thanks
Thanks for all the pointers.
With a few tries with GSAM, I was able to identify 2 rouge applications. Surprisingly, one is Google+. Since I don't use it, it's uninstalled.
I also recently moved to a different spot in office. The data signal apparently is bad from time to time. So I used llama to turn off data in office and wake up every 10 min to check for message.
This allowed me to go through the day without a recharge. Still not happy about battery life but that's ok for now.
Thanks
Try the Deep Sleep Battery Saver app mentioned earlier. Should solve your issue, since it forces deep sleep!

Delete

Deleted
So I've been browsing for the past 2 hours on wifi and these are my stats.
Battery: 2200 mAh
SoC: Extremely Power Hungry MT6591
Brightness: Adequate
Now at 35%, the phone was being used pretty much constantly (chrome, a movie in mx player, imgur, 2 hours on whatsapp, light CoC)
Here are the results.
19%. And this is the max I could manage. Going to plugin now.
Testing out now...Thanks!!
---------- Post added at 12:10 PM ---------- Previous post was at 12:02 PM ----------
Adithya FRK said:
Blue Blood Modified Battery Profile (SOT) for L Speed + GovTuner
NOTE: This profile and the configurations for GovTuner is entirely based upon the need for more SOT or 'screen-on-time'. Performance improvements are not the 'primary' objective, but there are some.
Name: Sorry but I couldn't make up a better one. LOL.
This profile will try its best to give you a better screen on time taking into consideration there will be some decrease in performance (some visible, some not).
Installation Instructions
Part 1 - L Speed
1. Download the .zip file attached.
2. Open it with any file manager/archiver and you should see the profile file.
3. Goto your SD Card -> LSpeedBackup (create folder if it doesn't exist) and paste the file inside the .zip there.
4. Open L Speed -> Backup -> Restore: Blue Blood.
L Speed's done.
Part 2 - GovTuner
1. Visit GovTuner​'s XDA thread and download the latest zip file.
2. Flash the zip file and install 'Terminal Emulator' from playstore.
3. Open 'Terminal Emulator', and type 'su' and enter. Grant the SuperSU request and you will now be in a root shell.
4. Now type 'govtuner' and enter.
5. Choose battery profile by typing '1' and touching enter.
6. After activating battery profile, enter 'i' and enter '2' as the value.
7. Now you can press the 'X' on the top right hand corner to close the window.
GovTuner is now all setup.
You are pretty much ready now. Enjoy your extra SOT!!
I SERIOUSLY RECOMMEND USING AppOpsXposed, Greenify, Amplify and Powernap with this to get rid of the idle drain because in the end that too translate to a better SOT. :highfive: (The below results are obtained with the help of those applications too)
My phone which is an extremely battery hungry thing needs to be charged atleast 3 times a day to last from morning to night. With this I've managed to get away with just 1 charge for 14 hours (4-4.5 hours of SOT vs 1-2 hours).
Please do reply back with your experiences. I'm waiting for some happy faces. :fingers-crossed:
Also criticisms. :angel:
Credits: Debuffer (GovTuner), Paget96 (L Speed)
Click to expand...
Click to collapse
Any alternatives to AppOpsXposed, Amplify and Powernap that don't require Xposed?? Already use Greenify and Servicely.
jeraspie28 said:
Testing out now...Thanks!!
---------- Post added at 12:10 PM ---------- Previous post was at 12:02 PM ----------
Any alternatives to AppOpsXposed, Amplify and Powernap that don't require Xposed?? Already use Greenify and Servicely.
Click to expand...
Click to collapse
You can use AppOps from play store which doesn't need xposed. Alternatives to Powernap? Naptime works. Amplify doesn't have an alternative to my knowledge sorry
Hey, thanks for sharing this! Much needed​ for my phone htc desire 816 (a5dwg) running lineage 7.1.1 and at any rom, it is hungry. I mean literally I've purchased a new original 2600mAh battery for this reason. Still the problem persists. Today only, I've charged the phone to full and kept it on airplane and silent (took the phone to school ), and found that after 3 hours, battery is 20-25% reduced. I'm a little noob that's why I'm asking you that "what are the steps that should be followed / apps to be installed to maintain the battery like yours
Thanks in advance ?
singhjot0020 said:
Hey, thanks for sharing this! Much needed​ for my phone htc desire 816 (a5dwg) running lineage 7.1.1 and at any rom, it is hungry. I mean literally I've purchased a new original 2600mAh battery for this reason. Still the problem persists. Today only, I've charged the phone to full and kept it on airplane and silent (took the phone to school ), and found that after 3 hours, battery is 20-25% reduced. I'm a little noob that's why I'm asking you that "what are the steps that should be followed / apps to be installed to maintain the battery like yours
Thanks in advance ?
Click to expand...
Click to collapse
Glad I can help. Something is keeping your phone awake all that time that its's not going to deep sleep. That's mostly Google to blame but let's start with the basics
Before that don't call yourself a noob. You got a custom ROM running, most people I know can't even do that.
To fix Idle Drain
First find if you have Idle drain.
Install Better Battery Stats and open it, grant root etc. Now plug the phone to the charger and hit refresh. Now unplug the charger, turn the screen off for a minute or so.
Now turn it on, you should see the device state. If it says Deep Sleep 0%, then the below things can help you.
Disable background Wi-Fi scanning.
Your phone scans for WiFi even when you turn it off. The steps below are based on my Lollipop 5.1, but I believe it's the same on 7.1 too.
Goto Settings -> Wifi -> The three buttons on the top right -> Advanced
There disable 'Network Notifications', 'Scanning Always Available' and 'Keep Wifi awake during sleep'.
Greenify
You must already be using this.
As a rule of thumb, greenify any app which requires an internet connection, those keep waking the system over and over again. Just make sure you don't add any core system apps.
If you have Facebook's app installed, remove it. It's the biggest battery hogging app ever happened (i don't agree that's made) in human history. Use it in chrome. Or any wrapper apps from Play store: Metal, Friendly are a few options.
If you have xposed installed,
Powernap
Set it to endurance mode and that's all. Whitelist amplify, greenify and lspeed. You can whitelist more apps later if you feel the need.
Amplify
This is a must in reducing wakelocks. Unfortunately I can't write the whole procedure here because it's been done before. Check this.
http://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884
Still, every phone is unique. After following that thread, IF your device still isn't sleeping (after trying the below too), try blocking more wakelocks. Do a search if you are not sure of a particular wakelock. It will take some time, but it will be worth it.
AppOpsXposed
You can disable some of Google's data collection and analytics whatever stuff using this. Follow this nice thread. It helps massively.
https://forum.xda-developers.com/crossdevice-dev/sony/existenz-hacks-tweaks-battery-life-t3516705
If you have managed to get that deep sleep in BetterBatteryStats almost 90% of the time the screen was off, then congratulations you have fixed your Idle drain.
Reply back with your experiences. :fingers-crossed:
Adithya FRK said:
Glad I can help. Something is keeping your phone awake all that time that its's not going to deep sleep. That's mostly Google to blame but let's start with the basics
Before that don't call yourself a noob. You got a custom ROM running, most people I know can't even do that.
To fix Idle Drain
First find if you have Idle drain.
Install Better Battery Stats and open it, grant root etc. Now plug the phone to the charger and hit refresh. Now unplug the charger, turn the screen off for a minute or so.
Now turn it on, you should see the device state. If it says Deep Sleep 0%, then the below things can help you.
Disable background Wi-Fi scanning.
Your phone scans for WiFi even when you turn it off. The steps below are based on my Lollipop 5.1, but I believe it's the same on 7.1 too.
Goto Settings -> Wifi -> The three buttons on the top right -> Advanced
There disable 'Network Notifications', 'Scanning Always Available' and 'Keep Wifi awake during sleep'.
Greenify
You must already be using this.
As a rule of thumb, greenify any app which requires an internet connection, those keep waking the system over and over again. Just make sure you don't add any core system apps.
If you have Facebook's app installed, remove it. It's the biggest battery hogging app ever happened (i don't agree that's made) in human history. Use it in chrome. Or any wrapper apps from Play store: Metal, Friendly are a few options.
If you have xposed installed,
Powernap
Set it to endurance mode and that's all. You can whitelist apps later if you feel the need.
Amplify
This is a must in reducing wakelocks. Unfortunately I can't write the whole procedure here because it's been done before. Check this.
http://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884
Still, every phone is unique. After following that thread, IF your device still isn't sleeping (after trying the below too), try blocking more wakelocks. Do a search if you are not sure of a particular wakelock. It will take some time, but it will be worth it.
AppOpsXposed
You can disable some of Google's data collection and analytics whatever stuff using this. Follow this nice thread. It helps massively.
https://forum.xda-developers.com/crossdevice-dev/sony/existenz-hacks-tweaks-battery-life-t3516705
If you have managed to get that deep sleep in BetterBatteryStats almost 90% of the time the screen was off, then congratulations you have fixed your Idle drain.
Reply back with your experiences. :fingers-crossed:
Click to expand...
Click to collapse
Thankyou so much, will try this surely ?
Adithya FRK said:
Glad I can help. Something is keeping your phone awake all that time that its's not going to deep sleep. That's mostly Google to blame but let's start with the basics
Before that don't call yourself a noob. You got a custom ROM running, most people I know can't even do that.
To fix Idle Drain
First find if you have Idle drain.
Install Better Battery Stats and open it, grant root etc. Now plug the phone to the charger and hit refresh. Now unplug the charger, turn the screen off for a minute or so.
Now turn it on, you should see the device state. If it says Deep Sleep 0%, then the below things can help you.
Disable background Wi-Fi scanning.
Your phone scans for WiFi even when you turn it off. The steps below are based on my Lollipop 5.1, but I believe it's the same on 7.1 too.
Goto Settings -> Wifi -> The three buttons on the top right -> Advanced
There disable 'Network Notifications', 'Scanning Always Available' and 'Keep Wifi awake during sleep'.
Greenify
You must already be using this.
As a rule of thumb, greenify any app which requires an internet connection, those keep waking the system over and over again. Just make sure you don't add any core system apps.
If you have Facebook's app installed, remove it. It's the biggest battery hogging app ever happened (i don't agree that's made) in human history. Use it in chrome. Or any wrapper apps from Play store: Metal, Friendly are a few options.
If you have xposed installed,
Powernap
Set it to endurance mode and that's all. You can whitelist apps later if you feel the need.
Amplify
This is a must in reducing wakelocks. Unfortunately I can't write the whole procedure here because it's been done before. Check this.
http://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884
Still, every phone is unique. After following that thread, IF your device still isn't sleeping (after trying the below too), try blocking more wakelocks. Do a search if you are not sure of a particular wakelock. It will take some time, but it will be worth it.
AppOpsXposed
You can disable some of Google's data collection and analytics whatever stuff using this. Follow this nice thread. It helps massively.
https://forum.xda-developers.com/crossdevice-dev/sony/existenz-hacks-tweaks-battery-life-t3516705
If you have managed to get that deep sleep in BetterBatteryStats almost 90% of the time the screen was off, then congratulations you have fixed your Idle drain.
Reply back with your experiences. :fingers-crossed:
Click to expand...
Click to collapse
I've installed "L Speed" and greenify from play store
& I've shred my stats. Pls look and suggest improvements
singhjot0020 said:
I've installed "L Speed" and greenify from play store
& I've shred my stats. Pls look and suggest improvements
Click to expand...
Click to collapse
Can you also post a screenshot of your battery stats
Adithya FRK said:
Can you also post a screenshot of your battery stats
Click to expand...
Click to collapse
Sorry, I've switched to stock to check battery capabilities but still problem persists
Battery droppes from 100 to 83 in 30-35 minutes
in govtuner change the gov to ondemand, i guess u use perfomance.
What can I do, I got a notification that L speed us eating my battery...but if optimized will not work as it should right?
Today update my Rom and got error. Not working because if use 3th party kernel ini.t emulator...but I'm not using one.
Sir_gpm said:
What can I do, I got a notification that L speed us eating my battery...but if optimized will not work as it should right?
Today update my Rom and got error. Not working because if use 3th party kernel ini.t emulator...but I'm not using one.
Click to expand...
Click to collapse
What ROM are you using?
FreedomOS for oneplus 3t.
@Adithya FRK
Choosing battery profile from govtuner is the same as choosing it from Lspeed CPU menu, right? Or is there some significant change between the two?
ninjanmizuki said:
@Adithya FRK
Choosing battery profile from govtuner is the same as choosing it from Lspeed CPU menu, right? Or is there some significant change between the two?
Click to expand...
Click to collapse
Both are the same. See post #2 of GovTuner's official thread here - https://forum.xda-developers.com/an...mod-gov-tuner-project-29th-june-2016-t3407828
But don't enable both of them at the same time.
After 1 whole month of tweaking with various functions of L Speed, finally found a combination to improve the battery even more.
BlueBlood v2.1 (Download link in Post #1)
Tested on L Speed Beta from Play Store.
Adithya FRK said:
After 1 whole month of tweaking with various functions of L Speed, finally found a combination to improve the battery even more.
BlueBlood v2.1 (Download link in Post #1)
Tested on L Speed Beta from Play Store.
Click to expand...
Click to collapse
Sir, can u share your KA settings, such as your govenor, i/o
Sent from my ASUS_Z00A using Tapatalk

GSam stopped working properly (also BetterBatteryStats, Wakelock Detector lite)

I got a new Motorola phone (running Android 7.0) a few weeks ago and installed GSam on it, including giving it BATTERY_STATS permission via adb. It all worked flawlessly for maybe 2 weeks. But, after last time I charged my phone, no matter what I do it behaves as if the BATTERY_STATS permission is gone. That is, all app usage is grouped together, and it has no info on wakelocks, sensors, etc. I see a similar behavior (e.g. no stats info whatsoever) on other apps: BetterBatteryStats and Waklelock Detector Lite that used to work fine, but now have no stats.
What I've tried:
1. Rebooting the phone several times - no effect
2. Clearing cache - no effect
3. Re-granted permission via adb just in case.
4. Used a 3rd party app (Permission Dog) to check that those apps actually have BATTERY_STATS permission - they do
This happened once before where after charging my phone there were no stats / GSam behaved badly, but then it recovered after rebooting. Has anyone else run into this? Any idea why it's happening / how to fix it? Thanks!

Categories

Resources