yashsingh1/xdaforums huggingface dataset:
[ONE Themes and Apps] ocd_amp:
EDIT: There is a Difference between Google Play Services and Google Play Store App. When Calkulin says GPS , it does not mean Global Positioning System, it means Google Play Services (GPS) and its Data folder ends with GMS. Google can be very confusing. So please read the thread carefully.

This may help some people on CM 11 and CM 12 based ROMS.

If you are on Google Play Services version ending with For example -034 or 036 as in my case - If you flash Calkulin's -030 -

After a certain amount of time, your phone WILL download your version again 034/036 and you will develop a WakeLock issue once again.

The way to solve this is to go back a few threads and the solution is there -

You create a folder in /Data/App called com.google.android.gms-1.apk (The exact instructions are a bit back in this thread and Clearly explained)

The method above will "Block" the updated from happening.

Your phone will still Hit up Google servers and continue to ask for the update but the update will Not get installed in the background.

As for the ROOT of the Issue Fix - Concerning the ROMS I am using.

I successfully Decompiled Framework-res.apk and it was very simple to change the values in a file called Array.xml however I failed to Re-Compile it successfully - the issue is either Me, Apktool, Java, my PC, or some combination of those, I cannot figure out which as of yet. More than likely it is just me making some error.

I was hoping to Nip this in the bud for the ROM I am using so I could pass the solution along to all the other users since the Developer of my ROM has since abandoned it.

If you are Flashing CM11 based Nightlies - this will result in the same bugged Cyanogenmod Framework getting into your device and you will have to use the fixes mentioned in this thread. so it is upto all ROM Developers who are using Cyanogenmod 11 or 12 as their base to please look into this, either by packing the fix into their ROM or offering a Flashable zip file for the particular ROM.

Again, this does not apply to Everyone, only Some people affected by Cyanogenmod 11 and 12 and ROMS based off them and as stated in this thread, some ROM devs have fixed the problem in their ROMS so this fix is no longer needed. But if you are affected, please read through the thread carefully, and apply the specific fix for your device.

Thanks everyone and have a great day.
[ONE Themes and Apps] cantenna:
I've got another question, what about using amplify to disable SystemUpdateService? Would that achieve the same effect?
[ONE Themes and Apps] sg3707:
The kitkat 7.3.29 version is not working anymore for me.

Earlier it was alright when it was 7.3.27. But now the drain issue has come back.

Should I to anything differently??
[ONE Themes and Apps] Gamer-king:
Although the apk is already modified is it recommended to follow guides like this?
[ONE Themes and Apps] XDAMaxe:
that's another topic but regarding batt life caused by g***'s syncing everything and everytime paranoia it's useful
[ONE Themes and Apps] Gamer-king:
So this is a yes or a no?
[ONE Themes and Apps] XDAMaxe:
that depends on your personal needs. If you only want to sync and give data to g**** manually (syncing cal or phone book or navigating and similar things) - in other words: if only you (and not g***) want to and in consequence reduce your batt drain - then it is a must imo.

If that (reduce auto sync and batt usage in general) is your target then you'll have to do much more - so a bit more xda-research is recommended (apps for that are i.e. Disable Service, My Android Tools, startup manager , autostarts, System Tuner Pro and so on depending on how deep you'll dive into 'androids secrets' ...)
[ONE Themes and Apps] Gamer-king:
I know how to do that. Thanks anyway.
[ONE Themes and Apps] manjake:
Same here. The 7.3.29 version is broken on kitkat
[ONE Themes and Apps] TheEndHK:
It's shame that I don't want to root my s6 to void the warranty and I can't flash it.
[ONE Themes and Apps] cantenna:
I voided warrenty within the first day of owning s4. Warranty is rubbish, if it works today, it will tomorrow unless damage is caused by physical damage and most warranty exclude physical damage. Give me a warranty that covers screen replacements, then I might actually give a damn! (Probably not though:)
[ONE Themes and Apps] jnraj:
updated my oneplus to CM-12.0-YNG1TAS17L, do I still need to flash the play service fix,

