[Q] wakelocks: how to identify which app is calling a given process? - Android Q&A, Help & Troubleshooting

I am having lots of issues (have had to reset it 3 times over the last 10 days!) with my Sony Z3 running KitKat, but I am posting here as I see this as a generic, non-Sony specific question.
I am rooted and use BetterBatteryStats and Wakelock detector to identify partial wakelocks. I have had to reset the phone 3 times over the last 10 days because of mysterious processes locking the CPU, draining the battery, overheating the phone, and also because the play store stopped working (always stuck at 'download pending').
My question is: I can use these (and other apps) to find the services which are causing wakelocks, battery drain, etc, but is there any way to find which apps invoked the services?
If I find that app X is misbehaving, well, I will try changing the settings of that app, or consider removing it. But if I find the battery drain is caused by, say, google’s location service, that’s not particularly useful because a number of different apps may have called it. Was it a wether app? A public transport app? Was it just Android going nuts? That piece of information is basically useless because it doesn’t tell me which app is the problem.
Thoughts? Any help would be greatly appreciated!

Related

[Q] Google services - high data usage = battery drain

Hi, I have a stock i9300, rooted.
About 3 days ago, I noticed that my device, which normally gets through a day comfortably, was running out of juice by early afternoon.
I've checked the data usage meter and it shows that Google Services is doing something with data constantly. It's not a lot of data (500MB over 7 days) but it's enough to keep my "H+" showing data uploading and downloading all the time, which is not normal behaviour.
As a result of this, the battery is running dry. Even when plugged in, the charging isn't keeping up and eventually the battery runs out, and I have to leave the phone off for a bit to recharge.
I have since turned off background data for Google Services, and I'm hoping this works, although I don't know what I'm going to lose in terms of functionality as a result of doing that.
But I'd like to know what the problem is and why this has suddenly happened as it's really bugging me. Hoping someone else has experienced this. I have searched for other threads on this topic, all refer to battery drain but I don't seem to have the same issue. If I look at my battery stats I'm not seeing Google Services at the top of the list like others. Mine is more to do with data.
Cheers,
Pete
I cant answer why or what it is, but one thing I did notice wasted a lot of battery for me (other than google now of course) was the google backup. You know the one you tick when you first go through the set up wizard on the phone? "Backup this device with google".
piannetta said:
Hi, I have a stock i9300, rooted.
About 3 days ago, I noticed that my device, which normally gets through a day comfortably, was running out of juice by early afternoon.
I've checked the data usage meter and it shows that Google Services is doing something with data constantly. It's not a lot of data (500MB over 7 days) but it's enough to keep my "H+" showing data uploading and downloading all the time, which is not normal behaviour.
As a result of this, the battery is running dry. Even when plugged in, the charging isn't keeping up and eventually the battery runs out, and I have to leave the phone off for a bit to recharge.
I have since turned off background data for Google Services, and I'm hoping this works, although I don't know what I'm going to lose in terms of functionality as a result of doing that.
But I'd like to know what the problem is and why this has suddenly happened as it's really bugging me. Hoping someone else has experienced this. I have searched for other threads on this topic, all refer to battery drain but I don't seem to have the same issue. If I look at my battery stats I'm not seeing Google Services at the top of the list like others. Mine is more to do with data.
Cheers,
Pete
Click to expand...
Click to collapse
hi,
if you have various system or user apps wakelocks, first do a monitoring it with your favorite battery monitor and analysis tool to details.
gmail, google services, backup, sync contacts, other syncs google plus, etc, localization services, call direct or indirectly other apps, bringing more wakelocks (partial, kernel, network - your case I think) ... and more battery drains ... facebook is a classic example ... hungry app
Wakelocks - read it ... enlight your questions
http://forum.xda-developers.com/wiki/Wakelocks
to monitorate and analyse the battery consumption, drain, and wakes use BetterBatteryStats - bbs
[APP][2.1+][16 Apr. - V1.13.4] BetterBatteryStats - thread
http://forum.xda-developers.com/showthread.php?t=1179809
you can use traditional battery savers (i didn't recommend)
I do use greenify together with bbs (paid app - to full hibernate and extras, but very good - the "engine" is different, doesn't kill or freeze, but hibernate system (need root) or users apps. @oasisfeng created a smart and reliable engine - support him
[APP][3.1+] Greenify *ROOT* v1.85 beta 6 (Updated on Jun.6)
http://forum.xda-developers.com/showthread.php?t=2155737
increase my battery and decrease unnecessary wakelocks ... excellent results ...
see other members comments in xda thread and user reviews in google play
https://play.google.com/store/apps/details?id=com.oasisfeng.greenify.pro
i recommend check this:
[GUIDE]Tips to Improve your android battery life
http://forum.xda-developers.com/showthread.php?t=2144661
best regards,

[Q] Battery Drain when changing permissions with App Ops

I have recently been taking control over the permissions I allow with certain apps with the use of App Ops starter that was included with my LG G3 Android 5.0 update.
I have noticed however that since I have disabled certain permissions for certain apps the battery usage for those apps intermittently skyrocket to using 30% in under an hour at random times. This often happens while the phone is idling and with those apps not even open in my task manager.
Some examples would be disabling the location data for apps such as Facebook's "Messenger" app and also games like Wooga's "Diamond Dash". Google's default "Maps" app is also a culprit after disabling access to contacts/phone.
My guess would be that these apps are stuck in some loop constantly checking for the information they no longer have access to.
Can anyone comment as to having similar results? Can anyone make suggestions as to possible things I could do on my end?
I have tried to re-enable the permissions to verify the results however as this is not an issue that affects the battery constantly but only intermittently I'm unsure as to whether I am right in my assumptions and there was one instance where I had re-enabled all the permissions for Facebook's "Messenger" yet it still consumed significant amounts of battery while being closed and the phone in it's idle state.
osiris231 said:
I have recently been taking control over the permissions I allow with certain apps with the use of App Ops starter that was included with my LG G3 Android 5.0 update.
I have noticed however that since I have disabled certain permissions for certain apps the battery usage for those apps intermittently skyrocket to using 30% in under an hour at random times. This often happens while the phone is idling and with those apps not even open in my task manager.
Some examples would be disabling the location data for apps such as Facebook's "Messenger" app and also games like Wooga's "Diamond Dash". Google's default "Maps" app is also a culprit after disabling access to contacts/phone.
My guess would be that these apps are stuck in some loop constantly checking for the information they no longer have access to.
Can anyone comment as to having similar results? Can anyone make suggestions as to possible things I could do on my end?
I have tried to re-enable the permissions to verify the results however as this is not an issue that affects the battery constantly but only intermittently I'm unsure as to whether I am right in my assumptions and there was one instance where I had re-enabled all the permissions for Facebook's "Messenger" yet it still consumed significant amounts of battery while being closed and the phone in it's idle state.
Click to expand...
Click to collapse
You are right on why it's happening. If they can't get the info they are programmed for then they keep trying. Not a whole lot you can do really. As long as they are programmed to try and get the info then they will keep trying.

[Q] What is Google Play *net_scheduler* and why is it killing my battery?

With my phone largely idle, Google Play Services is consuming 40-50% of the power and seems to be stopping the phone sleeping. The net_scheduler wakelock is the biggest culprit causing up to around 800,000 wakelocks in a day. It got to the point where I couldn't get through a day of minimal usage without recharging during the afternoon. I don't use Google+, I have turned off location services and disabled Google books, movies, games, search and google+ apps. I still have sync enabled for Google apps data, calendar, chrome, contacts, gmail and internet but I have disabled sync for drive, Fit data, people and picasa which I don't use anyway.
The problem was worse when I was using Exchange Services to sync with my work email and calendar. Turning off email sync helped a bit but Google Play Services activity still seemed to ramp up and stay high when I had a calendar appointment in Outlook, even with the sync period set to manual. So I have now removed the Exchange account completely.
I am aware that Exchange Services seems to be a common problem, something to do with the version of the Exchange server? Anyway that is not within my control. The serious battery drain started maybe 4 weeks ago and Exchange Services was responsible for most of it. Having eliminated that, its now Google Play, which also seems to be a common problem but usually NlpWakeLock? My phone is currently showing it has been kept awake 1h51m by Google Play Services since this morning, and 1h39m of that is net_scheduler (435409 wakelocks). GSam battery monitor shows almost continuous background activity even when I am not using the phone. The highest battery usage per app is by Google Play Services at 27%, the next highest is Kernel at 9%.
The battery drain seems to be worse when I am at work, where the signal is poor and I am on wifi but that has always been the case. I also use wifi at home. I turn off mobile data while at work to try and reduce battery usage. Other than changes to reduce battery drain I haven't changed anything on my phone for ages and I haven't updated or installed anything new, although I think Google Play automatically updated itself a few weeks ago.
What is net_scheduler and how do I stop it or Google Play killing my battery?
stock Samsung Galaxy S3 LTE, not rooted, on T-mobile
Android 4.3
New battery less than a year ago.
Someone please answer your... I am having the same issue and it is riculous. On one plus oxygen.
I am having the exact same problem. 28929 wakelocks for *net_scheduler*
Thank you in advance for anyone's help!
Custom Samsung Note 3 Rom 4.4.2
Me too, pls help us to solve this problem. Thanks.
its my problem too , fk my battery ! plz help ...
Same problem. Recently, battery has been draining crazy fast in standby. Wakelock detector shows this net scheduler causing 263,000 wakelocks over only 4 hours standby and lost about 25% battery doing nothing. Android 4.3 on sony xperia sp.
Using OS monitor app, Android system and google services framework are consuming 60% cpu power when phone is just idle.
Google are a bunch of idiots.
---------- Post added at 02:02 PM ---------- Previous post was at 01:38 PM ----------
To fix, find Google Services Framework and clear data and cache. Instantly fixed the problem. CPU usage by Android system and Google framework dropped to 0 and wakelocks have stopped increasing.
I highly recommend the app OS monitor, let's you put a permanent notification which shows top 3 things consuming cpu power.
Before Clearing Framework (this was non-stop, even restarting didn't help)
After
problem has returned, google, you suck.
Hi, I have the same issue like you. I disabled some services of google play services and I was thinking that that was the reason of wakelock *net_scheduler*, but it isn't, because I flashed new ROM with all services enabled but *net_scheduler* is draining my battery again. Its strange that is showing it randomly, I mean some day I don't have that wakelock and the next day I have it. Really strange.
If anyone knows more about it please answer.
Hey,
I have the same issue. Since the last GPS update wont even last a day. I found also that the GPS are responsible and in my case its also the *net_scheduler* service. It is pretty active. I already tried a few things from here: http://forum.xda-developers.com/showthread.php?t=2357417
But so far nothing helped. It drains the battery really fast, yesterday my battery went from 50% to 30% in 20 min. That sucks.
If someone found a fix please post it here
Tried uninstalling google play services update, everything fine. Then updated it via play store and within a few minutes of update noticed phone was getting hot and laggy again. Same issue, something is going on with google play services causing massive wakelocks and high cpu usage. Currently at 1.4 million net_scheduler wakelocks in past 18 hours. Had to recharge twice even though phone barely used.
For no obvious reason, since yesterday I don't appear to be having the problem with Google Play Services any more. I haven't done anything to the phone, I am in the same location, nothing has changed on my end as far as I know unless I have inadvertently done or not done something that I normally do or don't do. In any case the problem appears to have gone away, or maybe it is just dormant waiting to drain my battery when I least expect it...
Something broken on the Google servers that they have now fixed?
Yep its fixed itself, there was an update on 18th June. The version with problems was 7.5.71 now its 7.5.74
Used my phone without google play services for a day and it actually doesn't affect much. You can still use play store, chrome but most other google apps won't work. Snaptube can be used as youtube replacement. If you can live without hangouts,gmail etc I'd recommend just removing it completely, save any future headaches.
Hmmm... I still have Google Play Services 7.5.71. Strangely Google Play Store says it has no connection, even though I am on wifi and other apps can connect fine. Maybe that's why it hasn't been able to hammer my battery?
What is the relationship, if any, between GP Services and GP Store?
spencetj said:
Hmmm... I still have Google Play Services 7.5.71. Strangely Google Play Store says it has no connection, even though I am on wifi and other apps can connect fine. Maybe that's why it hasn't been able to hammer my battery?
What is the relationship, if any, between GP Services and GP Store?
Click to expand...
Click to collapse
I got the no connection on play store after clearing google framework cache. Had to reboot phone to fix it. Could be why the issue has stopped for you as I noticed it did too after clearing framework at first.
Completely uninstall google play services, it will reset to factory default. Re-enable it and launch a google app such as youtube. It will prompt you to update and bring you to google play services page on play store where latest version will be downloaded.
Google Play Services updated itself over the weekend to 7.5.74, lets hope this one fixes the battery drain for me. I never get any option to update or not, the only reason I know it updated is because I have an app that automatically backup up any app that gets installed, so I can revert to the previous version if an update causes problems. I did try reverting GPS but installation of the previous version failed.
Anyway, is there any way to stop Google services updating automatically? I can't find anything in the settings. I have Play Store set not to update automatically but that doesn't seem to make any difference. When google play services updates I don't get redirected to the Play store, it just installs the update without asking me.
Follow these hints next time.
Anyone else still having this issue? It's issuing a lot of wakelocks for me (Marshmallow/TouchWiz Note 4)
Coldblackice said:
Anyone else still having this issue? It's issuing a lot of wakelocks for me (Marshmallow/TouchWiz Note 4)
Click to expand...
Click to collapse
Yep same for me (TW MM Note 4). Amplify shows *net_scheduler* to be by far biggest wakelock, which is what brought me to this thread. Google Play Services now at at v9.4.52. Hmmm.
wakelock
it is google play services which drains battery very drasticly
arctophile said:
Yep same for me (TW MM Note 4). Amplify shows *net_scheduler* to be by far biggest wakelock, which is what brought me to this thread. Google Play Services now at at v9.4.52. Hmmm.
Click to expand...
Click to collapse
Started happening to me yesterday - battery was great until this

Google Services Battery Drain

Beginning last week, I started to commute into NYC on the bus for work. This is when my battery charge would plummet at a high rate. Google (Play) Services was sucking it down. I haven't had this happen before. It was also responsible for 200 MB of background data so I turned it off. That seems to have stopped the bleeding. But I would like to figure out if there is a misbehaving app.
I installed Better Battery Stats, but I can't seem to find info as to which app is using Google Services. I would appreciate any tips on how to tease this information from my phone.
It appears that I solved my problem. I am not 100% sure exactly what fixed it because I tried so many things. For Google Play Services, I downloaded the lastest APK for my phone from APK Mirror. I installed that over the current installation. I wanted to install an old version, but it wouldn't install. I was afraid to uninstall Google Play Services to see if that would have worked.
I also had Mediaserver draining my battery. I had over 1,000 images on my SD card so I reduced that number to below 300 and it worked.

Battery drain 100% (device doesn't sleep)

Hi everyone,
Just I've purchased this device I came across with the 'battery drain' problem. I've read and done all possible suggestions, like switch of location services, sync, disable wi-fi/bluetooth, etc. But that didn't help. After that rooted the device and installed TitaniumBackup, BestBatteryStat, WakeLock Detector.
TitaniumBackup: many services like Knox were disabled (I also found list of useless services, so I disabled a lot of them).
With BBS and WLD I've been measuring that is going wrong. Did anyone have the same problems? I can't public links to images here yet. I would appreciate if anybody know what the problem might be.

Categories

Resources