yashsingh1/xdaforums huggingface dataset:
[ONE Themes and Apps] ghmail2:
for ppl still suffering wake lock on oxygenos ,hier is a easy solution. There is a script post by some one few pages back. it is a script should be placed in system/etc/init.d which should be supported by kernel and comes with busybox. the orignal oxygenos kernel has neither. so install "init.d scripts support" from playstore and follow the instruction. this app does not need busybox or special kernel. you just need root.

This fix google play service wake lock for me. although survival after reboot
[ONE Themes and Apps] orle10:
i have an "android system" battery drain

is this fix also for "android system" battery drain? i used to have an "android os" problem but it fixed itself somehow but now it's "android system". also do i need both the google services zip file and the Modded Framework? do i flash them both?

thanks in advance!!!
[ONE Themes and Apps] borda01:
Hi, is any option to install this mod without root and recovery ? Will it work on other phones ?
[ONE Themes and Apps] jenna.lenna:
Hey everyone, the modded version has been exceptionally helpful but unfortunately the system began to request the newer version for certain apps to function (I.e google+) Will there be any possibility of having an updated google play version?
[ONE Themes and Apps] bdiddled:
This is AMAZING, thank you so much for this! I was able to get a lock on 9 satellites indoors. :good:

Edit: Wanted to mention that this is on a HTC One Max.
[ONE Themes and Apps] uansari1:
For now I am using Disable Service from the Play Store, which works well..just doesn't survive a reboot. Hoping Calkulin mods the newest version of the GPS app.
[ONE Themes and Apps] Formhault:
Has Google not fixed this yet...?! JESUS CHRIST :eek:
[ONE Themes and Apps] frewys:
Nope.

No problem staying on old one. Problem is Google apps stopped working. G+ and Photos for instance... :/
[ONE Themes and Apps] Hopie:
i flashed the from op.. but my alarms has a lot wakelocks ? the same with official version

that's not normal
[ONE Themes and Apps] aghilvr:
I am running Cyanogen OS and recently my phone started keeping awake endlessly especially while charging. According to BetterBatteryStats this is the reason for the battery drain while charging

bq24157-charging-wlock (): 13 h 18 m 47 s Cnt:(c/wc/ec)95/0/0 85.9%

The complete dump is attached. Can anyone pin point what is causing my phone to keep awake? Thanks!
[ONE Themes and Apps] samuele94:
for people who have (play services 438) I invite you to try this version of the play services. I only made flashable with libraries. https://mega.nz/#!a41AURYR!-Chro3x3TYp4UBxczxjBQB5bLiZsoxm6wmgpPx1EyzI it works only with selinux permessive or disable and with busy box (like this https://plus.google.com/112871883978861703792/posts/2Ens9vssYiB )

Inviato dal mio LG-D802 utilizzando Tapatalk
[ONE Themes and Apps] Formhault:
I haven't tried this mod yet. I just wanted to say wow, Google hasn't fixed the wakelocks... and they seem to be lingering for so long now...
[ONE Themes and Apps] ocd_amp:
And Google will NEVER "fix" the wakelock because its not a problem created by Google. I thought the same thing until I figured it out by doing lots of reading about it.
[ONE Themes and Apps] chaser_:
Hey guys,

Sorry for the potentially stupid question but if I'm on Calkulin's stock rooted XNPH05Q ROM, I can't flash the YNG1TAS0YL modded framework linked on the OP right? I don't believe Calkulin has released a flashable modded framework for XNPH05Q?

A member in a previous post provided an XNPH05Q version, but the feedback so far was that it was not working.

For anyone who's still having this issue and doesn't mind using Tasker, the following is working for me so far:

https://plus.google.com/112425488314892935797/posts/VqubRkcTpEE

Cheers
[ONE Themes and Apps] HellSassa69:
And the phone keeps awake and awake and awake.. The oneplus one really is unuseable thanks to this battery drain issue with cyanogen 12.