are you working on the framework fix for the latest version, thanks
[ONE Themes and Apps] Gamer-king:
I thought this version would give me better batterylife but got this results instead. Any ideas?
[ONE Themes and Apps] meccs:
Did you deny "keep awake" and "wake up" in settings->privacy? I still had to do that. 21k wake up attempts denied in 2 days.... this is ridiculous! Wtf is this app trying to do? Both revoking the rights in combination with this Mod here gave me so much more battery life it's insane. I have basically twice the battery time now with my N7 (2013).
[ONE Themes and Apps] bulletmark:
About 2 weeks ago Google+ developed a terrible bug where it would crash immediately on start. It was crashing constantly like this on both my (new) OPO running OxygenOS and my Nexus 5 running stock 5.1 so it was a pretty generic bug. I pressed the "report" button plenty of times on my phone and sent the crash data to Google. I also found a few others around the forums with the same issue. I suspect the bug got fixed after a few days in one of those later many silently updated google play service APK versions we have recently seen. The reason I am saying this is because just after that I also found my new OPO was using exceptional battery and Google play services was always at the top of the battery list. Many roads of research about this issue brought me to this thread. However I find after I install the modified version here for my phone v7.3.29(438) that the Google+ crash comes immediately back. The only way to get rid of the crash is to restore the stock Google v7.3.29(428) APK. Could it be that the version here is actually based on an older Google APK and so that fix is not present? Any other ideas?
[ONE Themes and Apps] mamdroid:
Thanks for the fix buddy, greatly appreciated:cowboy:
[ONE Themes and Apps] mino98:
Hi, today I've updated my Oneplus One to OTA yng1ta17l but, after wiping caches and restarting, I'm always getting this popup: "unfortunately the process com.google.process.gapps has stopped", if I close it it appears again and I can't use my device. So I'm trying to restore the original framework-res.apk, maybe it's that the cause (I had used the modded framework in the post). I've backuped it onto my PC, and decompiled, then modified the xml to the original version, but I can't compile it.

So who could please give me the original framework-res.apk file, please? :(

Thanks you in advance
[ONE Themes and Apps] lou2s:
I got this error too. Fixed it by going into settings, apps, google play service, uninstall update, then update with play store.

Need to get pass that error diagnose quite a few times though. I think a quicker way (after how I did it) was to flash this zip in OP in recovery after the ota update. The OTA wrongly put some old version 6.x into the system and caused that error.
[ONE Themes and Apps] mino98:
Hi, thanks for replying! But I've heard that wakelock has been fixed in this new OTA, so I would like to restore my original framework-apk.

Just went to Settings,Apps,Google play services, but uninstall updates is not there. The version that I have is "6.5.99 1642632-438", and it's just like if it downgrated during the update.

So what should I do?

Thanks :)
[ONE Themes and Apps] lou2s:
Try launching google map or youtube, it will request u to update the google play service
[ONE Themes and Apps] hp13:
This mod doesn't work on KitKat any longer. I hope google comes out with a fix asap. This is so annoying.
[ONE Themes and Apps] Lither:
I'm using OnePlus with CM 12.1 at 400DPI, so I should install v7.3.29(430)?
[ONE Themes and Apps] mino98:
the problem is that if I go to Play Store, I have : "authentication is required. you need to sign into your google account oneplus one".

edit: resolved manually downloading Google play services "virgin" apk, but just now I've noticed I've installed 440 version... while my OPO CPU architecture requires 438; if I try install it I have "application not installed".

What could I do?

---------- Post added at 08:50 PM ---------- Previous post was at 08:10 PM ----------

OK finally resolved! I used Link2sd to remove google play services 440, and then installed google play services 438-latest version: now it just works fine!
[ONE Themes and Apps] mrreed98:
Downloading

Is there a mirror or somewhere else to download this? When I click on the file it takes me to Amazon cloud and it's not allowing me to download. That option is grayed or something.
[ONE Themes and Apps] mino98:
On the right there is a square with a check mark inside it: click it and then select the file to download; finally download is no more grey.
[ONE Themes and Apps] mrreed98:
Thanks. It wasn't working at first, but finally it did.
[ONE Themes and Apps] thedoctor.gz:
Thank you very much. It works fine :)
[ONE Themes and Apps] Calkulin:
I double checked the zip to make sure I didn't accidently upload an unpatched version but are you still seeing the SystemUpdateService wakelock or what exactly?

This is not needed on the stock ROM, it's only needed on earlier builds of CM11 and CM12(and whatever other ROMs build from CM code)

That ROM is already patched by CM, so these modded versions are not needed

Need more info to be able to help, are you seeing a SystemUpdateService wakelock? Because this mod only fixes that and nothing else

I noticed if you just setup Google Now, you will get a tremendous amount of wake ups. The keep awake I have on cause google play services don't keep my device awake that much

I don't see why it would crash with the same version but I would first suggest you look to make sure that what's causing GPS to use your battery is what this thread fixes

