How to check with specific app causing wakelock in Android System? - General Questions and Answers

I've just got a new phone for weeks but found that the battery life is not as good as my wife's one (same phone model).
After installing GSam, it seems to me that Android System is the main contributor of the battery drain. Using below as an example, there is over one thousand times of wakelock for GnssLocationProvider, 656 for *location* and 683 for *alarm*.
Any idea what can I do to further check what app(s) is actually causing these wakelocks? Many thanks for any help which could be offered.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Detecting wakelocks is pretty easy once you have a rooted phone. Fully charge your battery to 100% and install an app, called Wakelock Detector on the device.

jwoegerbauer said:
Detecting wakelocks is pretty easy once you have a rooted phone. Fully charge your battery to 100% and install an app, called Wakelock Detector on the device.
Click to expand...
Click to collapse
My phone is non-root one, but I've installed Wakelock Detector and with proper right granted.
But in WD, it still just showed the same like the screenshot I've shared in first post, i.e. those have been grouped under Android System...

Related

Phone never deepsleeps

My phone never deep sleeps its on stock recovery/stock rom/stock everything
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have no idea what app is doing it!
Go download better batterystats from play store or there's a free version here on xda. Open it to show partial\kernel wakelocks. That's will tell you everything.
Sent from My Nexus 7 running KitKat
Highest one is CacheUpdateService by google services
kernal wakelocks is empty
markdapimp said:
Highest one is CacheUpdateService by google services
kernal wakelocks is empty
Click to expand...
Click to collapse
I had that cacheupdate wakelock on my S3 running 4.4 Cm11 but a reboot fixed it. That's strange you have no kernel wake locks. Everybody has some. Are you using the latest beta of BBS?
Edit: going to bed. I hope someone picks this up where I left off. If not I'll be here in 8 hours
Sent from My Nexus 7 running KitKat
I had the same thing happen yesterday, casheupdateservice had a continuous wake lock for almost 6 hours. Reboot seems to have fixed it for now. It didn't seem to effect battery life too much, but still shouldn't be holding a wake lock for that long.
Sent from my SCH-I535

[Q] GsmInboundSmsHandler battery drain

I'm monitoring my battery life after I returned to stock ROM and Kernel. I'm using ART, bacause I heard that the phone can have better battery management.
After 1/3 of usage I saw this on Attivo ( = Awake)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I used BetterBatteryStats and I saw this
I made a few research on internet, but I didn't find anything usefull.
I take another screenshot from the section Alarm
Now, I don't know if com.google.android.gms is the responsible of the GsmInboundSmsHandler wakelock, but I don't think so, cause I read that GsmInboundSmsHandler is a phone service.
What can I do? Because you can see that the Awake bar shows up constantly after 1/3 of battery usage.
The phone has been awaken for 1 g 17 h 42 m and the screen for 3 h 48 m. I can't really complain, but maybe the battery can do better than this.
Did you already fix it? If you did, then how? I´m having the same problem on my Moto G. The Phone APK is draining my battery. When I use Wakelocks Detector for more info it is the "GsmInboundSmsHandler". Please. Help.

[Q] Google App draining battery?

Hi everyone!
I just got a Nexus 5 and it seems that the Google app (not Google Services) is draining my battery. It used 23%, while the next biggest user was the Android system with 4%. What causes this? Is it because the Google app is also the launcher? Or is it a bug?
I already looked in the Battery thread but couldn't really find anything useful (as most of it concerned the Play Services). I hope someone can help me!
Kind regards!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Try disabling location permission using app ops (need to be rooted) see if that helps you. http://i.reddit.com/r/Android/comments/1zxri4/google_play_services_battery_drain_the_real read whole article I know its not quite what your issue is but seems close.
Good luck.
gaosphappy said:
Try disabling location permission using app ops (need to be rooted) see if that helps you. http://i.reddit.com/r/Android/comments/1zxri4/google_play_services_battery_drain_the_real read whole article I know its not quite what your issue is but seems close.
Good luck.
Click to expand...
Click to collapse
Thanks for the reply! The problem seems to have fixed itself overnight, probably a bug in the Google App.

Help diagnose poor battery life

I don't have any hard facts but I feel like my phone has been getting worse and worse. Here's some screenshots of today's crap performance from stock battery usage and BBS.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Stock, rooted, running Vindicator kernel.
If you are experiencing that level of drain while your phone should be idling, dont worry. It is a common issue and there is a fix available. Quite certain root is necessary thought, if not to flash, to change permissions.
The fix is here
forum.xda-developers.com/tmobile-galaxy-s6/general/guide-enable-deep-sleep-rooting-t3080833/post61159744#post61159744
Thoth33 said:
If you are experiencing that level of drain while your phone should be idling, dont worry. It is a common issue and there is a fix available. Quite certain root is necessary thought, if not to flash, to change permissions.
The fix is here
forum.xda-developers.com/tmobile-galaxy-s6/general/guide-enable-deep-sleep-rooting-t3080833/post61159744#post61159744
Click to expand...
Click to collapse
I had already done this fix a few weeks back. Not sure how it could've come back but I suppose it's possible as I have been tinkering with my phone. Thanks for the help!
Sad to say that fix did not work. My phone lost about 50% battery while I was asleep.

Android OS battery usage / stay awake

Device: SM-G920F, LUX CSC, 6.0.1 May 2016 ROM, stock, not rooted
OK, so after spending three hours figuring out an insane Android System battery drain problem (caused by a *backup* wakelock worked-around by disabling Google backups), I have another problem with the Android OS battery usage. Now, this one is somewhat better - I can live with 10% drop per night (8 hours), but is still not normal. Did lots of searching on these kernel wakelocks, but no cookie:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. Wifi and bluetoothing scanning for improved location are off.
2. NFC is off
3. S Health is disabled
4. Tried turning off all the "smart" Samsung features
5. Cache wiped (though I never believed in this voodoo
At this point I'm all out of ideas. Any help? Also, what's your overnight Android OS battery usage? Thanks!
We have all big thread about battery drain

Categories

Resources