An suggestions on how to fix it?

What should I do in app ops to block the play services? Can you please post a screenshot.

At keep awake there is a slider. Has it to be on the right or on the left side.
[ONE Themes and Apps] Purerawenergy:
I deny 'autostart' 'keep awake' and 'wake up.'

I also choose ignore for location, but I don't use any apps that rely on it either. And this is with Caulkins' modded framework.

Also, if you keep Google Location Services on, your battery will drain in just hours so... Hope this helps

Sent from the slippery slope.
[ONE Themes and Apps] closee91:
Left side, keep it disabled. And use amplify or my android tools or something to disable google play services systemupdate

Sent from my LG D851 running Blisspop ROM

If I helped you out, hit thanks!!! :D

---------- Post added at 08:43 AM ---------- Previous post was at 08:42 AM ----------

Which google play services are you running. Let me see your privacy guard or app ops for google play services and google play framework

Sent from my LG D851 running Blisspop ROM

If I helped you out, hit thanks!!! :D
[ONE Themes and Apps] doganmanis:
i have error executing updater binary in zip in my tab p7500 with 5.1.1 rom aosp
[ONE Themes and Apps] closee91:
The old version doesnt work with some apps, like the new maps for instance

Sent from my LG D851 running Blisspop ROM

If I helped you out, hit thanks!!! :D
[ONE Themes and Apps] Crayvolt:
Can you mod the latest Google Play Services v7.5.74
[ONE Themes and Apps] closee91:
If anyone's running a cm12.1 based ROM that's been updated recently. You shouldn't have the google play bug anymore! :)

-Sent from my LG D851 running Candy5

If I helped out, hit thanks! :D
[ONE Themes and Apps] Charmacas:
Do you know which commit did it?
[ONE Themes and Apps] Crayvolt:
80 percent of the old version work for me....

but drastically bunch of another wakelocks has been trigger seens opening apps related to com.google.dirty work of google
[ONE Themes and Apps] closee91:
Use amplify

-Sent from my LG D851 running Candy5

If I helped out, hit thanks! :D
[ONE Themes and Apps] Crayvolt:
[MENTION=5268098]closee91[/MENTION] thanks + thumbs up
[ONE Themes and Apps] starstremr:
does this fix the google play service has stopped error on the kindle fire hd 7"
[ONE Themes and Apps] davebugyi:
Not likely
[ONE Themes and Apps] Bradl79:
Do we need an update?
[ONE Themes and Apps] closee91:
People, update your custom ROM this should fix the problem. Get xposed and use amplify to disable systemupdate. Get myandroidtools and disable systemupdate. Get servicely and disable it. Go to app settings and disable keep awake. There are tonnnnnnns of options. This fix Is no longer needed/relevant

Edit: all these above options will work on the NEWEST, UPDATED google play services.
[ONE Themes and Apps] ipit:
Which rom and which xposed?
[ONE Themes and Apps] closee91:
Any cm based ROM and xposed for whatever android version you're running :)
[ONE Themes and Apps] Purerawenergy:
This fix has worked great for me along with greenify and amplify.

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

I assume Servicely will accomplish the same thing, but with this method my battery life is fantastic and I'm having zero issues with play store or apps.

Sent from the slippery slope.
[ONE Themes and Apps] Ok_Kaleidoscope5109:
YOu don't need to do any fancy service disabling if you have a nightly from CM11 or CM12/CM12.1 later than 21-MARCH-2015
[ONE Themes and Apps] closee91:
That's what I've been saying. Update your ROM, but disabling keep awake helps too
[ONE Themes and Apps] Ok_Kaleidoscope5109:
Disabling keep awake helps, but it has other adverse effects. The better solution is to update the ROM and get the root cause fix addressed with no side effects.
[ONE Themes and Apps] marshy73:
I disable Keep Awake and Wake Up in AppOps but after that keeps getting Google Play Services has stopped errors.
[ONE Themes and Apps] yanzilme:
same problem too
[ONE Themes and Apps] PeterFdeVries:
Hi Calkulin,

