yashsingh1/xdaforums huggingface dataset:
[ONE Themes and Apps] ocd_amp:
When you decompile Framework-res, it will only decompile what is there to begin with. Decompiling is not going to rename any folders. It is decompiling, not extracting, and not renaming. Also when you Flash framework, make sure to CHMOD proper permissions. You can do that with ADB Shell. My modified framework will not work on your phone. Different model, different framework.

java -jar apktool.jar -d framework-res.apk (is this what you did?) > values > arrays.xml > java -jar apktool.jar b framework-res.apk

Go into Dist folder, open framework-res.apk with 7zip > Go into Original folder > Copy META-INF and AndroidManifest.xml into the framework-res.apk that you have opened in 7zip > close it > Put framework-res into my flashable.zip folder /system/framework > Go in recovery, flash > You are done.

If you are getting errors, what are they? You have to post what exactly you are doing.
[ONE Themes and Apps] midirt:
YHG1TAS17L fixes

I'm running 12.0-YHG1TAS17L on OPO, rooted (manually flashed) so what are my options for fixing this? I have "Google Play Services" eating battery more than screen now (15% vs 10%). The ROM version in this post is different (SOYL) - is this already fixed in S17L and do I have another problem? Or do I need to flash one of the zip files to fix it (which one)? Any other fixes? There are 51 pages, and trying to figure out what's relevant is difficult, so appreciate any advise.
[ONE Themes and Apps] twiztid_:
If it is the problem you're having is the same as listed here, then you have at least three options (in order of easiest -> hardest):

1). Settings -> Privacy -> Privacy Guard -> long press Google Play Services -> turn off WAKE UP, AUTO START, and KEEP AWAKE.

2). Install AutoStarts, run and search for SystemUpdate, tap Secret Code Entered -> Google Play Services -> Disabled.

3). Modify your Framework-res.apk file. This can soft-brick/bootloop your phone, so back up the file (ex. Framework-res.apk.old) and have a way to rename outside of your ROM, and/or be sure you can reinstall your ROM from recovery. The steps are somewhat involved, but not too terribly difficult if you have experience doing things like this.

These solutions are not 100% guaranteed to work:

1). My ROM doesn't have the Wake Up/Auto Start options.

2). After rebooting, I need to re-enable/disable through AutoStarts.

3). I modified my Framework-res.apk, and everything works fine, but it did not solve my drain issue.
[ONE Themes and Apps] midirt:
Thanks a million! I did the first one and disabled all three permissions (my ROM has all three). Will see if it helps...
[ONE Themes and Apps] twiztid_:
It should work if you have the options, I used a different ROM that did have them and it solved that drain issue. If it doesn't work, and you're SURE it's the Google Play Services wakelock, I'd be willing to modify your Framework-res.apk file for you if you're not comfortable doing it.
[ONE Themes and Apps] spoonymoon:
I had a lot off play service eating battery and no deep sleep before but not since using Theese gapps > http://fitsnugly.euroskank.com/?rom=banks&device=gapps

No fix needed then ....

:)
[ONE Themes and Apps] NAZUnlimited:
yeap. i did all that.

this is what happens when decompiling (java -jar apktool.jar d framework-res.apk )

the green squares are framework-res.apk original "zipped" folder names, they get renamed when decompiling (red squares). the reason that happens is unknown to me but it happens in every OS i tryed.

the logcat errors i reffered are from the apps not finding framework holodark png's or xml's .

i asked for your fw to see if it happens the same with one that was de/recompiled with success.
[ONE Themes and Apps] tiuro:
Can I flash your Google play services even if I'm using Aroma slim gapps for 5.1.1 with 434 build?

