yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Pinan:
Found the problem area.

Under GooglePlayServices/ Services, the Location settings are what broke MAPs/GPS.

I have not narrowed down exactly which ones, if not all of them. I'll keep tinkering.

I basically did one page at a time, rebooting after each page until Maps/GPS stopped functioning. I finished them all.

To be continued....

~~

Btw. Is there a "restore" type setting in System Tuner, instead of having to re-check everything one at a time?
[BetterBatteryStats] jukyO:
In cm11, go to settings, privacy, privacy guard, advanced. Under google play services, you can see which of those drained battery:

Those which are draining batrery could be denied....

More here:

http://xdaforums.com/showthread.php?t=2832525
[BetterBatteryStats] Wh1t3Rose:
Long story short that actually doesn't really work for Gplay Services. It appears to work according to the app but if u watch the usage through Wakelock Detector/BBS or the Unbounced module Gplay Services still runs. Google designed the AppOps menu. You really think they would let you control Google Play Services? Nahhhh :)
[BetterBatteryStats] jukyO:
Will test tonight and report if it makes a difference.
[BetterBatteryStats] Pinan:
Um, OK. I don't have an issue with battery drain actually. I was just helping to troubleshoot Karpfenhai's latest System Tuner guide, which broke my MAPs/GPS. ;)

That and I run 4.2.2. Read the links through my post quotes.
[BetterBatteryStats] kaLuta:
Hi, bro, firstly, tnx for showing some interest, i appreaciate it.

I dont know why is screen not dark, the phone was locked and not touched entier time while this dump file was created. Maybe thats whats preventing my phone to go to sleep.

I dont have keyboard app, i just have default one, I even erased touchpal keyboard which came with ROM.

Considering cleaning usb port, i just blew at it, so maybe some dust will go away, but dunno what you consider as cleaning?

cheers
[BetterBatteryStats] Karpfenhai:
Screen dark is related to your brightness level and has nothing to do with screen off.

regards.
[BetterBatteryStats] kaLuta:
thank you for your help, perseus asked me so I answered.

Do u have any idea what gpio_kp could be? I am trying to find fix for this over a week.
[BetterBatteryStats] Maaze:
thanks bro :crying: :crying:
[BetterBatteryStats] Karpfenhai:
Hey Luka,

Im pretty sure i know what it is, but i dont know what is triggering it..

Its related to keypad, either by your keyboard or more likely your security pattern on your lockscreen, try to not use any 3rd Party keyboard and disable secure lockscreen for a test run and see if it persist. Disable any fancy slide to wake functionalities if applicable.

regards.
[BetterBatteryStats] kaLuta:
the only time gpio_kp isnt working, is when im using my phone, but when i lock it, there it goes... I tried disabling lock pattern but still its 100% awake. im using default keyboard. I set long press to unlock phone now but still no progress.. this thing is a nightmare
[BetterBatteryStats] balag59:
10% battery drop during 5 hours of deep sleep. .please help!

Hi all!

Lately my battery seems to drain a lot when the phone is in deep sleep. Im using a HTC one m7 with maximus rom v44(4.4.3) and stock kernel.However, i get almost identical results irrespective of the rom/kernel i use. Funny thing is even though the battery stats show that the phone is in deep sleep state for almost the entire time i still end up losing a lot of battery overnight!So ive posted a BBS screenshot and dumpfile below of the 5hours i was asleep and the phone was in deep sleep state for almost the entire duration(atleast 96% of the time and 5 hours of deep sleep) and yet i lost about 10% battery. .and for this test i used the phone without even installing any additional apps. .didnt even log into my google account or any other account. .auto sync was off and mobile data was off and even wifi was off. .location was also off. .and these results seem constant no matter when i take them or with what rom i try. .Im mystified because its losing so much battery while its in deep sleep. .i can understand if something is keeping the phone awake and thus draining my battery but that doesnt seem to be the case here.Im just hoping that its not a hardware issue and its radio or firmware related. .Some help on this would be really appreciated. .thanks a ton in advance!:D:D
[BetterBatteryStats] Karpfenhai:
hmm, did you ask in your devices thread?

Have you considered a factory reset?

Could you post a full logcat?

The gpio thing is basically a part on linux core, so it should affect more people, i think we had that here back in 2012, ill do a search..

weird though..

hold on wait, are you sure its not a "hanging" button?? This could been caused by an keypress which never ends. check that too!

From source it looks like nothing special...

https://android.googlesource.com/kernel/lk/+/dima/for-travis/dev/keys/gpio_keypad.c