Can you tell me the difference between this patch and the option in the privacy option to disable 'wake up'/'keep awake' option?

Should I use one of them or both? I am on TAS2I3-rom.
[ONE Themes and Apps] Genericxx:
For those who are just too lazy to read the last bunch of pages where all is answered a couple of times, lemme sum it up

Any CM-Based ROM, built after March 21th, has SystemUpdateService-Wakelock fixed, no GPS-Mod needed anymore!

Don't deny

any

of those Autostart/Keep Awake/Wakeup permissions via App-Ops, coz Play Services don't like it anymore and will drop you FC's

To answer to your question: Disable permissions disallows wakeups and keep awakes. GPS tries to and ROM says no. This affords your Phone to try and deny, which consumes juice. This modded GPS simply won't ask for that SystemUpdateService Wakelock, coz Calkuin disabled it in the GMSCore itself. This is not needed anymore, coz CM Devs disabled the triggers for that whole thingy in the ROM itself around 4 Months ago.

Again: You don't need modded Play Services anymore, and you don't want to deny anything via Apps-Ops coz this nasty SystemUpdateService-Wakelock

simply does not exist anymore!

And i am not talking 'bout dat MobileRadioActive bug...
[ONE Themes and Apps] RuffBuster:
That's mobile radio active bug? Have they fixed it yet? It's driving me nuts!
[ONE Themes and Apps] NOSTALGIA:
let me share to everyone what i have encountered so far with the latest google play services update.

do not deny anything.

if you notice a drain with google play services thts the time u will deny the keep awake feature.

if your gonna use any location using app , google play services will start showing force closes. just disable the keep awake option if u wanna use any app that uses location.. and vice versa. enjoy.. tested this. this was bugging me few days ago... and now everything i fine. no more high google play services drain or google play servics fc.
[ONE Themes and Apps] FreddyRm:
So there's no need to use the patched GPS anymore? were the new versions fixed?

My OPO battery life is still stuck to one day =\
[ONE Themes and Apps] NOSTALGIA:
as far as i know, yes.. but u check ur own drain.. and experiment a little
[ONE Themes and Apps] iamelton:
does what you said apply to all rom (including OxygenOS), or just apply to CM12.1?

the drain is still plaguing there in OxygenOS..

tia..
[ONE Themes and Apps] XDAMaxe:
in general yes, but due to the lots of different roms why not try yourself and report?

you can't harm your phone with toggling perms
[ONE Themes and Apps] iamelton:
thanks for your reply, but i have no idea what to try as you suggested..

the OP has modded version for GPS 7.3.29 while my GPS is 7.5.74..

and as im at OxygenOS, im not sure what "perms" to toggle that you were referring to..

please advise and thanks..

[edit]

i have not denied any permission/wakelock via any measure as mentioned in the quoted post.. its all factory OxygenOS setup..

i was referring to the above line..

since i didnt do anything to my rom (OxygenOS), and it said that i didnt need to, thus i asked if the above line applied to my rom as well, as i still experience GPS battery drain..
[ONE Themes and Apps] XDAMaxe:
this is a opo thread and your sig says you haven't such a phone so it's a bit difficult to help you out more than general.

Is your oxygenOS based on cm ? if yes: what's the date of the rom ?

as said: any cm based rom later than march 2015 is not affected. and if your rom isn't cm based than your problem is other than discussed here (to clearify: this thread provides a workaround for unfixed framework-res.apk which cm themselves fixed after march 21st - so if your rom-dev merged the cm fix after march everything is OK, if not you have to ask him, if he won't/couldn't fix it you can use this/these workaround(s) of this thread (not only possible by modded gps of the op - read carefully and search for framework-res.apk because you can fix the wl issue in many ways. that's all)