ROM SlimLP optimised build for i9505
[ONE Themes and Apps] ocd_amp:
Yes that can happen because of information in your manifest file. But not to worry, the Recompile puts it all back together. Follow the instructions I posted earlier. You will not need to mess with any Drawable folders. The manifest original will take care of that on recompile from the decompile info of the original. IF you get translation errors, do not worry about those, the Framework will still work. All you need to do is Decompile, change the Values, and recompile it. I can not recommend any "APK Tools". Just use Command line, it is a lot easier. It's more work but will give you a better understanding of how this works.
[ONE Themes and Apps] NAZUnlimited:
Nevermind the "apk tools", it was there only because i used a friend's computer to take the printscreen. I usually de/recompile by command line.

I checked manifest, there isnt even a mention to v8, only to holodark.

In the meanwhile i tried adding the holodark folders and leaving the "v8" folders before recompiling and the result was a recompiled Fw with both holodark and v8 folders. Initial boot test was a success and apps dont crash at opening. It isnt a clean solution but if it works, i can live with that. The only thing left is test with google play service.

One question occurred me while all that, is it possible to redirect the "old" Fw array values to new ones using a redirection in a theme?
[ONE Themes and Apps] ocd_amp:
If all you changed were array values, then everything else should already be there. Get CpuSpy from Playstore. After you wipe dalvik/cache reboot, use DisableService to see SystemUpdateService should be running. Reboot and verify. . Then turn on your gps, data, wifi, and put your phone to sleep for 10 minutes. Check in CPUSpy again and you should see the phone enters into deep sleep.
[ONE Themes and Apps] che586:
do i hav to flash it.....?

do i hav to flash it.....even if m using your rom....?

Calkulin's OnePlus One v3.1 [ CM12S | YNG1TAS17L | Battery Saver ]
[ONE Themes and Apps] Zorachus:
Can we use this on another phone like my Nexus 6 ?
[ONE Themes and Apps] zevozki:
I flashed the zip Lollipop v7.3.29(430), when I run hangouts I get this error frequently. "Unknown Issue With Google Play Services"

How to fix that?

I am on CM12s v5.0.2
[ONE Themes and Apps] Th3DaRk_Vampire:
Good question... +1

Sent from my One+ One
[ONE Themes and Apps] Ejvyas:
Modded Framework

This fixes the root cause of the issue, so the service will operate properly now. The modded Google Play Services versions are not needed with this

Be sure to enable the SystemUpdateService for Google Play Services & Google Services Framework if you use DisableService or similar app

YNG1TAS0YL

----

I didn't understand this post. Do we flash file YNG1TAS0YL ? Is it valid for any device or just one plus ?
[ONE Themes and Apps] uansari1:
I'm actually wondering if this is specific to COS12, or whether it can be flashed if we're running OxOS as well...
[ONE Themes and Apps] Journyman16:
I realise this is a OPO thread... :D

What I am wondering is how these fixes might apply to a Galaxy Note 3? Given it is fixing a Google issue, is the code to do with the CM ROM or does it touch on hardware? I'm willing to give it a go if it is not guaranteed to brick my phone but would like at least a 'not sure but it should work' before I do. :D
[ONE Themes and Apps] sshafranko:
Nothing to do with hardware...it fixes an app that controls all your google apps. This mod changes the code in that app and prevents the app from keeping your phone awake when it should be sleeping. That said, it doesnt mean you cant have an issue after using this mod. Make sure you have a back up of your rom just in case and flash away. As for a guarantee, you will never find a guarantee from anyone when using mods and rightfully so. I guarantee that there is never a guarantee.? But i wouldnt worry you should be fine...although make sure you even have the problem before you use this. You may not need it.
[ONE Themes and Apps] Journyman16:
Yep on all the above... I was just wondering if there was a guarantee that doing it WOULD brick my phone. Will give it a go and report back - there are quite a few Note 3 users having similar issues. Thanks...
[ONE Themes and Apps] sshafranko:
Did you check to see if you have the issue tho? Use an app like Better Battery Stats and see if GMS is at the top of the list in alarms and keeping your phone awake before you flash.
[ONE Themes and Apps] Ejvyas:
Still need some explanation before I can take the risk. Not sure what it is trying to do
[ONE Themes and Apps] Journyman16:
It's equal top with Android.providers.Calendars @ 32%. I don't think I have much of an issue though - I've fixed my battery drain to where I get < 3% drain overnight. This is more about giving back to Temasek's thread by looking for solutions for others who are still having the issue.