That ROM didn't need the framework patched, so if you flashed the old framework that I posted, you will definitely have issues but if you need the stock framework, pull it from the stock ROM I posted
[ONE Themes and Apps] hawkerpaul:
No mate,I'm leaving it.

I've note noticed any untoward systemupdateservice wakelocks, so I will leave it alone.
[ONE Themes and Apps] sg3707:
Yes the issue is with system update service wakelock only. The latest fix for kitkat is not working anymore. Please find the screenshot attached.
[ONE Themes and Apps] cantenna:
thanks, based on your finding I would tend to agree but take a look at this screen shot from Apmplify the #of wakes appear to remain the same since flashing the fixing, can you tell me how many wake locks you have had reported in amplify? Wondering if you have a higher number because if you do then maybe this tweak is worth flashing on Dan's ROM.:confused:
[ONE Themes and Apps] Calkulin:
Do you have GMS apks in the data/app folder?
[ONE Themes and Apps] myweca:
Hello there!

A quick question:

Is there any way to uninstall this mod?

I am asking this because I am using Euphoria ROM, and the latest version has already the patch implemented.

And the problem is that the only way to dirty flash the latest version, is to install the zip with the modified GPS after the ROM's zip!

So, is there any uninstall method?
[ONE Themes and Apps] Prey521:
Here's something weird that I'm experiencing. I'm running Euphoria, and if I dirty flash an update, my phone will go into an eternal bootloop after it's done upgrading Android. It will upgrade all of my apps, attempt to boot to desktop and then reboot and go through the upgrade process all over again. The only way to stop that is to flash this MOD. If I do that, it goes through the upgrade process and boots right to the desktop with no problem. Anyone seen anything like this? Thanks
[ONE Themes and Apps] XDAMaxe:
1. download genuine gplay services for your device from here and rename it to gmscore.apk

2a. simply copy/paste this apk to the resp. folder/subfolder of your device (depending on if it is kk or lp) (existing file should be named gmscore.apk too) and reboot.

or

2b. simply replace the apk within calkulins.zip and flash via recovery