regards.
[BetterBatteryStats] Wh1t3Rose:
I don't see anything out of the ordinary. You did use your phone 12 minutes before you went to bed but that shouldn't have taken 10% battery. I honestly think you have a bad battery. Take it out and check for any bulging or discoloration. I would go ahead and buy a new one honestly. The stats just don't add up.
[BetterBatteryStats] Zordak7:
Please help with "copresGcore_EventLoop" partial wakelock

Any info update about the "copresGcore_EventLoop" partial wakelock abussive usage of the phone?

Have a Galaxy S3, CM 10.2. This wakelock wasn't there a week ago, but I don't remember doing anything related with the google play service, where this wakelock comes from.

The WL is not allowing my phone to be put in deep sleep, even with "Deep Sleep Battery Saver" app, which had been working fine, untill some days ago when the WL appeared

Bye!
[BetterBatteryStats] kaLuta:
you are up to something, since my phone got back from service, volume up button has no function, volume down works fine but volume up is very soft, has no click, and doesnt work, maybe that is giving the signal to the phone all the time? Is there a way i can disable volume up?
[BetterBatteryStats] Karpfenhai:
dismantle the phone, have a look inside, its easier as you think ;)

Guess we found the issue ;)
[BetterBatteryStats] kaLuta:
i guess you have, congratulations man, good job :) but i its inside the case, maybe i can just disable the key somehow with some program? or i have to physically adjust it
[BetterBatteryStats] Karpfenhai:
I afraid so, but just repair it, I'm sure there is just some “bending“ issue, probably due to the repair, will be easy to spot, that's a i9300 btw [emoji2]

Now back to topic! [emoji41]
[BetterBatteryStats] jukyO:
Correct. From 30% overnight to 3% ;)

---------- Post added at 08:33 AM ---------- Previous post was at 08:32 AM ----------

It worked ;)

---------- Post added at 08:33 AM ---------- Previous post was at 08:33 AM ----------

It worked ;)
[BetterBatteryStats] Lither:
I'm using CM11, do I install the APK file or place in system/data or system/priv-app?
[BetterBatteryStats] balag59:
Thanks!Just what i was afraid of. .a bad battery. .Thanks for such a quick response!I guess i need to get it replaced!
[BetterBatteryStats] Finnegans:
I was affected by that same wakelock. Someone pointed out that it was related to Hangouts and GMail. I don't know if you use those apps but I personally don't. Just use Wakelock Terminator to stop it if that's your case as well. I've been running without it for a couple of days now, I'm not experiencing any app malfunction and my battery life improved drastically.
[BetterBatteryStats] Homu:
This heartbeat thing is responsible for the majority of my wakelocks. What exactly is it and is it possible to turn it off?
[BetterBatteryStats] jukyO:
Check my post #25785 two pages back. Had 3.8% per hour overnight, now it is resolved.
[BetterBatteryStats] kaLuta:
I knew the button was faulty all the time, but BBS got me thinking its kernel + wakelock related only, today after this great man Karpfenhai helped me, and took time and effort to make my android experience a lot better, for that I congratulate you, I just hope there will be more people like you. I'm feeling bad that I cant donate to you, cant afford it right now sorry. Tnx again Karpfenhai, u rock! :)

To proudly share my screen shot. :)
[BetterBatteryStats] tonyafc:
Need help installed this on my htc one m8 but everytime i start the app it asks me to install as system app and i do that phone restarts but i get the same message again upon openeing guessing it is an issue with s-on?
[BetterBatteryStats] jukyO:
If on kk 4.4:

Flash zip from OP. Or move .apk from /data/app to /system/priv-app.

Or change superuser to supersu.
[BetterBatteryStats] Perseus:
move it to /system/priv-app or use the Zip in the OP to flash via Recovery.
[BetterBatteryStats] Karpfenhai:
....and if you want to preserve it from getting deleted upon flash, have a look to your backup scripts within /system/add-ons.d

Regards [emoji2]
[BetterBatteryStats] tonyafc:
That's what is happening, i move it to system/priv-app and it works after reboot its moved back to data/app there is something in this phone that is blocking me I'm rooted with busybox and i have a 2hour wajelock daily that is driving me mad lol
[BetterBatteryStats] Karpfenhai:
Nope, this must be something else, i guess you didnt uninstall prior moving the apk to ..system.. ?

Regards
[BetterBatteryStats] Homu:
I couldn't find google play services (or any system apps) under app ops (app privacy, I'm using PA) so I decided to try and follow the link in your post and turn off wakeup with android system tuner. After that my phone would not go to sleep mode at all. It lost like 40% in 3h.
[BetterBatteryStats] Karpfenhai:
Be carefull, you cant disable a service without disabling its receivers! What are you planning to do? what is your concern?