The fix installs with no apparent bad effects - phone is working fine. :D If others try it and report back I'll come back and post so any Note 3 users looking for a fix will know they can try this one.
[ONE Themes and Apps] milomak:
so i can just flash the modifying fraework zip in the op with 5.1? and that's all i need to do?
[ONE Themes and Apps] JeffDC:
Caulkins Play services 7.3.27 and 12 ...17L-Bacon-signed

I've installed 12S and it works well. It comes with a higher version of Play Services than 7.3.27, so I booted into TWRP and flashed Caulkins 7.2.37 version, however, when I reboot, PS still says 7.3.29! So Caulkins 7.3.27 did not install.

So I uninstalled the update of 7.3.29, which then downgraded to 7.3.27 (OEM). I rebooted into TWRP, flashed Caulkins 7.3.27, and upon boot, it does say 7.3.27 as it did upon the downgrade.

The question is how can I tell if it is Caukins modded 7.3.27 or the OEM version? It's bracket says (1837062-430).
[ONE Themes and Apps] Journyman16:
An update for Note 3 users. On n900t, cm12.1, the GPS fix hangs boot process. The Google play one appears to work fine, but waiting on others who have issue to try it.
[ONE Themes and Apps] amarty92:
Patiently waiting for the Lollipop - 440 version for my Galaxy s6 ?
[ONE Themes and Apps] GT-I8160P:
Thanks for doing Googles work!

Thanks for letting my Ace2 go back to deep sleep.

I hope my paypal donation will buy you a coffee in your part of the world.
[ONE Themes and Apps] LSiR:
CM12.1 Nightlies?

Can anyone tell me if i hv to flash this on CM12.1, 5.1?
[ONE Themes and Apps] -m3tac0rt3x-:
Have you read the OP to see what this applies to? :rolleyes:

If you have drain from GP Services then flash away, if you don't have any drain from GP Services, then why do you need to fix what's working?
[ONE Themes and Apps] LSiR:
Thing is im not quite sure if i need it cause im using the privacy guard + greenify + DS battery saver.

Il just flash it as an added precaution.

Thanks
[ONE Themes and Apps] Luigiesin:
Google just released a new version of play services... Hopefully they fixed this stupid issue!

BTW, flashed your modded version 5 hours ago and my phone is sleeping like a baby! Thanks for your work dude!

The only thing I'm experiencing is the Gmail inbox is not notifying me of new emails, or maybe not checking email until I open the app.. I have everything syncing on my goggle account settings.

Please let me know if it's worth updating Gservices to the new version or if it has the same issue. Thanks for everything!

LUGO
[ONE Themes and Apps] nuwan32:
this might be due to greenify or any wakelock blocker thats stopping google sync. i dont have this problem with gmail and im using the google play from OP.
[ONE Themes and Apps] TR2N:
So far it looks like the bug is solved with the latest Play Services update [Shamu]
[ONE Themes and Apps] Luigiesin:
Nah.. Not using greenify... Two friends of mine are having the exact same issue after flashing the zip.
[ONE Themes and Apps] eak1080:
looks good with update so far

NVM still here CM11S
[ONE Themes and Apps] ca110475:
Confirming battery drain has finally gone for me with latest GPS 7.5.62 on hammerhead :victory:
[ONE Themes and Apps] dadaz007:
Not for me on CM11, go back to calkulin moded version.
[ONE Themes and Apps] Thondratir:
Thanks OP, was going mad over this thing.
[ONE Themes and Apps] ocd_amp:
The only way to fix this permanently on CM11 is to modify your framework-res.apk - That is the best solution. If you install the modded PlayServices, within a matter of minutes, or an hour, Google will re-download the version that is for your phone, and you will be back at square one with the deep sleep issue.
[ONE Themes and Apps] vicky2131:
[MENTION=1188493]Calkulin[/MENTION] hey mate, kitkat has a different version now!! can you make a zip for that? i can provide you with the file if required

