Android OS process eating away battery life - Galaxy S II General

Hi all,
So, this problem appears common on other phones as well, and appears to be a Gingerbread issue. Drilling down further using Watchdog Lite on the phone, it appears to be a process called Suspend causing the high CPU usage.
There are a few threads on this:
http://code.google.com/p/android/issues/detail?id=11126#makechanges
http://code.google.com/p/android/issues/detail?id=15057
http://forum.xda-developers.com/showthread.php?p=10004299&posted=1#post10004299
http://forums.t-mobile.com/t5/myTouch-4G/quot-suspend-quot-linux-process/m-p/605813
Personally, I'm getting pretty terrible battery life out of my S2, and I can confirm that in the Battery Status menu, Android OS appears extremely high at around 40% (a friends Nexus has this sitting at around 2%).
Not sure there's much we can do about it but wait and hope for a fix from Samsung (or Google)... People are reporting that rebooting the phone can help, but it's only temporary.
Anyway, just something to check if you're having issues.

+1 second that.
Android os eats the most of the battery
Reboot helps temporarily.
Sent from my GT-I9100 using XDA Premium App

My os is at 79% i have no idea whats going on? but i am running launcher pro plus?

OK. So now we have identified an "issue".
Could you guys post juiceplotter logs while phone is asleep and draining, and while in use?
For asleep, i mean literally not touching it for half an hour. On, just occasional tap to keep screen on.
What we are after is an idea of what is causing system to use the power. Can we compare configurations of push email etc, to see if anything differs?
Are we rooted? Etc

{
"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"
}
this is a screen print of my usage.
How do you do the log thing ?
http://imageshack.us/photo/my-images/59/sc20110509160954.jpg/