regards.
[BetterBatteryStats] jukyO:
It should be under privacy guard - advanced.
[BetterBatteryStats] Zordak7:
Thanks, of those, I use Gmail. But before uninstall it, I'll try with WL Terminator.

C'ya
[BetterBatteryStats] tonyafc:
Thanks for reply i tried that after reboot it uninstalled the apk I'm stuck between a rock and a hard place with this at the minute
[BetterBatteryStats] Karpfenhai:
It's not hard, just uninstall, move the apk to /system/priv-app. Set permissions to root / root 644

Reboot, done..
[BetterBatteryStats] tonyafc:
Done all of the above but tgere is no option for root/root in permissions im using root browser
[BetterBatteryStats] jr67:
Root/root refers to UID & GID. I don't user root browser but looking at the pics in the play store Im guessing that both Set UID and Set GID should be checked.

Basically, look at the permissions of the other apks in the priv-app folder (i.e., contacts, dialer, etc.) and make sure the permissions for the BBS apk matches.
[BetterBatteryStats] Homu:
See here

I mean I can find the privacy guard thing itself, it just doesn't show any system apps for me. And I can't see an advanced option.
[BetterBatteryStats] Mistertac:
If you're looking for Privacy Guard - App Ops your ROM may have it hidden.

Go to the Play Store and simply search for App Ops Starter and it'll pop up for you.

- Tapatalked From The G3 -
[BetterBatteryStats] Homu:
Thanks but I already tried that. It opens up what is essentially the same menu and it doesn't show system apps either.
[BetterBatteryStats] Karpfenhai:
./deleted.sh
[BetterBatteryStats] tonyafc:
Ok so i uninstalled moved to priv-app with root browser ticked gid + uid and a message popped up saying permission change failed so i installed efs file explorer and moved it over to system as i did that phone rebooted and i looked in the folder and it was not moved over im doing everything suggested down to the letter and still no joy
[BetterBatteryStats] Sir_gpm:
Could you point me to the 03. Sept updated tutorial?
[BetterBatteryStats] Pinan:
http://xdaforums.com/showpost.php?p=55211341&postcount=25472
[BetterBatteryStats] Perseus:
If you had completely removed the app, use the Recovery flashable Zip from OP.
[BetterBatteryStats] Karpfenhai:
Omg..

It should look this way:

Regards.
[BetterBatteryStats] tonyafc:
Thanks for all your input i have tried all your method there is an issue with htc's S-ON it won't let me rw
[BetterBatteryStats] greyhd:
Can anyone please tell me which option this is? Seems the name is cutoff and is unchecked.
[BetterBatteryStats] atrix4nag:
blescanner.compact.ScanWakefulBroadcastReceiver
[BetterBatteryStats] greyhd:
Thank you
[BetterBatteryStats] paco_ramirez:
Thanks for the answer!. I had Facebook greenified (but it's true it keeps working for some minutes after screen is off). I'll try to check if I can greenify it on the fly just after screening off. If not I could delete it. Concerning wifi connection I was at that time in the university and signal was supposed to be good. Is there any App that switches wifi off when it's producing wakelocks automatically?.
[BetterBatteryStats] paco_ramirez:
Thank you very much!. I've made all suggested changes. I disable syncing of almost everything and greenified some more apps more. Battery is still draining. Check this log, please. It's an overnight log after disable the syncing. It's getting worse.

Apart from this i've been observing that "system_server" process consumes a lot of battery and probably may be causing 15% of awake even being idle.

Best regards and thank you very much. I really appreciate your dedication ;)
[BetterBatteryStats] Wh1t3Rose:
There are dozens. Search the play store. I recommend Tasker or Llama as you can set up profiles to do literally hundreds of different things. If you get tasked or Llama I'll provide you with a profile that you can import. I suggest you try it yourself first though :)
[BetterBatteryStats] Finnegans:
As a Tasker user here I'd love to hear your suggestions.
[BetterBatteryStats] Mistertac:
Just jumping in here to say that if you happen to be running xposed you can use the UnBounce Module found here

http://xdaforums.com/showthread.php?p=54953199

To limit those Alarms and WakeLocks you have going on there in your log.

- Tapatalked From The G3 -
[BetterBatteryStats] Karpfenhai:
Hmm, i still see sync and backup as your main issue, have you thinked about not using facebook as app ? Or greenifying it?

Since there are still entries like this:

*backup* (Sistema Android): 1 m 11 s (71 s) Count:78 0,3%

*backup* (com.android.vending.Google Play Store): 50 s (50 s) Count:6 0,2%

SyncLoopWakeLock (Sistema Android): 45 s (45 s) Count:562 0,2%