If you run a not cm based rom you have to look for threads concerning general or google related wl issues.

Good luck anyway
[ONE Themes and Apps] iamelton:
thanks again for the quick reply..

as a matter of fact i do have a OnePlus One (see the first line of my signature), and OxygenOS is the official rom for OPO from OnePlus..

since i think this thread is more of an "OPO" thread instead of "OPO with CM" thread, i think my question is justified..

anyway now i think i have got the answer, i.e., the description/explanation of the quoted post referred to CM-based rom only..

since OxygenOS is AOSP-based instead, guess i have to live with the GPS battery drain then..

(p.s. for the unaware ones, there are two "official" roms for the OPO.. the CM that came pre-loaded with OPO, and the OxygenOS that OnePlus later offered and could be downloaded from their official site and flashed into the OPO..)
[ONE Themes and Apps] XDAMaxe:
oops, I must've been blind, sorry for that. Anyway you then shouldn't be affected by the issue discussed here.

But some further notes: try to install latest gplay services for your device (keep an eye of the extension) from apkmirror.com or other reliable site (copy into resp. folder of your phone, check/set correct permissions and reboot), I guess you checked your drain (partial wl) with bbs ? Does your phone jump into deep sleep ? Snyc settings lowered ? greenified anything ? disabled autostarts of unnecessary apps ?
[ONE Themes and Apps] iamelton:
its just plain vanilla OxygenOS (with root)..

i have tried to clear GPS data, uninstall GPS, force update to latest GPS, and then reboot for a few times.. usually the drain disappeared for a couple of days and then it returned..

so far the only solution from this thread seems to be modding the framework-res.apk as shown in the OP, and i plan to try that then..

thanks for your time.. :)
[ONE Themes and Apps] XDAMaxe:
you're welcome and it's my pleasure

did you tried that ?

http://xdaforums.com/showpost.php?p=61079342&po

init.d script see att. (del .txt extension to make it run ...)

but as said: if that is not the cause for your wl then of course it wouldn't help
[ONE Themes and Apps] iamelton:
theres no "/etc/init.d/" directory in my phone, so i guess the OxygenOS kernel does not support init.d scripts..
[ONE Themes and Apps] XDAMaxe:
alrighty, sad, my last idea is this or this or this
[ONE Themes and Apps] iamelton:
i really appreciate your persistent help..

i think i would just go for the framework-res.apk modding route, as it will be as well a good experience of decompiling apks for me besides fixing the battery drain..

didnt do that before as it involves the troublesome phone to pc and then pc to phone copying of files.. :silly:
[ONE Themes and Apps] xn0live:
KitKat v7.3.29(030)

This Version is not woeking more, because theyy want to install allways the new one

Who can fixed it please
[ONE Themes and Apps] ntorresla:
Resurrection Rom fix this on the last update
[ONE Themes and Apps] xn0live:
who can post the new fix verison here, please
[ONE Themes and Apps] uansari1:
Even Disable Services app isn't working anymore. The SystemUpdateService keeps turning off even when the phone isn't rebooted.
[ONE Themes and Apps] hamradio64:
Hi,

anyone please can tell me if this is still necessary on Resurrection Remix 5.5.2 rom?

Thank you.
[ONE Themes and Apps] jib@rmi.ge:
What about config_forceEnabledComponents?

Mine is slimlp 5.1.1 on u8833 (Huawei y300). In values/arrays.xml, the place with "config_disabledComponents" is as indicated.

However just after it there is this:

<string-array name="config_forceEnabledComponents">
<item>com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService</item>
<item>com.google.android.gms/com.google.android.gms.update.SystemUpdateService</item>
</string-array>

Should not something be done about it?
[ONE Themes and Apps] adnansakarkar:
Dear [MENTION=1188493]Calkulin[/MENTION], can you please tell me what is to be done?