3. enjoy!
[ONE Themes and Apps] Lither:
Do I need this mod if I'm on the latst CM12.1 nightly?
[ONE Themes and Apps] sg3707:
Yes
[ONE Themes and Apps] Calkulin:
Delete it, reboot and the wakelock should go away.
[ONE Themes and Apps] Lasiu:
Newest version for 480dpi devices only makes my recovery restart during flash. All other zips work as intended so it seems there is something not right here :(
[ONE Themes and Apps] sg3707:
I am receiving Google play services error now. Thanks for taking time and responding. Really appreciate it.
[ONE Themes and Apps] topbasework:
[MENTION=1188493]Calkulin[/MENTION]

Im using note 2

I got gms outside of folder i create..

Should i delete?

Google play service appear again in BBS and wakelock detector
[ONE Themes and Apps] Calkulin:
Maybe a bad download, did you verify md5?

Try wiping data for that app and see

You need to, so create folders for -2 & -3 also and see if it comes back again
[ONE Themes and Apps] gargeya_369:
Lil Help here..?

[MENTION=1188493]Calkulin[/MENTION] I've heard that Google play services battery drain issue is fixed in new update.

I didn't apply your mod..

I'm attaching these screenshots.. Asking you weather this is a normal behavior or this is the wake-lock problem ?:confused:

Or should I use this mod ?

I'm on resurrection remix rom based on 5.1.1

Oneplus one...
[ONE Themes and Apps] Genericxx:
It might be placebo, but it feels like play services drain more battery if denied via app-ops. Can anyone confirm this? If I don't deny them, they indeed wake up, by they're not top of battery stats.
[ONE Themes and Apps] phatkid01:
I tried denying and to me it drained way faster, soi agree with you
[ONE Themes and Apps] nitramcek:
Tried this but still have problems with Google Apps. Google services still causing troubles. So I had to flash fixed Google services to get it working with no problem. But when Google will update Google services I'll probably have problems again. How to avoid it?

Flashing ROM again work to help.

Maybe flashing image in fastboot would help?
[ONE Themes and Apps] qwerty123321:
Do you have a flashable zip file for the fixed play service
[ONE Themes and Apps] nitramcek:
Yes, from this thread. And it's no problems with it. But I would like to have original one now that should be fixed. But I have problems with it.
[ONE Themes and Apps] Techimplant:
Hi everyone. I am not able to download the Modded Framework. Does anybody has the link to the file? Thanks
[ONE Themes and Apps] yetiweston:
I flashed this before and since then my battery life is draining very fast!

Screenshots enclosed, whatever is draining is showing as miscellaneous and this has only happened since flashing the zip file.

Any help?
[ONE Themes and Apps] Pfeffernuss:
Restore to previous setup and all is well :good:
[ONE Themes and Apps] Gamer-king:
Still get systemupdateservice wakelock. Should I disable or enable systemupdateservice with this version?
[ONE Themes and Apps] bini1998:
calkulin you have many thanks from me
[ONE Themes and Apps] TR2N:
Thank you calkulin for your work. But I don't understand, what I need exactly.. I'm on Nexus 6 with Purity. Do I need the patched Google Play Services apk or the framework?
[ONE Themes and Apps] MysticEagle21:
430 .zip file crashes TWRP

Device: Oneplus One

ROM: PA Alpha2

Recovery: Current TWRP

I'm wondering if someone can help me get this fix implemented. I downloaded the 430 zip file and when I try to flash it in TWRP it seems to start, but then the phone reboots back into recovery.

Alternatively, I'd like to implement the modded framework, but I don't really know how to do this. If someone can walk me through this in a bit more detail, I'd really appreciate it!
[ONE Themes and Apps] ocd_amp:
For those using GalaxyS2 I727 Model Phones

Edit: Sorry wrong post, too many windows open. I will post this in the correct forum, but leave this here so its upto the mods if they want to delete it, I will do so.

I have modded the Framework-Res for Cyanogenmod 11 KitKat and I am testing it now, if it goes well, I will Mod Carbon's Framework as well and pass it on to their Dev Team I will need a couple days of testing at most and if everything goes well, I will upload it and fix this issue once and for all for EVERYONE!

Thank you Calkulin!
[ONE Themes and Apps] LNJ:
Any update on the 440 arm64 build?
[ONE Themes and Apps] Techimplant:
Hi all.. I am running CM12s and have an issue of severe battery drain from "Android system". I have tried the Play services fix by Calkulin but it doesn't work on this.. Does anybody know a way to fix this?? Would a great help. Thanks
[ONE Themes and Apps] shcxatter2:
hey guys I just did something very stupid, I flashed the modded framework with the modded google play services already flashed (don't ask why :o ), and now I'm in a bootloop, any ideas on how to fix it without reflashing the whole rom I really don't want my data to be lost.

in case it's needed, no I'm not on cm12.1 or cm11, and yes I've tried clearing the cache.
[ONE Themes and Apps] smeroni68:
Wipe /system and flash rom and gapps... you do not loose your data.

Inviato dal mio GT-I9505 utilizzando Tapatalk
[ONE Themes and Apps] shcxatter2:
isn't that a dirty flash :confused:

---------- Post added at 06:19 PM ---------- Previous post was at 05:58 PM ----------

thank you very much m8, I would've probably wiped everything if it weren't you :D
[ONE Themes and Apps] smeroni68:
You're welcome.

This is not a dirty flash... because you reflashed the same version.

Cleaning /system is not dangerous... this is needed in case of unbootable rom due to wrong actions related to system files.

That's all.

Inviato dal mio GT-I9505 utilizzando Tapatalk
[ONE Themes and Apps] scout12:
(030) vs. (038)

I'm on OnePlus CM11 still, and GPS taking up a lot of battery. I noticed the fix in your first post ends (030), yet the GPS version on phone is 7.3.29 (038). I flashed the (030) regardless, but really no change in GPS consumption. I'm too stupid to know if there is a correlation between the numbers 030 and 038. Can I use and make these two work together? I understand that the GPS app will continue to update, but I just thought I could re-flash your fix when that happened, since I don't plan on being on the CM11 much longer....

Big thanks!
[ONE Themes and Apps] Krysdyan:
Force Close

I have problems with flashing this.

I have checked my installed version which is 438 so I flashed the fixed version 438 (also tried 430)

wipe chache and dalvik but after reboot I get force close of google play services all the time...

I don't know how to fix this...

The only thing that worked is to install the apk from apk mirror (also 438) so I have the non fixed version.

If it helps I'm on LG G2 D802 with Stock Lollipop, on which it should work too, right?
[ONE Themes and Apps] presetz:
When im flashed it, i just flash it and reboot, and the op said nothing about wipe at the first page, didnt he?

dunno, don't care
[ONE Themes and Apps] Kwbmm:
I tried flashing this but didn't solve the issue.. I'm on Carbon 4.4.4, any idea?
[ONE Themes and Apps] NAZUnlimited:
Edit the ROM framework but i'm not having much luck with that. I can mod other frameworks but carbons 4.4.x allways gives an error at recompiling. Anyone knows a good tool for modding p@in-in-the-@ss framework-res?
[ONE Themes and Apps] sol1dsn4ke:
Same situation .. :(
[ONE Themes and Apps] ocd_amp:
You should have a look at my posts.
[ONE Themes and Apps] NAZUnlimited:
I tested your setup before i posted. Doesnt give errors but all apps crash after boot. Logcat directs the errors to framework
[ONE Themes and Apps] kristiangmez:
I have the Note 4 ( qualcom version ) with 5.0.1 ... not sure if I should try this fix with the 430 or 438 ? does anyone know's ?
[ONE Themes and Apps] ocd_amp:
I do not understand what you mean by tested my Setup. My Framework mod is working perfectly for the latest version of Carbon 4.4.4 for D2LTE and D2CAN Galaxy S3 i747 - If your phone is different, then your ROM will be different, hence some of the values in the Framework "might" be different. I have made many other changes to this ROM and it is working fine. Have you tried Dirty Flashing the latest nightly on top of yours? Then flash my framework IF you are on the same ROM.

[ROM][AOSP][Nightly/Release] CarbonRom KitKat [d2att/d2cri/d2mtr/d2usc]

I have tested this on BOTH Rom running 72 hours now, without a hitch. Also, if you read the instructions I posted a few threads back, you will be able to mod your framework yourself, it is very easy.
[ONE Themes and Apps] Ejvyas:
Please check the screenshot below and please let me know which one to use. I didn't find any discussion related to 436

I am on cm12.1 on ghost
[ONE Themes and Apps] NAZUnlimited:
Sorry, lack of sleep that day. I meant i de/recompiled my way, other guys way and followed your Guide before posting and no luck. decompiling renames some folders like "drawable-holo-xhdpi" (existent in framework-res.apk) to "drawable-xhdpi-v8" (decompiled framework). If i leave it like that, Fw recompiles without errors but at testing, apps that need framework-res.apk, crash at opening. If i rename the folders back to the original name, Fw wont recompile.

Do you mind sharing your modified carbon framework-res.apk?
[ONE Themes and Apps] justeam:
Doesn't work on LG G2 Android 5.0.2

JFYI

Just tested the hack on the LG G2 and it doesn't work (on this fw: http://xdaforums.com/lg-g2/development-d802/rom-stock-30d-flashable-zip-t3070383).

If I replace the play services libs I'm getting continiuos errors like "process gapps has stopped", and with the modded framework I'm stuck at the bootlogo.
[ONE Themes and Apps] Pfeffernuss:
You used the OpO framework on an LG G2...?* That's not the way things work you know :rolleyes:

Flashing the correct zip would be a much preferred way of doing this mod (worked on my G3 flawlessly).

* unless you modded the framework yourself, in that case ignore this post ;)
[ONE Themes and Apps] justeam:
Shame on me, didn't notice it's an OpO post :mad:

Okay, but flashing the "Lollipop v7.3.29(438) - 480 DPI - armeabi-v7a" (it's exactly the same version as it is installed now) gives TONS of errors (can't start google play services, etc).
[ONE Themes and Apps] Pfeffernuss:
Used the 430 (all dpi) version here and that went just fine. Maybe try that one as well. If not: restore Nandroid and wait for another fix :good:
[ONE Themes and Apps] justeam:
Finally, I've decompiled the framework-res.apk, and ... there's no section in arrays.xml named config_disabledComponents! Just in case, I tried to find this string in other files, but there's no one. Does that mean that this firmware is not affected (as it's said in op)?
[ONE Themes and Apps] Ejvyas:
Help anyone ?
[ONE Themes and Apps] androizers:
Its just because there is not modded GMS for ur device. Better to use "Disable Service" app from Play Store and disable "SystemUpdaterService". You will b all fine then.
[ONE Themes and Apps] twiztid_:
I decided to mod my own Framework file (provided zip would bootloop my phone). I flashed it and everything went fine, but I still have the wakelock.

Under AuotStarts (F-Droid) I can fix my wakelock, but it returns after each reboot.

Receiver: com.google.android.gms.update.SystemUpdateService$SecretCodeReceiver

Anyone know of anything I can do to fix the problem more permanently?

Scratch that... I tried it again (flash, wipe cache, wipe dalvik), and this time it worked. Thanks a ton Calkulin, and ocd_amp!