You did forget something, not even if the values are low.. the total cost of waking your device are around 6 seconds each, so 562 times trying to sync... hope you get it ;)

Regards.
[BetterBatteryStats] paco_ramirez:
I have removed FB app. However I have FB Messenger app installed too, is this also a battery killer?

Yes I see!, long times with the device awake. The things I had left up (that I remember) for that log were:

- Gmail Syncing

- Contacts Syncing

- Android Backup

All of them are battery killers? I would not like to stop having email synced. Contacts and backup are things that I could stop. In fact, I've stopped these two for the moment

What about using Unbounce as complement? May it work?

Thanks!

---------- Post added at 07:54 AM ---------- Previous post was at 07:46 AM ----------

Thank you very much! I'm giving a try to it!. I have just installed it. So far I have seen I don't have to make anything else, it is starting to unbounce things, right? or do I have to do anything else?.

---------- Post added at 08:16 AM ---------- Previous post was at 07:54 AM ----------

Thanks!, I'll try Llama. Could you send me your profile? thanks!.

By the way, I think this is a bug of my ROM (lastest archidroid 2x for S3) but when I switch wifi off, it doesn't stop. I have to enter flight mode and leave it to get it off. Any fix? Tasker or Llama will be able to switch it off with this issue. Thanks!
[BetterBatteryStats] Mistertac:
Hop over to the UnBounce thread and we can help you out.. I just don't want to clog up the BBS thread that's all.

- Tapatalked From The G3 -
[BetterBatteryStats] breaker12:
I just did this on my Galaxy S4 with Google Play Services version 6.1.0.9. It actually rediced the partial wakeups but affected some of my apps to be dysfunctional. Specifically, Yahoo mail and Subway Surfers app keep on crashing after applying the guide above. If I revert everything else, like uninstalling and installing Google Play Services again, the apps become functional again. Any idea which should not be actually unchecked to make those apps usable again? Thank you!
[BetterBatteryStats] Sir_gpm:
My N4 is sleeping like a baby :P

http://pastebin.com/xAzzYgUS
[BetterBatteryStats] Wh1t3Rose:
Does it wake up every half hour crying and peeing itself?[emoji14]
[BetterBatteryStats] greyhd:
I followed the guide for my G2 and my phone would not deep sleep, I had to go back to the default settings. Not sure why my phone would not deep sleep.
[BetterBatteryStats] LordGex:
Best app of the universe! Help me a lot!
[BetterBatteryStats] Wh1t3Rose:
My profile was actually for Tasker. So go ahead and try to make your own in Llama. Explore and learn the in and outs :P If you can not figure out how I will make one for you but do please try to figure it out on your own :).
[BetterBatteryStats] Karpfenhai:
Warning!

You shouldn't apply any mods beside system update receivers, if your play services are newer / equal to 6.1.x I'm currently messing with 6.1.11 and it's hard...

You will make things worse, adjusting gsf will end in heavy GCM_LIB wakelocks, if you adjust play services you will either lose functionality or force g+ to throw random wake times from fingerprint service..

Based on my expertise I do not recommend taking hands on latest play service !!

There will be several overhead but of you gather a deep sleep ratio between 75 - 80 percent on normal usage (around 2 hours screen on time) over a 15 hours day you're good to go.

Regards
[BetterBatteryStats] greyhd:
Would you mind sharing the tasker profile? I am a Tasker user but never figured out how to use it to save battery.
[BetterBatteryStats] Wh1t3Rose:
[MENTION=4615308]greyhd[/MENTION] [MENTION=5662274]paco_ramirez[/MENTION] OK I'll post it in a few since multiple people want it. :)

OK these profiles I made really quick as I deleted my original ones. They do not have any data checking (eg for music streaming). Ask if you want this added to the profile.

OK here are the profiles. Copy to SDCard/Tasker/Autoimport:

Display off: https://app.box.com/s/qs2vl7kpv0hhb86t1bh0

Display On: https://app.box.com/s/pusiz2yma4nz5fecl0h4
[BetterBatteryStats] greyhd:
Thanks for the profiles, it's greatly appreciated.

---------- Post added at 03:01 PM ---------- Previous post was at 02:45 PM ----------

Are these profiles meant to extend the battery life? Reason I ask is because I've tried similar profiles and had about the same battery life. I'm not trying to come off as ungrateful, just trying to figure out if there is anything I should look for in BBS. Thank you again for the profiles.
[BetterBatteryStats] Wh1t3Rose:
[MENTION=4615308]greyhd[/MENTION] All these profile do is toggle data that's all. It depends. If you get poor signal then yes it could increase battery life significantly. But if you get excellent LTE Signal then don't bother. You are better off leaving LTE on
[BetterBatteryStats] Thiago101:
Bug Batery! help!