pulser_g2 said:
OK. So now we have identified an "issue".
Could you guys post juiceplotter logs while phone is asleep and draining, and while in use?
For asleep, i mean literally not touching it for half an hour. On, just occasional tap to keep screen on.
What we are after is an idea of what is causing system to use the power. Can we compare configurations of push email etc, to see if anything differs?
Are we rooted? Etc
Click to expand...
Click to collapse
Hi mate,
I rooted my phone yesterday, but I don't think that's a cause as it was just as bad before. In fact I rooted it just so I could freeze some apps
At the moment, I only have my google account set to sync (calendar, mail, contacts), and I have gmail pushing through emails.
All the stock Samsung apps are frozen. No widgets are running (I'm trying to run it fairly barebones to see how long I can get out of it).
I don't have juiceplotter installed, I'll look into that. I do have Watchdog though, and from all the other threads on this issue the problem seems to be the Suspend process (confirmed by a Google employee).
I don't think there's much we can do aside from wait for a fix. The problem appears to have been around since at least September last year.

I had this the first few days I had the phone, my battery was being wiped out in hours.
I formatted both my mem cards and hard reset. Since then my battey life has been amazing (got through the whole day yesterday only using 25% battery), and os use has dropped to about 18% (still a bit high but better than 40%).

Same issue here, both new flashed roms and my own slim roms suffer from same issue. I have a look tonight if i can find any solution.

simonk83 said:
Hi mate,
I rooted my phone yesterday, but I don't think that's a cause as it was just as bad before. In fact I rooted it just so I could freeze some apps
At the moment, I only have my google account set to sync (calendar, mail, contacts), and I have gmail pushing through emails.
All the stock Samsung apps are frozen. No widgets are running (I'm trying to run it fairly barebones to see how long I can get out of it).
I don't have juiceplotter installed, I'll look into that. I do have Watchdog though, and from all the other threads on this issue the problem seems to be the Suspend process (confirmed by a Google employee).
I don't think there's much we can do aside from wait for a fix. The problem appears to have been around since at least September last year.
Click to expand...
Click to collapse
OK. I will see if I can think of anything, as I remember we fixed a similar issue when popping 2.1 onto it, when some binary was giving us trouble...

Root or no root don not affect this issue. Only time i dont get it: fresh flash of new rom without anything installed.

Same issue here and I rooted freezing load of Apps but still drain
*edit*
It seems to stop drain when using reboot the phone.. not yet confirmed just a speculation... Btw these processes eat a lot of battery never got these problems on sgs1 custom gingers rom
Sent from my GT-I9100 using Tapatalk

Seem that ginger on SGS 2 has this bug present:
http://phandroid.com/2011/03/04/android-2-3-3-gingerbread-update-killing-nexus-one-battery-life/

Did anyone tried this? I had a similar issue with Gingerbread on SGS1 and it was fixed after clearing the data for System Update.
http://forum.xda-developers.com/showthread.php?t=1021711

Haven't encountered the problem yet with pretty heavy use plus a few resets. It's probably a specific app or settings that you're turning on/using after each hard reset that causes it.
I'm still on the original firmware though, haven't flashed a new one yet. Might be related.

this is not universal, i don't have this problem. sgs 2 rooted with insecure kernel by chainfire.

*subscribing*
I also have the same drain issue. I have the S2 setup exactly the same way my Captivate was, and the battery life isn't the same.

I got better results after disabling background data in accounts ans sync (settings)
More testing ongoing.

DocRambone said:
I got better results after disabling background data in accounts ans sync (settings)
More testing ongoing.
Click to expand...
Click to collapse
Not really relevant I think - all Android users are going to have background data enabled in accounts and sync. Mine is enabled without the issue, anyway. I am only syncing a single gmail account though.
Have you tried what the linked thread recommends - going into manage applications and clearing data for the update system? You might want to try clearing data for all of the android system tasks.

RyanZA said:
Not really relevant I think - all Android users are going to have background data enabled in accounts and sync. Mine is enabled without the issue, anyway. I am only syncing a single gmail account though.
Click to expand...
Click to collapse
Yes, but this 2.3.3 bug eat 5-10% battery/h in idle!... so all solutions is good.
I tried a number of "solutions", none helped. The background data seems to help

MaelstromXC said:
Did anyone tried this? I had a similar issue with Gingerbread on SGS1 and it was fixed after clearing the data for System Update.
http://forum.xda-developers.com/showthread.php?t=1021711
Click to expand...
Click to collapse
I just tried this, gonna charge to 100% then unplug it and let juiceplotter run to see what happens. Also I have the Samsung account app frozen.

Related

Wow, removing bloatware = WAY BETTER BATTERY LIFE!

After rooting my phone and using titanium backup (per erichss's suggestion) from the market to remove apps I'll never use, the battery life on my phone is better than anything I've ever experienced.
Yesterday I took it off the charger at around 10-11, then went to a food and wine festival in DC and took pictures and video and basically just used the phone a lot. Last night before bed (past 12) when I hooked it up to the charger, it said the phone was at 70%! I know it's only like 12 hours of use, but still, I DO notice a difference in the rate at which it goes down.
When I first got the phone, I would be getting the low battery warning around the time I got home from work after about 10 hours of being on, AND sitting at my desk for 8 hours in airplane mode since there's no service.
I don't know what exactly it was that I removed that had the biggest impact, but I did notice that when I went to settings>applications>running services I saw a lot of stuff I didn't even want. The 3g mobile hotspot app had a service running for instance, so did skype. Maybe the stock apps that had services running in the background are the ones that drain the most.
I haven't rooted my phone yet, but just from using various task killers I have noticed that there is a lot of crap running on this phone.
At first I didn't really give it much thought, but one day I checked my phone after it had been sitting on my desk for 3 hours off the charger and the battery read 70%. That was with the phone idle, black screen, doing nothing with it for 3 hours.
I need to get around to rooting it so I don't have to try and kill tasks every 15 minutes.
To make matters worse, it seems a lot of the bloatware randomly starts up too, even after you have terminated the process.
astraelraen said:
I haven't rooted my phone yet, but just from using various task killers I have noticed that there is a lot of crap running on this phone.
At first I didn't really give it much thought, but one day I checked my phone after it had been sitting on my desk for 3 hours off the charger and the battery read 70%. That was with the phone idle, black screen, doing nothing with it for 3 hours.
I need to get around to rooting it so I don't have to try and kill tasks every 15 minutes.
To make matters worse, it seems a lot of the bloatware randomly starts up too, even after you have terminated the process.
Click to expand...
Click to collapse
Yes, that's exactly right. These apps will start up and services will run in the background. That my verizon app had a data usage service I think. Voice commands (something I NEVER will use) had it's own service running as well before I removed it.
Rooting is fairly easy. The hardest part is setting up adb, but really all you need to do is add it's location to your system's path variable and when you open up cmd.exe you'll be able to simply run commands off of it.
Here's a good rooting guide for the fascinate http://www.droidforums.net/forum/sa...ent/79811-newbie-guide-rooting-fascinate.html
Good luck. Let me know if any apps stand out as being a major culprit.
could you formulate a list of what you removed?
dopepope said:
could you formulate a list of what you removed?
Click to expand...
Click to collapse
agree here. I definitely need to remove more stuff. the RAM footprint is incredibly high out of the box.
is there a list going of confirmed bloatware/trialware that can be uninstalled by titanium, that won't brick the phone?
Or maybe a batch file that will get rid of them and our them back if needed..
Sounds easy enough.. Need that comprehensive list and locations of said files.. Need replacement files as I already used angels rom...
Sent from my SCH-I500 using XDA App
well for example, there's a utility generated by the community for the Storm 1 called "Shrink-A-OS". This utility was what got me through two years of the storm 1. uninstalling all unnecessary languages, files, folders, startup items, etc etc - all by checking boxes. VZ utilities uninstalled with ease, even...
I'm on board so far with this Fascinate. the out of box experience has been DREADFUL, and in all honesty, the storm 1 did everything out of the box but entertainment. this phone is the exact opposite so far. I had to have gmail, to connect to the marketplace, to download an app.... to then get comcast mail. bluetooth barely works. GPS is spotty. there's trialware (hello CityID, go away), bloatware (hello verizon everything) and it needs a lot of work.
but I'm confident that when 2.2 hits, we'll be all set to go. when the first 5.0 OS was out for the bold, people were immediately porting what would work over to the storm 1. I'm surprised there aren't 2.2 builds for this phone already...
Sorry guys, I should have documented everything I took out.
Just look at what services are running in the background, and ask yourself which one of those apps you really won't use. For me, it obviously was something that had an impact on battery life :/
Speaking of which, I uninstalled my visual voicemail app, but now the button in the dialer that goes to it crashes the dialer whenever I press it. Can someone post this vvm apk?
chronster said:
Sorry guys, I should have documented everything I took out.
Just look at what services are running in the background, and ask yourself which one of those apps you really won't use. For me, it obviously was something that had an impact on battery life :/
Speaking of which, I uninstalled my visual voicemail app, but now the button in the dialer that goes to it crashes the dialer whenever I press it. Can someone post this vvm apk?
Click to expand...
Click to collapse
Chronster I also have the problem with VM button crashing my dialer due to the super clean ROM, did you find this APK?
Protonus said:
Chronster I also have the problem with VM button crashing my dialer due to the super clean ROM, did you find this APK?
Click to expand...
Click to collapse
yeah here you go, just move these 4 files in this zip to system/app
These can be safely removed:
{
"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"
}
Please note that I do not use any built in social networking or verizon sync, only google. I also replaced the TouchWiz launcher with ADW in the /system/app folder prior to removing TouchWiz.
Don't pull anything if you don't know what it does, or at least dont yell if your phone borks.
I've had no issues with these being done away with.
Does freezing apps in Titanium Backup provide the same effect as deleting them from the phone?
chronster said:
yeah here you go, just move these 4 files in this zip to system/app
Click to expand...
Click to collapse
Actually I found I had the same files from a stock fascinate dump, so I tired them first. I have the same problem with my files and yours (look to be identical) - after copying all 4 into the \system\app folder, about 30 seconds later the phone locks up bad. Screen goes black, and pressing the buttons at the bottom light them up and they stay on, can't power off or get anything on the screen. Pulling battery and rebooting has the phone stay on the "Verizon" screen for like 30 seconds, and then it does the same thing/locks up....
Had to restore a Clockwork/ROM Manager backup to get the phone to work again.. Tried with just the VVMService files instead of all 4 and had the same result.
I also while I was running the stock ROM, had this exact same reaction trying to copy in the Clock APK/ODEX files... had to wipe the phone to get it to work again.
Any other ideas how to load these in? Just running the APK's say it can't install. Do they need to be "baked" into the CleanROM?
tonyb81 said:
Does freezing apps in Titanium Backup provide the same effect as deleting them from the phone?
Click to expand...
Click to collapse
Yes, minus the fact that they don't save you any space.
Protonus said:
Actually I found I had the same files from a stock fascinate dump, so I tired them first. I have the same problem with my files and yours (look to be identical) - after copying all 4 into the \system\app folder, about 30 seconds later the phone locks up bad. Screen goes black, and pressing the buttons at the bottom light them up and they stay on, can't power off or get anything on the screen. Pulling battery and rebooting has the phone stay on the "Verizon" screen for like 30 seconds, and then it does the same thing/locks up....
Had to restore a Clockwork/ROM Manager backup to get the phone to work again.. Tried with just the VVMService files instead of all 4 and had the same result.
I also while I was running the stock ROM, had this exact same reaction trying to copy in the Clock APK/ODEX files... had to wipe the phone to get it to work again.
Any other ideas how to load these in? Just running the APK's say it can't install. Do they need to be "baked" into the CleanROM?
Click to expand...
Click to collapse
Oh my God I'm so sorry! I had no idea it would have that reaction.
I moved them back into that folder and it was all done for me. Voicemail worked fine.
Let me ask you (I'm new) would doing a factory reset from the settings menu be the same as restoring the stock rom and all it's apps?
Daswolven said:
These can be safely removed:
Please note that I do not use any built in social networking or verizon sync, only google. I also replaced the TouchWiz launcher with ADW in the /system/app folder prior to removing TouchWiz.
Don't pull anything if you don't know what it does, or at least dont yell if your phone borks.
I've had no issues with these being done away with.
Click to expand...
Click to collapse
Thanks for the info! Could you do us one more favor and set the view to details, then order by filesize? That way if people are trying to save space, they can see the biggest files to remove...
chronster said:
Let me ask you (I'm new) would doing a factory reset from the settings menu be the same as restoring the stock rom and all it's apps?
Click to expand...
Click to collapse
No. Nothing can touch androids /system partition (unless you root) & a factory reset depends on that fact.
A factory reset basically wipes everything that is user accessible, but /system ISN'T, so if you deleted files out of that, they're gone unless you Odin or made a Nandroid.
tjhart85 said:
No. Nothing can touch androids /system partition (unless you root) & a factory reset depends on that fact.
A factory reset basically wipes everything that is user accessible, but /system ISN'T, so if you deleted files out of that, they're gone unless you Odin or made a Nandroid.
Click to expand...
Click to collapse
What would happen if I took the system/app folder from a fascinate system dump, and just moved everything back in?
See, with WM, stock apps and stuff were in the rom, so if you did a factory reset, you got all the apps too. I'm surprised Android isn't like this.
Well crap, the ea28 update has made it much harder to remove bloatware.
I THINK* I've rooted my phone with the DL09 method, because Superuser grants root explorer rights when before it would crash, but the bloatware can't be moved because it says it's read only!
Anyone get around this yet?
chronster said:
I THINK* I've rooted my phone with the DL09 method, because Superuser grants root explorer rights when before it would crash, but the bloatware can't be moved because it says it's read only!
Anyone get around this yet?
Click to expand...
Click to collapse
you got to mount the system/app folder as RW, this can be done very easily with Root Explorer

Want to get rid of Diagnostic.Client.Wakelock? Info Inside!

Wakelocks are the bane of battery life and ever since stock rom, there has been a single wakelock that for the life of my I couldn't shake.
Diagnostic.Client.Wakelock !!!!
This wakelock is brought up everytime in ROM threads only to be buried with answers such as drain your battery to empty and reboot, that fixes it!!!111
However the issue runs deeper. Remember the controversy a few years ago about spy software on our phones? Does carrier IQ ring a bell?
Ever since stock rom, as well as any derivations of the stock rom, I've always seen this wakelock with hundreds of wakes. No amount of googling helped until this week, when I stumbled on another thread about Carrier IQ. Our Note 3 has Carrier IQ in it and it's the source of Diagnostic.Client.Wakelock. Innocent looking name for a wakelock huh?
However the fix for it is quite simple really, remove any Android OS calls to any carrier IQ libraries/frameworks. Instructions:
1) You need Root.
2) Download System Tuner from the play store. I can't link urls as a new user but the play store link should contain this "details?id=ccc71.pmw"
3) In System Tuner go to "App Manager".
4) At the bottom filter your Apps by "System".
5) Find "Android System" in the list, and press "Open" at the bottom.
6) Choose "Details"
7) Go to the "Activities" tab and uncheck the following:
Code:
com.carrieriq.iqagent.service.ui.UserPage
com.carrieriq.iqagent.service.ui.ShowMessage
com.carrieriq.iqagent.stdmetrics.survey.android.QuestionnaireLaunchActivity
com.carrieriq.iqagent.stdmetrics.survey.android.QuestionnaireActivity
8) Go to the "Receivers" tab and uncheck the following:
Code:
com.carrieriq.iqagent.service.BootCompletedReceiver
com.carrieriq.iqagent.service.receivers.EnableTogglelmpl
9) Go to the "Services" tab and uncheck the following:
Code:
com.carrieriq.iqagent.service.IQService
10) Reboot your phone.
You will never see Diagnostic.Client.Wakelock ever again. It's been 3 days for me and I'm on Firenote ROM and I dont see this wakelock showing up anymore. And the battery difference is very noticable. No more 1% drain while screen is off.
If you found this advice helpful consider buying me a coffee: Bitcoin Address: 1MXubhXjxCNGxzTLpRttgr6w1YWXQeo5ei
BONUS: If you want to cleanup after Carrier IQ consider removing its library files from /system. Voodoo Carrier IQ can tell you where they are located and deleting them gave me no problems: As a new user I cant link so google: "org.projectvoodoo.simplecarrieriqdetector"
Just curious what Firmware are you currently on with your AT&T Note 3 ?
I've read alot about Carrier IQ and there tracking way's and there company still denies what the software is truly intended to do..But nonetheless it's a invasion of privacy and I like your post...
I'm currently on 4.4.2 Dynamic Kat 3.2 and I did download Voodoo's app to verify if Carrier IQ exist...When I ran the test it came up with 0 hits (NO Carrier IQ)...Which is no where to be found in this Rom, But I used this app before on other devices and found it...
View attachment 2792180
I'm using FireNote ROM v? not sure if it was version 7,8 or 9. Doesn't matter, because it's still a derivation from the stock rom, and I remember staying on Stock ROM for the longest time and not being able to get rid of this wakelock.
I don't know where 4.4.2 Dynamic Kat 3.2 originally was derived from, but if it was derived from stock rom, then odds are it will have traces of Carrier IQ. AFAIK tablet roms such as XNote should be free from Carrier IQ, because cell phone service providers only wanted to monitor your phone use and data mine your activity.
While Carrier IQ may not be fully active in the sense of sending actual data back to whomever designed it, it's still active as far as running on your system, hence the wakelock. Not to mention what kind of a bogus wakelock is called Diagnostics? Diagnostics of what, my mileage or disk space, or tethering use???
The easiest way to check for Carrier IQ is to run some of these Carrier IQ detection apps, OR manually browse the /lib folder for carrier IQ ".so" files. For the ROM I was on (FireNote), I found two .so files named carrier IQ:
DO NOT DELETE THESE FILES. SOME USERS ARE REPORTING A SOFT BRICK. However I assume booting into recovery you can readd these files from another rom.
Code:
/system/lib/libiq_client.so
/system/lib/libiq_service.so
Again it all depends on where your ROM was derived from, if stock, then yes you probably have it.
Edit:
Dynamic Kat is a stock THEMED Kit Kat rom based on the international build NC2.
Click to expand...
Click to collapse
Probably because the ROM is an international ROM and not US based, explains why there is no carrier IQ. WTF USA???
Thanks for the find. I have been experiencing this wakelock since the OTA in Jan/Feb. I had great battery life before the OTA. I tried almost all of the custom roms in this forum. The only one that did not produce these wakelocks was X-Note. I had assumed that result because it was an international rom. I also liked FireNote but got the wakelock.
This fix should let me try out AT&T stock based roms now.
Again, thank you very much.
Scanned my phone and it looks like the official KitKat is infected with Carrier IQ, but it's not active.
{
"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"
}
My awake time hasn't gone down significantly, but I'm getting more battery with the tweaks from OP.
Yeah since the root cause of Diagnostic.Client.Wakelock is coming from Carrier IQ, the only roms affected by it should USA based roms meant for cellphones. International roms or roms ported from tablets should not have this issue.
Although I haven't installed any KitKat roms it makes sense that it contains it, and also that XNote which was ported from a tablet does not have this issue.
I just used this instruction last night and no more battery drain from client wakelock. Thx op
Sent from my SAMSUNG-SM-N900A using Tapatalk
Any way to help this wakelock op?
AudioOut_2
Sent from my SAMSUNG-SM-N900A using Tapatalk
Netrunner157 said:
Yeah since the root cause of Diagnostic.Client.Wakelock is coming from Carrier IQ, the only roms affected by it should USA based roms meant for cellphones. International roms or roms ported from tablets should not have this issue.
Although I haven't installed any KitKat roms it makes sense that it contains it, and also that XNote which was ported from a tablet does not have this issue.
Click to expand...
Click to collapse
Yeh, I give you credit Netrunner157...Not many users are even aware of this wakelock....Good Find Bro.. :good:
Very strange...I used several apps to detect "Carrieriq" Every app I tried said there were NO TRACES Of this wakelock (Spyware)...But I decided to use your method and look through "System Tuner" and sure enough it's there...I posted a pic above showing no traces...But it's inaccurate for me..Because it exist in the Android System...See pic below...
View attachment 2799625
wish777 said:
Very strange...I used several apps to detect "Carrieriq" Every app I tried said there were NO TRACES Of this wakelock (Spyware)...But I decided to use your method and look through "System Tuner" and sure enough it's there...I posted a pic above showing no traces...But it's inaccurate for me..Because it exist in the Android System...See pic below...
View attachment 2799625
Click to expand...
Click to collapse
Indeed. The System Tuner software shows how stealthy the CarrierIQ software is, hiding within the main Android System process. I am quite glad to have it deactivated. Nasty piece of garbage.
Also don't delete the libiq because if you do and restart the phone it will get stuck on the att logo
Sent from my AT&T Galaxy Note 3
Beware
Wish I saw that already. Now I'm soft bricked and rocking the touch pro 1 again
Ilkinansr92 said:
Also don't delete the libiq because if you do and restart the phone it will get stuck on the att logo
Sent from my AT&T Galaxy Note 3
Click to expand...
Click to collapse
These tips were fantastic! I was on the NC2 bootloader so I just was able to have root yesterday. I applied these changes re-booted and then guess what, it indicates that I am now custom. LOL! BFD! Thanks for the tips, much appreciated!
jhollow3 said:
Wish I saw that already. Now I'm soft bricked and rocking the touch pro 1 again
Click to expand...
Click to collapse
Just pull the lib files from a zipped ROM put them on microSD card go to recovery mount system and go to advanced file manager and copy the files over then fix permissions
Sent from my AT&T Galaxy Note 3
Heh, I actually posted this back in may and in a reddit thread, after finding out about the carrier IQ process in the LG G2 forums.
http://forum.xda-developers.com/showpost.php?p=52807274
Not only did it get rid of the wakelocks, but I no longer have GPS disconnect issues.
Synapse777 said:
Not only did it get rid of the wakelocks, but I no longer have GPS disconnect issues.
Click to expand...
Click to collapse
Are you by any chance using the Xposed Disable Location Constent module? I occasionally lose GPS while using maps, and have to toggle GPS on/off/on from the QuickTiles occasionally and I wasn't sure what that was related to.
So Carrier IQ was probably polling for GPS and breaking it?
What other tweaks do you have for removing other wakelocks, or other improvements? It's good to see people researching the same issues that one can solve.
Now for some reason System Tuner can't open my Android System process...
Anyone have any ideas about that?
Very Nice!!!!!....Thanks a lot!!...Usually my battery drain is higher overnight..if I leave it at 90% before sleep I used to have 50% in the morning. I applied this wake lock fix and slept with 61% baattery and in the morning I still see 55%...Woww!!...I have almost 100 apps installed

