Wakelocks and battery stats access in Lollipop and Marshmallows - Xperia Z5 Q&A, Help & Troubleshooting

Can the Z5 read battery stats and wakelocks logs (e.g. apps like wakelock detector or better battery stats) with Lollipop without root? Is this supposed to change in any way with Marshmallows?
It beats me why Kitkat doesn't allow reading battery stats: just reading, not writing nor changing anything, surely poses no security threat, while being an invaluable tool in identifying apps which misbehave and cause battery drain.
Thanks

Not in Lollipop

Related

Is anyone else's battery stats all wonky with 4.4.2 ROMs?

I've been playing around with some 4.4.2 nightlies (Slim, PA, CM, Gummy, OSE, etc) and I've noticed that all of them have some battery stat issues.... the stock battery app is registering the phone as awake 100% of the time (verified with other apps as not accurate)... and secondary battery apps like GSAM, BBS, WLD, all show odd information. GSAM (companion installed as system app) shows the correct totals for a module's total "held awake" time, but the actual wakelocks all have the same count and time (which all add up to the overall total... it's guessing). WLD also shows (totals are OK, but individual stats are junk). BBS isn't/can't filter out the zero'd stats and some of those stats are shown in such a way that it looks like it lacks some specific information and is trying to fill in the gaps.
I know Google messed with battery stats a bit to lock them down... I've installed the GSAM companion as well as the Xposed module to open them back up again. But this doesn't explain the STOCK battery app's problem in getting accurate results.
Anyone else see this? I've been trying to track down a wlan_ctrl_wakelock problem when I load 4.4.2 ROMs, but without the granular power stats, I really can't see anything of use (and what IS there, I can't really trust).
Is this just a case of things being too new with KK?
I'm on cm11 12/21 and ever since the battery stuff was changed back around the 12/16 nightly things have been weird. My stock battery app shows zero awake time, but GSam and BBS show the correct wake times (also have GSam companion and Xposed module for KK battery stats).
The problem appears in those apps when I try to see partial wakelocks - they're all ridiculously low, like 15 seconds with a 20 hour uptime. BBS says all the wakelocks are kernel wakelocks, buy when you check those it's all just PowerManager wakelocks, which are all the partials lumped together
For a wlan_ctrl_wakelock you can try the app Network Log - if you're getting those wakelocks, you'll see a lot of packets bouncing around from your phone to your router, or other traffic on the router (specifically if the kernel is sending/receiving a bunch of packets)
Sent from my SCH-I535 using XDA Premium 4 mobile app
scorchedsky said:
I'm on cm11 12/21 and ever since the battery stuff was changed back around the 12/16 nightly things have been weird.
Click to expand...
Click to collapse
Pretty much. I just loaded a nightly from last night... battery stats got fixed in the base code from the looks of it.
Thanks on the logging app... going to give it a look.... might just be a simple adjustment in my network, I hope.
There is more drain than 4.3 roms, but I'd venture to say it's related to coding of the device to the framework and it will improve as the roms advance. Wakelocks are the main culprit so get Better Battery Stats and see what's keeping the device awake.
For wlan, turn off wifi scanning in advanced wifi options.

Oneplus One - Poor battery

Hi guys,
I got a really annoying issue with my 1+1, got my phone for 2/3 months.
I did already a lot to fix this issue but couldn't find a fix.
Battery status: battery savings..
Pics:
http ://imgur.com/a/dMmVb
Does anyone know a trick to fix the android system draining bug?
Your screenshots show absolutely no information. You need root and one of the following apps,
- BetteryBatteryStats
- GSam
- Wakelock Detector
Root required. From that point on, you'll know what app is causing your battery to drain via partial wakelocks and alarms.
Have you tried a fresh stock install of 38 r? Ota seems to result in poorer performance. Assuming your using 11s?
Disable "wake lock" and "stay awake" in Privacy guard to Google play services.

The best free process monitoring tool?

I am after a tool that can show me diagnostic information on Apps, system processes etc. My immediate need is for spotting what's causing my phone to heat up suddenly and halve its battery life overnight.
I have a feeling its an app upgrade that's causing the issue. I'd like to figure out which so I can report to its dev.
Thank you in advance and am happy to be pointed to an existing thread if this has been discussed and answered.
Give these a try:
Wakelock detector
https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector
Better battery stats
http://forum.xda-developers.com/showthread.php?t=1179809
Gsam
https://play.google.com/store/apps/details?id=com.gsamlabs.bbm
System monitorhttps://play.google.com/store/apps/details?id=com.cgollner.systemmonitor.lite

[Completed] 100% Awake, Galaxy S5. Better Battery Stats Kernel Wakelocks "File could not be read"

100% Awake, Galaxy S5. Better Battery Stats Kernel Wakelocks "File could not be read"
I've had my Samsung Galaxy S5 for over a year. A while back I updated the OS a couple of times, and now it's on Lollipop (5.1.1). Lately the battery life is very low, although I don't think this started at the same time as the upgrades.
I've tried to use Better Battery Stats to figure out why. It concurs with the Battery control panel that my phone is staying Awake all of the time, never in sleep mode. Most of the time is at the 300MHz cpu speed. Unfortunately when I try to view the Kernel Wakelocks section of BBS, it just says "File could not be read" and presents me no statistics. I was using an old version of BBS, and have just updated to the newest version and this behavior persists.
According to the Battery control panel my top consumers of battery life are Android OS (10-20%), Android System, Bluetooth, Screen, Google Play Services, Cell standby (2-5%), and then a bunch of apps at <5% each..
Hello,
Welcome to XDA.
If your device is rooted you can try the Wakelock Detector from playstore to check your wakelocks. There are also apps to control your wakelocks and you can also use the Kernel Auditor app to further manage your device's behavior.
I didn't see a question in your post but you can try posting your issue in the forum linked below.
http://forum.xda-developers.com/galaxy-s5/help
The experts there may be able to help, good luck.
Thanks, I'll try the s5 help forum

SNS_SMD and RMNET_DFC wakelocks

Greetings, I have a problem with constant wakelocks on my MI11i phone since the day I bought it. Those wakelocks drain battery by 30% overnight, but also cause increased drain during the day in standby too since they instantly kick in as soon as the phone is locked, overall resulting in poor battery life. Even thou I am not an advanced user and has no need of it, I went so far that I completely factory reset the phone(this was the 2nd time), then reflashed new recovery and new official ROM to see will that sort the issue, then for a good measure I also rooted it with TWRP and Magisk. I tried underclocking the cpu to the lowest but it makes no difference while in standby since obviously that isn't the case. I tried using icebox but there were no processes that had SNS or RMNET in their names, so I just froze some analytics apps. Both wakelocks are gone as soon as I turn on the airplane mode or switch to wifi. Any app that can help me freeze those or edit something in kernel?
I found a rom that fixes the wakelock, listed here https://miuiflash.com/roms/miui-csx/alioth/miui-csx-v13-0-8-0-stable-alioth
But i couldn't find a way to contact the author for more info can i fix the kernel myself

Categories

Resources