Hello guys!

I have a problem with the battery, or bug of flash memory.

An example: I have 100% battery, after a while of use. Renicio the device, and it shows the battery at 43%.

Can see, the image that the battery has a crush.
[BetterBatteryStats] greyhd:
Thank you for the reply and explanation. I get a good signal at work but at home I think the signal isn't as strong, but will keep an eye on both battery and signal.
[BetterBatteryStats] Wh1t3Rose:
Also a strong LTE signal is just as good as being on Wifi battery wise. 3G not so much. Toggle 3G when you can :)
[BetterBatteryStats] greyhd:
I can't toggle 3G on the G2, unless I am not looking in the right place.
[BetterBatteryStats] Wh1t3Rose:
You mean you can't switch from LTE to 3G? Settings/More/Mobile Networks section? I can create a profile for that if I need to :)
[BetterBatteryStats] rignfool:
cough cough

Better WiFi on off

cough cough

By the same Dev

cough cough

I should get that cough looked at
[BetterBatteryStats] greyhd:
That is correct. Only network available is LTE/CDMA and GSM/UMTS and Global. Global is the default, but not option for 3G. If you don't mind creating a 3G profile I would appreciate it.
[BetterBatteryStats] Wh1t3Rose:
No section called "Preferred Network Type"? That's so bizarre.

I'll create a profile. Give me an hour. Getting off freeway. Need to get home and some food and I'll make one send it in about in hour
[BetterBatteryStats] greyhd:
No option. Just a "system select" option.
[BetterBatteryStats] kfallz:
Where did you find .11?
[BetterBatteryStats] drewski_1:
Android Police has an APK, but to get the right dpi version PA GApps has a flashable zip.
[BetterBatteryStats] paco_ramirez:
Great news!. Check this log over night!

With wifi ON and phone signal I achieved 0.5%/hr!. It seems incredible to me. What do you think about it?. Yesterday I had free time at night and this is what I did:

- Flash the same rom again (taking specially care of wiping dalving, cache, system and data). I think I did it the previous time but not sure

- Avoid gBackup for apps and all, then I avoid installing unnecessary apps

- Install: whatsapp, telegram, hangout, my bank app, chrome, clash of clans (yes...it's addictive :D), BBS for sure!

That's all!. I don't know which of them is "the step" but I strongly believe that wiping everything well could be a step I did wrong the previous time. Even though this good results I will keep configuring Llama and Unbounce but little by little.

Apart from what I find good results, do you think that there are still strange things? I've just disabled cyanogen weather.

Thanks to all people that have suggested me things!
[BetterBatteryStats] Karpfenhai:
Slim gapps 294 and above.
[BetterBatteryStats] Renton91:
Goodmorning everybody, last night I left the phone always on data mobile with autosync off and this is the result.

Please, can someone help me? I don't think this is a normal behavior because Google+ took more than one hour to synchronize even if autosync was disabled! Moreover I have this annoying "event" wakelocks that I found are related to system_server.

Please, help me.

Thanks in advance.
[BetterBatteryStats] Wh1t3Rose:
Well considering you are on Edge speeds I think it could take that long in some cases. why left data on during the night anyway? turn it off if you are sleeping.
[BetterBatteryStats] Renton91:
I did it because I was suggested to do in this way to test battery and provide a good dump file. Anyway, why the synchronization started if it was disabled? And what are those event wakelocks? Thank you for your help.
[BetterBatteryStats] rignfool:
OK...

When a sync task takes that long to complete... It is usually a bad data connection (and no... Not bad signal... Just noisy... Like line noise from the old dial-up days) or... Its that google has decided to suck... You can't blame your phone...

Try taking another reading tonight... But reboot first... Go into your account t in settings and force a sync... Make sure it goes off like normal and see if you still have the problem in the morning
[BetterBatteryStats] Renton91:
But can someone explain what are those "event#-####" wakelocks? Because they occur very often preventing the phone to go in deep sleep.
[BetterBatteryStats] rignfool:
I think you're referring to new Google play services wakelocks...

Not sure how to beat them
[BetterBatteryStats] Renton91:
I was guessing, could reflash stock baseband again and using Google DNS help? Because maybe because of many rom flashes might have cause some issues.
[BetterBatteryStats] Perseus:
Sorry must have missed the discussion. What Wakelock is that ?

Don't believe there'd be any consequences unless you dirty flash.
[BetterBatteryStats] rignfool:
I can't believe I'm saying this to perseus71... But 2 posts up...

:)