device-oneplus one on cm11s 05q(kitkat)

google play version now- 7.3.29(1866531-038)
[ONE Themes and Apps] eak1080:
Here are flashable zips for the 05Q (kitkat) CM11s rom. One is the stock rom framework-res.apk and the other is the modded apk with the fix. You have to remember to re-enable everything you disabled with autostart or disable service after you flash these. I have tested for a week on 7.3.29 and over a day with GPS 7.5.xxxx version on kitkat. No wakelock.

View attachment Calkulin's_05Q_GPS_Wakelock_Fix.zip gps fix for cm 11s

View attachment Calkulin's_05Q_stock.zip return to stock cm11s

[MENTION=1188493]Calkulin[/MENTION] ....add to OP?
[ONE Themes and Apps] dadaz007:
thanks.
[ONE Themes and Apps] ocd_amp:
Add:

Fixed, Zipaligned, and already posted for all users of Sultan's CM11 i727 and Carbon KitKat for i747. Best thing to do is fix it, or wait for someone from your ROM community to fix it. I didn't want to hold my breath waiting for a fix so I did it myself. Calkulin deserves the biggest thanks here.
[ONE Themes and Apps] vicky2131:
thanks mate!! flashed both.

will give feedback soon ;)
[ONE Themes and Apps] ocd_amp:
Hahaha. I'm sorry I just had to. :)

By flashing both, lets hope you flashed the fix AFTER the stock.
[ONE Themes and Apps] eak1080:
LOL flashing both won't help... Just flash the fix... I posted a return to stock zip for users just I'm case something breaks
[ONE Themes and Apps] Enea307:
Hi i have a huge Consumption of Data with this play service. Any suggestions? Plz help. OnePlusOne 1.1 Euphoria
[ONE Themes and Apps] HaTrED_:
It seems to be working really good! I'm gonna test it a little further but this seems very promising! Thanks mate!

Tapatalked!
[ONE Themes and Apps] néonaloj:
It has nothing else to do than to stop the nuisance wackelocks by the google services (don't even know what's your issue..)
[ONE Themes and Apps] jpjdlv:
I enable TAP to wake but it stay disabled. Do not turn on.
[ONE Themes and Apps] néonaloj:
It's the wrong topic, but on wich rom are you?

Edit: better open a Q&A topic...
[ONE Themes and Apps] vagelis74:
Great mod so far not any google play serivises wakelocks.
[ONE Themes and Apps] Yusei:
[MENTION=1188493]Calkulin[/MENTION] doing Google homework.

Thx bro!
[ONE Themes and Apps] 1ceb0x:
Sorry - can anyone explain what does this does exactly? How is this compared to just use tools like Disable Services or MyAndroidTools? I have 0 wakelocks on 7.0.99 by just using MyAndroidTools and removing unnecessary services/receivers/providers from Google Play Services. If this is something else, please let me know. I'm curious to know what does it do exactly.
[ONE Themes and Apps] JeffDC:
Well, basically it is not explainable.

It is from Calkulin, ergo it is magic.
[ONE Themes and Apps] deltatux:
Hi Calkulin,

May you please tell us what was modded in these zips?

Thanks,

deltatux
[ONE Themes and Apps] Spaulding89:
FYI

NextAlarmTracker is a kernel issue.

CM fixed it.
[ONE Themes and Apps] :
This work is appreciated
[ONE Themes and Apps] cr0wnest:
My dad's OPO running OxygenOS stock which suddenly had a nasty google update services wakelock, flashed this and immediately the phone started sleeping again. Before I was only able to make it sleep by using the disable services app which is a pain because you have to do it at boot up everytime. I noticed this fix didnt solve the issue from that end so the magic must have been elsewhere, but either way the phone is sleeping now and I will continue to monitor.