[BATTERY] life got you down? Here's how I fixed mine!

Everyone talks about the incredible battery life on the OP3T. I had some good battery life in the first couple weeks of having the phone, then it seemed like it had gotten worse around the time I installed 3.5.4, then continued when OOS4 hit. Friends of mine with the OP3T however, didn't have the same problem. I was essentially having constant drain to the point where my phone, whether the screen was on or off, dozing or not, would drain approx 2% per hour at baseline. Far worse than it should. Even more frustrating, the standard android battery page in settings showed me that my phone was being used most by Android System and Android OS (not even play services!). Here are some screenshots of my battery life and some stats:
{
"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"
}
Being the standard XDA user, I decided to figure out what the hell was going on with my phone, so I installed the usual apps. My go to battery stat apps are: wakelock detector, betterbatterystats and gsam battery. These apps are fantastic for determining what is killing your battery, usually in the form of wakelocks. There is an incredibly helpful guide to understanding wakelocks here. These apps in my past experience had all required root to my knowledge, but I gave them a shot anyways. Since I am on stock OOS 4.0.1 without root or TWRP, I found that I was able to grant the necessary permissions by using adb commands to grant battery stats to each app despite not being rooted.
Code:
adb -d shell pm grant com.gsamlabs.bbm android.permission.BATTERY_STATS
adb shell pm grant com.uzumapps.wakelockdetector.noroot android.permission.BATTERY_STATS
adb shell pm grant com.asksven.betterbatterystats android.permission.BATTERY_STATS
I then spent about a week obsessing over my battery life and literally checked these apps, especially GSam's "Rate of Change" (always showed AT LEAST 2-5% drop per hour, at MINIMUM) and "Other" graphs to try to figure out if my phone was sleeping properly, etc when I changed settings. Android OS and kernel were both at the top of the multiple lists of apps using data in GSam and BBS, but when I would click on each process, it wouldn't actually tell me what was driving their high utilization. I looked through these two processes and noticed for example that NLP was high so I disabled location on all apps except google now. I even disabled location services completely (with no subsequent change in battery life). What was frustrating to me, though, was that my battery wasn't draining due to wakelocks. The wakelocks I had were appropriate. Google now set off thousands of alarms (*alarm*), but this didn't seem to be the reason for my battery drain. I also changed pretty much any setting with anything to do with battery life, hoping that it would fix my issue, ie disabling pocket mode, disabling ambient display, disabling google backup, setting my exchange email account to poll every 60 mins instead of push email, removing extra apps, uninstalling screen filter apps (ie lux dash, twilight), using greenify, turning on aggressive doze mode, etc. Ultimately, I performed a factory reset because I thought maybe the upgrades from 3.5.3 to 4.0.1 caused some trouble. I only installed the essential apps I would use every day, but soon after realized that my battery life was unchanged after the reset.
Then yesterday, I came across something about apps utilizing more CPU time, etc. GSam and these apps list the stats for CPU time by app, but my interest was piqued. I opened GSam and looked at the CPU usage graph and realized that my CPU was constantly being utilized and wasn't coming down to 307 mhz very often. I installed a couple random CPU apps from the play store but nothing gave me the information I was looking for. They just confirmed what I noticed in GSam, that my CPU was never really off. Next, I figured hey, I do it on Windows, why don't I try to use ADB to look at my CPU usage real time by app/process. A quick google search and some futzing around and I was in business with the following ADB command (NB: hit ctrl+c to exit out of the loop):
Code:
adb shell top -m 20 -d 2
This command brought up the top 20 processes using my CPU and would refresh every 2-3 seconds as long as the command was still running. When I would shut my phone off and let it "idle", I found the two unsuspected culprit applications that were CONSISTENTLY eating up 2% and 1% of my CPU: textra(see 4/30 update below) and swiftkey. I uninstalled textra and switched to google messenger. I tried switching my default keyboard to google keyboard, but had the same issue, so ultimately had to disable swiftkey (can't uninstall it without root as it's a system app). After that, I was in business. My phone went from 2+% drain per hour while idle/dozing to 0.7%/hr (according to gsam). Overnight, I only lost 2% battery over 5 hours while I was sleeping. This used to be at least 6-7% before. I'm almost at 24 hours since discovering this, and my battery life is MUCH better even with heavy use.
Thanks for reading, hopefully this is helpful to others in tracking down some rogue or crazy app that is driving you crazy. Cheers!
Edit 1/12, full day 2: battery life went crappy on me again. Looks like inbox was the culprit this time, consistently in the top 3-5 processes. Wiping data seems to have fixed it for now (not sure what changed, wiped cache first and closed out of inbox properly prior to wiping data).
Edit 4/14: gboard keyboard began doing the same thing for me last month that swiftkey used to do. Went back to swiftkey and seems the issue is resolved and swiftkey no longer drains better like crazy.
Update 4/30
nhshah7 said:
So 4/30 update on my battery life. I thought swiftkey was fine for a couple weeks especially since I had syncing off (I thought this was possibly the culprit but I was wrong), but then last week I checked again and swiftkey was running near the top of my list of processes (again) and my battery life was starting to suck again. I disabled swiftkey and reverted back to the stock google keyboard apk (NOT gboard) for a while with an improvement in my battery life. I wanted the gif feature and the backspace/delete feature back so I updated to the most recent gboard and my CPU usage jumps from 3-5% according to GSam to 8-9%. I run the top command again and lo and behold, it's at the top of the list again (see image below).
View attachment 4133744
I then uninstalled gboard updates (app info --> gboard --> menu --> uninstall updates) and reinstalled version 6.2.18.151907649 and I THINK that this version doesn't kill the CPU (not in the top 20 while idle at least). Didn't try any other versions though. If you do this, be sure to disable auto-updates from the play store for gboard!!
Also, I'm curious why no one has reported on this being a major issue. Is this just a bug on oxygen OS, android 7, swiftkey or gboard? Does this happen on all phones? If it's just on oxygen OS, oneplus has some work to do!
Just some investigation on the side, I powered up my trusty oneplus one which was running slim6 and ran the top command. It's syncing a bunch since I haven't turned it on in a few weeks but I don't see swiftkey (updated to the latest app version) in the top 20 at all! And on top of that, textra was nowhere to be found on the list either (granted there's no SIM in the phone)! NB: just for fun, I reinstalled textra lol and it didn't show up in my top 20 list. hopefully it stays this way!
I've been stock unrooted for a while now, but if this crap keeps up, I may have to root so I can try a different kernel or disable permissions for apps to wake the phone up grrr.
Click to expand...
Click to collapse
Update 5/24:
Googlequicksearchbox alarms were driving me nuts, with thousands of alarms resulting in HOURS of kernel wakelocks. I realized this had only been going on since I upgraded to OOS 4.1.3. My work-around was initially to disable the google now feed but apparently removing the google now widget from the home screen (regardless of whether on nova, OP launcher or google now launcher) stops the alarms and significantly improves battery life. Wow.
Nice! So generally it would better to find out what is constantly using the CPU on a case-to-case basis, but going from your final results: SwiftKey and Textra were the culprits. I was reading the other thread about SoT and people were getting over 6+ hours and I was getting only.. 3-4 at most? I've had the same issue as you where the battery was draining and I could not really find the source (general suspicions such as G Services didn't really contribute).
Thanks for letting us all know! I'm running OOS 4.0.1 (fully stock, unrooted) and I've just uninstalled/disabled SwiftKey (didn't realise it came stock). Will see how it is in a few days..
dhuynh94 said:
Nice! So generally it would better to find out what is constantly using the CPU on a case-to-case basis, but going from your final results: SwiftKey and Textra were the culprits. I was reading the other thread about SoT and people were getting over 6+ hours and I was getting only.. 3-4 at most? I've had the same issue as you where the battery was draining and I could not really find the source (general suspicions such as G Services didn't really contribute).
Thanks for letting us all know! I'm running OOS 4.0.1 (fully stock, unrooted) and I've just uninstalled/disabled SwiftKey (didn't realise it came stock). Will see how it is in a few days..
Click to expand...
Click to collapse
Yup, I was getting 3-4 as well before I fixed this.
Sent from my ONEPLUS A3000 using Tapatalk
I was trying this out because I am in the same boat. The command is wrong though, it doesn't take an option "-s".
I am kind of stuck at this point, the entries keep on jumping all over the place and the package names are being cut off (I see com.google.android.g and have no clue what's coming after the g)
Jerry911 said:
I was trying this out because I am in the same boat. The command is wrong though, it doesn't take an option "-s".
I am kind of stuck at this point, the entries keep on jumping all over the place and the package names are being cut off (I see com.google.android.g and have no clue what's coming after the g)
Click to expand...
Click to collapse
the -s command worked for me. See attachment. Though I think it may sort by CPU activity by default anyways. Not sure why it's cut off for you but it could be gms or gms persistent (don't think that's anything to worry about). Try to leave your phone with the screen off and idling for a while to see if you notice any patterns if you haven't already.
Nice find. Really useful to the community. I had swiftkey disabled day 1 because did not like the layout. Battery is doing ok. But how do I go about uninstalling swiftkey entirely?
supersomething said:
Nice find. Really useful to the community. I had swiftkey disabled day 1 because did not like the layout. Battery is doing ok. But how do I go about uninstalling swiftkey entirely?
Click to expand...
Click to collapse
Unfortunately you can't if you are not rooted. Just disabling it is fine though. I'll clarify that in my post, I think I wrote it out wrong initially.
Man I'm a huge textra user and I really love their app, maybe we should let them know about this so that they can improve their app ?
i just finish uninstalling my swftkey...will share results soon
Well I also use Textra and my OP3T has no battery drain issues, but nonetheless thanks for sharing. I get about 6-8 hours of SOT regularly with both Oxygen OS 3.5.3. and Oxygen OS 4.0.1., so I guess its depends case by case. Swiftkey is uninstalled through Titanium Backup, since I use Gboard.
The 2 apps that used the most CPU on my phone were Genius and OnePlus Launcher. I removed genius and installed nova launcher. Battery is much better now
Thanks a lot for this! I have had mediocre battery life on OOS 3.5.3, then very good battery life on OOS 3.5.4, but unfortunately again mediocre battery life on OOS 4.0 and 4.01.
The difference in BetterBatteryStats was that awake time fraction was around 15-20% for mediocre battery life and well less than 10% for good battery life. I was not able to really find the culprit with BetterBatteryStats, but deactivated SwiftKey half an hour ago and it seems I am back to good battery life with less than 10% awake fraction. I think your method might be an extremely useful way to identify problematic apps.
By the way, another problem that appeared with the update to OOS 4.0 was that K-9 mail stopped synchronizing push messages and at the same time produced much increased wakelocks. What helped here (although it seems counterintuitive) was to switch on the "strict power management" feature in the battry settings and exclude K-9 mail from being optimized.
jemeljsh said:
Well I also use Textra and my OP3T has no battery drain issues, but nonetheless thanks for sharing. I get about 6-8 hours of SOT regularly with both Oxygen OS 3.5.3. and Oxygen OS 4.0.1., so I guess its depends case by case. Swiftkey is uninstalled through Titanium Backup, since I use Gboard.
Click to expand...
Click to collapse
Interesting. I'm curious to see if it's using up as much CPU on your phone as it did on mine.
holy moly, I am a big fan of swiftkey from day1 and I have good battery life but not like the poeple here... I hope swiftkey will fix it soon. Maybe I can try to switching it to agressive doze so it will kill swiftkey process? Actually should it be killed anyhow if we are not using it?
90 minutes after disabling SwiftKey I can definitely confirm that battery life has improved a lot!
nhshah7 said:
the -s command worked for me. See attachment. Though I think it may sort by CPU activity by default anyways. Not sure why it's cut off for you but it could be gms or gms persistent (don't think that's anything to worry about). Try to leave your phone with the screen off and idling for a while to see if you notice any patterns if you haven't already.
Click to expand...
Click to collapse
For me it's com.google.android.gm (corresponding to gmail I believe) it could be the same for him. I'll try to hibernate both swiftkey and gmail with Greenify
Thanks for the tips !
I ran the command and it gave me error that it cant open proc/stat
"Cannot open /proc/stat"
Given that the OP has identified Swiftkey as a decent battery drainer (I am going to try this simply to see if I can squeeze any more battery out of what I feel is an already impressive performance), is there any keyboard anyone would recommend? Swype?
one from google is not that bad actually, they improved
terragady said:
one from google is not that bad actually, they improved
Click to expand...
Click to collapse
Started to use it but it doesn't show the word you're typing, using swipe, in certain apps such as, ironically, Google browser. Any other suggestions from the forum

If your shield tablet occasionally lags

Hi guys! If you're like me who is forever frustrated with the occasional lags of this supposedly fast device (especially during wake up after long sleep scenario) and also afraid to change their settings during firmware updates, maybe you'd like to consider what I did:
Setup: US LTE device using RoW LTE ROM 5.1, unrooted, TWRP Recovery
History: would just passively update or restore old settings every firmware updates/flashing of mods since lollipop days. Antutu performance is between 60k-92k, with around 80k average in latest firmware (which is absurd). Occasional lags after using the device for a while
Methods:
Factory reset/DO NOT restore old settings and apps, literally start from scratch (you may back up your old data if that's important)
No Google now
No antivirus/malware apps
No Google keyboard
So far, didn't install Facebook and Messenger
Effects (after 2 days observation):
tablet is smooth, AND VERY stable (lagged only once, during initial setup, while updating Google apps)
Apps open quickly, chrome doesn't lag ESP when keyboard is activated
Battery life and management considerably improved
CPU use seems to have been more effective than before (used to be always at around 90-100%, and very hot). Antutu averages at 93k now
Gaming experience is much better
Connectivity is also improved, my controller no longer occasionally disconnects
Background and active App processes no longer crashes (I've always been hassled by app crashes ever since I was on nougat)
Post Analysis:
I suspect that I may have unwittingly installed malicious apps or used faulty settings in the past which persisted throughout my updates and that could have caused severe lagging and very poor user experience on this device. I'm just a regular customer with little background on computer processes, and my claims may be baseless in the eyes of hardcore developers, but my aim is to just provide alternative approach to other frustrated customers.
Ive always thought Nvidia native apps and processes might be causing these annoying lags, since everytime I use custom ROMs (which don't have these apps), the device would operate like a Nexus machine - smooth, snappy, and stable. But I'm a huge fan of the controller, video output, and the dabbler, so I'm stuck with stock (pun intended).
I've never been ON MY SHIELD TABLET for more than 20 hours straight until now. I've never enjoyed using it before. I hope this awesome experience continues longer and more permanently. For those who are interested, let me know if you've tried this and what happened? Maybe this can help rule out hardware issues or manufacturing-related defects.
Pretty sure removing Facebook would be enough, atleast for me...
The best way to remove lags is flash recovery images : https://developer.nvidia.com/gameworksdownload
5.0 images are available just flash it using fastboot adb flash.
Bryandu13 said:
The best way to remove lags is flash recovery images : https://developer.nvidia.com/gameworksdownload
5.0 images are available just flash it using fastboot adb flash.
Click to expand...
Click to collapse
I used to think that way as well. But since I played around with this tablet from its KitKat days, I noticed that it becomes laggy over a period of time. Everytime I convert this device to it's fresh state again (using recovery rom) and then restore my apps and settings using Google backup, same issues happen. The only time I was able to really achieve a stable and amazing experience was this time. Fresh from recovery, factory reset, and then installation of apps from scratch. Never had any lags or crashes ever since I posted this. Some faulty bugs must have been wiped out a long the way. I don't know. Lol
To conclude, congrats to Nvidia developers team! They nailed it this time! hope this tablet will reach android o.
Running latest Stock with root access I disabled some bloatware including official launcher and replaced it with Nova.
Things are smooth now.
{
"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"
}
Sent from my Nexus 6P using Tapatalk
MrKaon said:
Running latest Stock with root access I disabled some bloatware including official launcher and replaced it with Nova.
Things are smooth now.
View attachment 4174704
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
I just clean flashed to 5.1 and all is well. How did you root it?
I want to change readahead which was most of the problem in the past, not to mention ad blocker! I love Nova.
I can't really confirm but I think the lags on this model are due to it using ghetto-slow nvram, and thermal throttling. Maybe readahead too and Nvidia "enhancements" or all 4. I can tell for sure the nvram is butt slow on this device, but I'll bench N once it settles down. Readahead has dramatically cleared up lags on my older devices, such that why buy new ones. 2Mb on Nexus 6 and that thing now flies and is buttery smooth. This tablet is an enigma, there seem to be many engineering issues with it.
BTW - I had some stuff left over from lineage (cyano), so if you guys are flashing to stock, I recommend that you get twrp (latest), boot to recovery and WIPE everything including userdata. I normally wipe everything first, then userdata. Once I did that (and wiped SD) everything came up like a champ.
Also I had a heck of a time w/ the drivers on Windows 10, but I installed the shield USB drivers, and then I used miniadb. I was concerned on sparse w/ system but it worked just fine. The Nvidia instructions are dated, you can just run the flash-all.bat rather than typing all of the fastboot commands. They also recommend you get fastboot from Google. Don't bother as they have removed adb/fastboot from the command line tools and you will need to download the entire SDK or install it via CLI.
Nvidia should really spend 10 minuted updating their documentation...
The lag was fixed in the 5.2 update. It disables Doze by default now. Some even suggest that turning Doze back on works fine.
98419 on my stock k1 using 5.2, disabled unless stuff manually, and optimized settings.

Extreme data usage. Anyone with the same problem?

First of all, I don't know if this thread has to be here or in other subforum. And sorry for bad English too.
Hi, since some months I have a problem with data usage with my Moto G4 (XT1622). This started happening when I installed AICP 13.0 Oreo Rom. Android OS started consuming data very very fast (1GB per week on wifi and slightly less on data, but still quite high). I have a friend who has a Moto G4 Plus (XT1642) and is on Resurrection Remix 5.8.5 (Android 7.1.2_r36) and has the same problem. Before this happened to me I was using the same Rom and didn't have that problem so I returned back to RR 5.8.5 and surprise! High data usage. Now it seems to happen in every Rom.
Here are some pictures of what is going on:
{
"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"
}
(SO Android means Android OS)
This is one of my screenshots when I was using MIUI
By the way, if i disable background data and go back then automaticly enables itself.
I tried AFWall+ but nothing changes, still insane data usage.
loque036 said:
First of all, I don't know if this thread has to be here or in other subforum. And sorry for bad English too.
Hi, since some months I have a problem with data usage with my Moto G4 (XT1622). This started happening when I installed AICP 13.0 Oreo Rom. Android OS started consuming data very very fast (1GB per week on wifi and slightly less on data, but still quite high). I have a friend who has a Moto G4 Plus (XT1642) and is on Resurrection Remix 5.8.5 (Android 7.1.2_r36) and has the same problem. Before this happened to me I was using the same Rom and didn't have that problem so I returned back to RR 5.8.5 and surprise! High data usage. Now it seems to happen in every Rom.
Here are some pictures of what is going on:
(SO Android means Android OS)
This is one of my screenshots when I was using MIUI
By the way, if i disable background data and go back then automaticly enables itself.
I tried AFWall+ but nothing changes, still insane data usage.
Click to expand...
Click to collapse
If you check correctly, only AndroidOS has used data..
That's known bug, data of other apps is calculated as data of AndroidOS. check for your daily internet using apps, some of them will have 0kb used (Google Chrome is one)...
____Mdd said:
If you check correctly, only AndroidOS has used data..
That's known bug, data of other apps is calculated as data of AndroidOS. check for your daily internet using apps, some of them will have 0kb used (Google Chrome is one)...
Click to expand...
Click to collapse
I don't use google Chrome, and this happens even when installing any rom without any third party apps or google apps. Even in safe mode i get this high usage.
loque036 said:
I don't use google Chrome, and this happens even when installing any rom without any third party apps or google apps. Even in safe mode i get this high usage.
Click to expand...
Click to collapse
As said already, it's a known bug. Maybe you can check your data usage on your provider(some web page) to know if it's real or just the bug mentioned before.
strongst said:
As said already, it's a known bug. Maybe you can check your data usage on your provider(some web page) to know if it's real or just the bug mentioned before.
Click to expand...
Click to collapse
The data usage is real. Also noticed that this bug also happens on some galaxy s7 and google pixel but there the solution is a factory reset but that doesn't work in my case.
loque036 said:
The data usage is real. Also noticed that this bug also happens on some galaxy s7 and google pixel but there the solution is a factory reset but that doesn't work in my case.
Click to expand...
Click to collapse
You don't need to worry,
your data is not used by AndroidOS, that's only mis-calculation..
Let me clear it,
(In my case: i mostly use google chrome, drive, whatsapp, twitter, but none of them have used 50MBs, see screenshot attached, all the data usage is mis-calculated for AndroidOS. In reality, no data is used by AndroidOS. That's only sum of other apps.)
Check for your apps, which uses data, they (some or all) will have 0kb used because it is calculated in AndroidOS...
____Mdd said:
You don't need to worry,
your data is not used by AndroidOS, that's only mis-calculation..
Let me clear it,
(In my case: i mostly use google chrome, drive, whatsapp, twitter, but none of them have used 50MBs, see screenshot attached, all the data usage is mis-calculated for AndroidOS. In reality, no data is used by AndroidOS. That's only sum of other apps.)
Check for your apps, which uses data, they (some or all) will have 0kb used because it is calculated in AndroidOS...
Click to expand...
Click to collapse
OK I see, so it seems normal and looking at my screenshots i don't see youtube which is an app that my friend has in his phone. Ok then.

Categories

Resources