I'm bit confused what to flash and how to activate this mod?

Should i flash both the files and its done or anything other than that is required?

Please help me out.

I'm using SGS3 I9300 with CM 12 Rom and Nitro X Spark Mod.
[ONE Themes and Apps] Killer.shubham:
Now i can save some battery.Thanks!
[ONE Themes and Apps] jib@rmi.ge:
Cannot find Captive Portal Detection

In 5) you mention this option among developer options, but I cannot find it there. Mine is Lollipop 5.1.1 (slimlp by chil360 for u8833), there are lots of developer options but not the one even resembling captive portal detection. There is an unnamed list of 8 entries, then there are sublists entitled Debugging (14 entries), Input (2 entries), Drawing (7 entries), Hardware accelerated rendering (8 entries), Media (2 entries), Monitoring (4 entries), Apps (3 entries) and LAN settings (1 entry).
[ONE Themes and Apps] ocd_amp:
Its enabled by default if you don't see a setting for it.
[ONE Themes and Apps] imcrazyz:
Is it applicable to this issue? https://code.google.com/p/android/i...in&colspec=ID Type Status Owner Summary Stars

As you know this mobile radio active issue has arose since 5.x lollipop.
[ONE Themes and Apps] guilhem_h:
Sorry I didn't read the whole topic...

I allready unchecked the "wake-up" and "keep awake" option in the privacy guard app : does this mod do anything else ?
[ONE Themes and Apps] flupke02:
Should this work for Play Services 7.8.99?

Firstly, thanks for the good work.

I used an earlier patch when I was on 11s, which worked ok. I am now on Oxygenos 1.0.3 with Google Play Services 7.8.99 (2134222-438). I tried flashing the patch just now, but it does not seem to do anything, still the same version number.

Does this mean the patch version just isn't compatible with my play version, and if so, is there anything I can do about it? Or is there something causing this?
[ONE Themes and Apps] abilash.s.90:
Hey [MENTION=1188493]Calkulin[/MENTION]! I'm on One Plus Two (Not Rooted) and I have severe wake lock battery drain issues. I tried both versions and it failed. My version is 448

A few questions.

1. Should my phone be rooted to get this patch to work?

2. Is there any other patch for 448?
[ONE Themes and Apps] BillyHW:
There's a new Google Play Services version 8.1.14 just released and someone is claiming that it fixes the problem here:

http://xdaforums.com/android/general/google-play-services-battery-drain-fix-t3197913
[ONE Themes and Apps] journeyman:
is there any news for Google play Services 8.1.15?
[ONE Themes and Apps] BillyHW:
My phone is running Google Play Services 8.1.15 now, and there do not yet appear to be any nefarious wakelocks.
[ONE Themes and Apps] journeyman:
unfortunately, mine is having serious matters with wakelocks...
[ONE Themes and Apps] sshafranko:
And what version are you running?
[ONE Themes and Apps] journeyman:
Lollipop 5.1.1 and GPS 8.1.15

to be honest, i monitor my 1+1 the 3 last days and seems that the wakelocks has been dissapear...
[ONE Themes and Apps] sshafranko:
Yea me too...looks like they improved 8.1.15 trenendously in that department.
[ONE Themes and Apps] journeyman:
monitoring and waiting...!
[ONE Themes and Apps] AndrewM3:
5.1

is this necessary if we are on 5.1 or is issue with play services still present?

will this work on CM12.1 uber 4.8 AK kernel?
[ONE Themes and Apps] dragoi90:
Everything works fine on 5.1!I'm on Temasek 9.6 12.1 with AK 210

No wakelocks at all!
[ONE Themes and Apps] n.praveen13:
Thank you so much...much needed fix
[ONE Themes and Apps] ocd_amp:
It is not a script that enables SystemUpdateService. If you use Disable Service, you will see it is still disabled. I did the following.

Clear AppOps Permissions. -Allow Wake - Keep Awake for Google Services.