Thanks a lot!
[ONE Themes and Apps] iamelton:
with an overnight test the battery drain turns normal after flashing the fix..

thx [MENTION=1188493]Calkulin[/MENTION]!
[ONE Themes and Apps] Doo Doo:
Before I flashed this I had wake up & keep awake turned off under privacy settings is it ok to turn them back on after flashing this
[ONE Themes and Apps] nhshah7:
Yes you should be able to.
[ONE Themes and Apps] 1ceb0x:
useless answer. don't know why you bothered to answer in the first place.

anyone else knows what is this doing?
[ONE Themes and Apps] :
Its probably a script that enables the system update service so Google play services can keep it under control.
[ONE Themes and Apps] Logic717:
For those asking what the zip does, Caulkin answered that in post 17. It simply prevents the wakelock from getting the privilege (permission) to execute. So it doesn't exist at all. Open the zip and look around.
[ONE Themes and Apps] JeffDC:
and I thought I was sharing a little light humor. Mate, maybe had I the chance to see your face before posting, I would have been able to 'read' that you were bit testy. :crying:

As suggested just above, unzip the numerous embedded zip file hierarchy and take a look at his process. It can be used as great learning tool.
[ONE Themes and Apps] jpjdlv:
Im at euphory its working now. My root is now OK and now works
[ONE Themes and Apps] vicky2131:
ha ha yes!! i flashed stock caulkin since it has ssm mod present on it already ;)

edit: not working!! i think [MENTION=1188493]Calkulin[/MENTION] has to help
[ONE Themes and Apps] eak1080:
What rom are you on
[ONE Themes and Apps] vicky2131:
cm11s 05q currently!!
[ONE Themes and Apps] eak1080:
And the zip I posted doesn't fix the system update service wakelock for you?
[ONE Themes and Apps] vicky2131:
it didnt fix mate!! i have disabled keep awake and wake up using privacy guard and its stopped for now.

Let me know if you have any other solution.

thanks
[ONE Themes and Apps] Ok_Kaleidoscope5109:
If you're on a nightly after March 21st, the issue has been fixed already regarding SystemUpdateService. There really is no need for a modified Play Services.
[ONE Themes and Apps] Ejvyas:
What nightly ? What device ?
[ONE Themes and Apps] closee91:
So the newest nightly has the wakelock bug fixed??
[ONE Themes and Apps] davebugyi:
Yes, for two months.
[ONE Themes and Apps] sathish1:
I'm using Oxygen OS

May i know which one will help to solve this battery drain.

Since i found two zip for lollipop. :)
[ONE Themes and Apps] Ok_Kaleidoscope5109:
OPO? This is an OPO forum after all. Anyhow, I wrote this in another thread.

I can understand people who are still on official CM11S ROMs who don't want to update and want to use the bandaid fix in this thread, but honestly, if you are on nightlies, move onto a later nightly.

Question though... does CM12S have the fix included? I have not updated to CM12S myself.
[ONE Themes and Apps] suaverc118:
So my play services is 438 but my DPI is 360. Which one can I use?
[ONE Themes and Apps] XDAMaxe:
if you're still on 438 then you should use 438
[ONE Themes and Apps] ca110475:
438 or 430 (universal DPI) will both work

Tapatalked via Nexus 5
[ONE Themes and Apps] XDAMaxe:
To figure out the right version of Google Play services for your Android device, go to Settings -> Apps -> Google Play services, and look at the last 3 numbers in the parentheses. You'll see something like -XYZ where:

* X defines Android version:

0 for Android <5.0

4 and 7 for Android >=5.0

8 for Android TV

* Y defines CPU architecture:

1 for armeabi

3 for armeabi-v7a

4 for arm64-v8a

7 for x86

* Z defines DPI:

0 for universal

2 for 160

4 for 240

6 for 320

8 for 480