Force Stop Google Play Services. Clear Data. Go into Recovery, Flash this zip. Wipe Dalvik/Cache, reboot.

Check CPU Spy, No Deep Sleep.

Reboot Again > wait for a while > Deep Sleep is working.

Note: Some people experienced troubles when phone plugged in initially, then not going into Deep Sleep after being unplugged. Try waking the phone first, then Unplugging, then manually put it to sleep. I hope that helps.

ROMS Used: Sultan's CM11 GS2 and CarbonROM GS3

EDIT: Calkulin : Thank You.
[ONE Themes and Apps] Mauxisto:
Thank you very much man!!
[ONE Themes and Apps] nicesoni_ash:
[MENTION=1188493]Calkulin[/MENTION]

Since this is for oneplus and the apk inside is 038, what if I want to flash this on my s3 which uses 036 play services version? Can I simply replace the apk but leave lib files there?

Thanks.
[ONE Themes and Apps] geckdido90:
first of all thanks for the fix.. anyway I flashed the .zip in TWRP recovery but after that google play services disappeared and I can't use any google app..what should I do? flash gapps again? reflash rom + gapps?
[ONE Themes and Apps] stephaneousset:
How to uninstall ?
[ONE Themes and Apps] eranyanay:
I wonder if it will fit my needs,

Im running Mokee 4.4.4 and had only SystemUpdateService wakelock, and after I treated it with "On boot" script with Tasker, SystemUpdateService was indeed eliminated, but ever since I suffer, occasionally, from RILJ wakelock. is it by any chance related?

It occurs only sometimes, I eventually used Amplify to reduce it, but its not a great solution beacuse I had to switch from ART to dalvik.
[ONE Themes and Apps] ocd_amp:
Go into Google Settings, and turn off Location reporting.
[ONE Themes and Apps] eranyanay:
It's already off, I think.

When I went to that activity it looked the following way:

So I clicked yes and now it looks the following way:

Is that OK?

Perhaps I should mention that when not navigating, my GPS is completely off, maybe it's related?
[ONE Themes and Apps] ocd_amp:
I have Location and Location Reporting both on and my phones are going into deep sleep. Prior to this, Google Play wake lock would "stick". Location services are just a couple of the things that prevented Sleep. It depends on the App that requires it.

Get this app. CPU Spy from the Playstore. Reboot your phone, and after a couple of minutes, put it to sleep. Check 10-15 minutes later. Does it go into Deep Sleep? If yes. This solution worked.
[ONE Themes and Apps] lchazl:
Will this work with any phone regardless of brand/model (I have a Nexus 5)?
[ONE Themes and Apps] ocd_amp:
Tap to wake will keep CPU running as the screen sensor always needs to be active. This is for Google Play Services causing the phone keep wake locks dependent on Google Apps that require Google Play Service services. Not for any other stuff.

For Next Alarm issues, disable Next alarm options in your clock App.

For Location wakes, disable Location Reporting. ie. Uncheck the tick mark next to your phone listed in Google settings Location History area.

Many people depend on those services, so they will consume battery, however most people will see deep Sleep in the stats listed by CpuSpy.

Charge your phone to 100%, refresh battery stats, Calibrate battery with battery calibration app, unplug your phone, and put it in sleep. After a while you will notice Sleep state is active in CpuSpy.
[ONE Themes and Apps] Zephyr!:
Please help me. This is draining the battery
[ONE Themes and Apps] hughfollett:
That isn't what's draining your battery. Look in the "partial wakelocks" section

Inviato dal mio A0001 utilizzando Tapatalk
[ONE Themes and Apps] eranyanay:
I reverted all Amplify changes I made in order to prevent RILJ to happen, and now its 100% again.

I tried GPS on, and still, 100% of the time.

What else can you suggest? I hate going back to dalvik & amplify since the phone is a bit laggy in that mode.