Taken from www.apkmirror.com
[ONE Themes and Apps] GreekDragon:
Google Play services 7.5.71 (1955121-036) Is up! New update is up!
[ONE Themes and Apps] kishorparmar:
Hi calkulin

I Flash this file [Lollipop v7.3.29(438) - 480 DPI - armeabi-v7a]

every time i restart my opo this show on screen "android is upgrading"
[ONE Themes and Apps] XDAMaxe:
http://xdaforums.com/showpost.php?p=60102275&postcount=87
[ONE Themes and Apps] sol1dsn4ke:
New version on my Moto G (4G) with carbon ROM 4.4.4: 7.5.71 . Anyone else?
[ONE Themes and Apps] phatkid01:
Have the same version on my note 3 running temasek 12.1 v11.8 but it keeps crashing
[ONE Themes and Apps] NAZUnlimited:
Carbon ROM and 7.5.71 too. Not a single problem with modded framework
[ONE Themes and Apps] cuezaireekaa:
OMG google play services has me pulling my hair out.

No matter what I do , it just auto updates to the latest. Even detaching it from market in titanium.

BTW kind of off topic but..

They've a boat load of permissions that need to be granted that I've never known about. Guess its par for the coarse but damn, cmon. 'Read my text messages'!? Cmon google..

"I'm just an average man, with an average life

I work from nine to five; hey hell, I pay the price

All I want is to be left alone in my average home

But why do I always feel like I'm in the Twilight Zone, and...

I always feel like somebody's watching me

And I have NO PRIVACY" ;)

Rockwell - somebody's watching me

https://youtu.be/7YvAYIJSSZY

sent from an sm-n900t
[ONE Themes and Apps] ocd_amp:
I like your post. Send me your Framework-res.apk and I will fix it for you.
[ONE Themes and Apps] adinkwok:
OxygenOS Modded framework-res.apk

Here is an apk that I compiled based off of this mod for OxygenOS. It may not solve the problem but hey, at least on the ROM side it is fixed :good:.

OxygenOS-Wakelock-Fix.zip
[ONE Themes and Apps] cuezaireekaa:
Smn900t
[ONE Themes and Apps] ocd_amp:
You are on CM 12. This is a CM11 problem. Those are the only frameworks I am modding. I'll have a look for wine and cheese giggles when I have a chance, no promises. Your problem likely lies else where. Use CpuSpy to see if your CPU goes to sleep state.
[ONE Themes and Apps] cuezaireekaa:
sent from an sm-n900t
[ONE Themes and Apps] Luigiesin:
Hey guys.. If you want Google play services to stop updating, create a folder at data/app named com.google.android.gms-1.apk

If you want to keep updating just delete that folder.
[ONE Themes and Apps] Ofthecats:
Thanks a ton for this. Should be added to OP [MENTION=1188493]Calkulin[/MENTION]
[ONE Themes and Apps] ghmail2:
after flashing this i still have not deep sleep
[ONE Themes and Apps] Fatness:
I had the same problem "kinda" i had alot of different problems that made my phone not go into deepsleep "still got one problem that makes it and im not sure exacly which one but i turn of a few things etcand it turns into deepsleep"

Anyway for me ,steam, messenger and facebook,spotify "if im using spotify on my computer this program is keeping my phone awake for some reason".

And the biggest thing that kept it awake 100% "beside this google play service problem" is my SD CARD, for somereason my phone was searching in my SD card the whole time so formatting it works. Someone told me that if u have files on it that the phone cant recognize it keeps the phone awake and trying to "open them or something". Try it removing the SD card and later go into running apps and stop index service.

And i wanna thank you Calkulin for this fix! it made my phone go from 4 hours battery life with screen on and 5 hours with it off "but wakelock on all time" to 8 hours battery life with screen on. And even if i did not use my phone it was at like 20% battery life at end of the day and now it used 3% battery life with 4h 39min on, and screen was on maybe only 5-10min . So im super happy that i found this fix! hopefully android can fix this problem so we dont need to fix it our self like this. Btw my phone is a samsung note 4