FORUMS
Remove All Ads from XDA

Delete, Disable, Downgrade and prevent update of Google Play Services [ROOT]

35 posts
Thanks Meter: 24
 
By ConnCarl, Member on 24th April 2015, 07:02 PM
Post Reply Email Thread
There are plenty of threads out there on this issue, but none of the fixes I found worked for me as-is, so I put this post together. Once I had everything I needed, the fix was easy, so I hope I can save someone else a few hours (or days) of banging their head against the wall.

This is a long post, so if you want, skip ahead to The Fix:...

Background:
About a week ago my Android devices started to go haywire. For example, two original Gen 2 Kindle Fires (running Amazon's heavily-reskinned version of ICS 4.0.3) started throwing "Unfortunately, Google Play Services has stopped" messages every few seconds, which required clicking on "OK" to continue.

At about the same time, the battery life on my OnePlus One (running stock CM 11.0 4.4.4 Kit Kat w/root) sank without a trace. I used to finish up the day with 50-60% remaining, and now I was at 15-18%. The culprit was Google Play Services, which went from "hey, I never noticed THAT before" to "holy smoke, it's sucking up more juice than the screen".

This is the part where I thought, "Okay, I'll roll back the googleplayservices apk, restore the status quo, and eventually King Google will roll out a fix". Easy peasey. Except not!

I started with the Kindles. First I verified that Automatic Updates were disabled in Google Play, then I opened Settings/Apps/Google Play Services and hit "Uninstall Updates". Verified that the installed version was the original, rebooted, everything worked as it should. No more errors. Simple, right?

About an hour later, I picked up one of the Fires and got the error again. Long story short, I realized that Google silently updates Google Play Services (along with a few other GAPPS) regardless of your auto-update setting. I tried disabling the app, but the button was grayed out. Since these were Kindles and not phones, I just uninstalled Google Play Services. I'm not recommending anyone do that, but it was a down-and-dirty resolution, and easily reversible.

I turned my attention to the OnePlus One, and that's where things got really ugly. I did a web search about the Google Play Services battery life issue, and found it to be a huge problem for many users. At that point, the solution seemed to be manage GPS through App Opps, or an aftermarket progam, to keep it's activity under control. But no matter how I tweaked it using App Ops, DisableService or MyAndroidTools (the last two are excellent free aps by WangQi, available on Play Store) I wound up with poor battery life, plus I started getting the "Unfortunately, Google Play Services has stopped" error, although not as frequently as on the Kindles. I couldn't disable or force stop GPS, but I could click "Uninstall Updates".

But then I got "can't uninstall because this package is an active device administrator". No problem, I thought, I'll just remove GPS as a device administrator. Turns out, it was a hidden device administrator. And Google had hidden it so hard, I couldn't view it even with an app created just to view hidden device admins.

The Fix:
DISCLAIMER: This worked for me, with my OPO running stock, rooted CM11 KitKat 4.4.4. I'm not responsible for bricking your device! Backups strongly suggested.

1. Download and install System App Remover from the Google Play Store.

2. Put your device in Airplane Mode in order to prevent auto upgrade of GPS.

3. Open System App Remover and select "System App" from the menu.

4. Find Google Play Services in the list. It should be marked "Should keep", which is a suggestion from the publisher. Select it and presss "Uninstall". Ignore completion message.

5. Using Settings/Apps, verify that Google Play Services has reverted to the factory-supplied version. It should be <7. "Force Stop", "Uninstall Updates", and "Disable" buttons should no longer be grayed out.

6. Using a root-enabled file manager like ES File Explorer, open \data\app and create two new, empty folders titled com.google.android.gms-1.apk and com.google.android.gms-2.apk. This tricks Google into causing auto updating of your GPS to fail.

7. Reboot device and toggle Airplane Mode off.

At this point, if your GAPPS are all working to your satisfaction, you can stop. Just bear in mind that if you upgrade your GAPPS in the future, they may crash or (more likely) refuse to run because they require a more up-to-date GPS app. Everything worked fine for me, but I decided to bump my GPS version to something closer to 7 as a hedge against planned Google obsolescence.

If you decide to update to something newer than the factory GPS app, note that you need to get an APK compatible with your device. There's an excellent explanation of this on the apkmirror.com site, but unfortunately I can't post the link here. Just Google "apkmirror googleplayservices apk device".

I decided to bump up my GPS to 6.5.87. To upgrade to anything older than the current, poisoned version of GPS, you'll need to do the following:

1. Perform your own research and decide which version of GPS you think will be best for your combination of device and apps. Don't worry about getting it right the first time, you won't be locked down anymore and can upgrade/downgrade GPS easily.

2. Download the appropriate APK from apkmirror.com or the site of your choice.

3. Put your device in Airplane Mode.

4. Open your file manager app, navigate to \data\apps and rename the two dummy folders you created earlier by adding "XX" in front of the name so that they no longer serve their intended purpose.

5. Install the APK you downloaded earlier.

6. Using Settings/Apps, verify that Google Play Services has been upgraded to the version you selected.

7. Open your file manager and rename the two dummy directories, removing the "XX" you added earlier.

8. Reboot device and toggle Airplane Mode off.

9. Enjoy your newly un-shackled Android device!

For what it's worth, my phone had been working perfectly for about 24 hours since this process. I did attempt to update my GMail app to the current version, 5.1.9, which failed because it requires a newer version of GPS. I updated to GMail 5.0.1 instead, which seems to be a good compromise. So there may be some minor tweaking of your GAPPS required, in terms of finding versions that work well for you.

If you have an old phone with limited resources, this should work out really well, because the older versions of GPS take up more less space, and they don't require nearly as much CPU time or data.

Hope this helps. Please share your experiences via replies!
The Following 23 Users Say Thank You to ConnCarl For This Useful Post: [ View ] Gift ConnCarl Ad-Free
 
 
26th April 2015, 01:30 AM |#2  
doctor-who's Avatar
Senior Member
Flag Bogatic
Thanks Meter: 80
 
Donate to Me
More
This saved me alot of stress! Thank you dude


Sent from my GT-S5360 using Tapatalk 2
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1430008238412.jpg
Views:	6252
Size:	22.6 KB
ID:	3281910   Click image for larger version

Name:	uploadfromtaptalk1430008251868.jpg
Views:	6146
Size:	22.3 KB
ID:	3281911  
26th April 2015, 01:47 AM |#3  
doctor-who's Avatar
Senior Member
Flag Bogatic
Thanks Meter: 80
 
Donate to Me
More
Damn it! Still updating

Sent from my GT-S5360 using Tapatalk 2
26th April 2015, 02:02 AM |#4  
doctor-who's Avatar
Senior Member
Flag Bogatic
Thanks Meter: 80
 
Donate to Me
More
It's not updated but file is downloaded and stays in cache/download/ don't know will stay there after reboot.. I don't think so. If every time will download that update that will drain my battery and net


Sent from my GT-S5360 using Tapatalk 2
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1430010103331.jpg
Views:	1562
Size:	18.1 KB
ID:	3281937  
26th April 2015, 10:42 PM |#5  
OP Member
New Haven
Thanks Meter: 24
 
More
Interesting. I don't have a cache\download folder on my OPO, but I have seen automatically downloaded files, like CM patches, in the root of \cache. The same file has been sitting in there for a while. It definitely survives reboots. I don't imagine that it'll go away unless I clear the cache.

The easiest way to verify is to keep an eye on your battery consumption to see how it goes, but in my case, it's much better than it was with the 7-series GPS.

Quote:
Originally Posted by doctor-who

It's not updated but file is downloaded and stays in cache/download/ don't know will stay there after reboot.. I don't think so. If every time will download that update that will drain my battery and net


Sent from my GT-S5360 using Tapatalk 2

27th April 2015, 09:56 AM |#6  
doctor-who's Avatar
Senior Member
Flag Bogatic
Thanks Meter: 80
 
Donate to Me
More
Quote:
Originally Posted by ConnCarl

Interesting. I don't have a cache\download folder on my OPO, but I have seen automatically downloaded files, like CM patches, in the root of \cache. The same file has been sitting in there for a while. It definitely survives reboots. I don't imagine that it'll go away unless I clear the cache.

The easiest way to verify is to keep an eye on your battery consumption to see how it goes, but in my case, it's much better than it was with the 7-series GPS.

In my case downloading often but i'm safe till reboot phone. After that downloading starts again but anyway good thing is gps is not updated

Sent from my GT-S5360 using Tapatalk 2

---------- Post added at 10:56 AM ---------- Previous post was at 10:47 AM ----------

Let's try this
1. First, you must have version 4.8.2 installed (just replace it in /system/app with the new com.android.vending.apk)
2. Download a root service from the store called "Disable service" (again make sure root is installed and the app is given root permission)
3. Now, in the disable service app, navigate to the system app tab and find Google play store. Tap on it and you will get a list of services
4. Scroll to the bottom and uncheck "check Wifi And Update" service.
5. You will see a "please wait" notification, and at the bottom busybox should appear, notifying you that the app was given root access
6. Exit the app and voila! Google play store will never update itself or Google play services ever again (unless you install a new version, in which case you would need to repeat the process)

Sent from my GT-S5360 using Tapatalk 2

Doesn't works still is downloading....
27th April 2015, 10:26 AM |#7  
doctor-who's Avatar
Senior Member
Flag Bogatic
Thanks Meter: 80
 
Donate to Me
More
Sent from my GT-S5360 using Tapatalk 2
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1430126761020.jpg
Views:	1738
Size:	21.7 KB
ID:	3284271  
27th April 2015, 10:59 AM |#8  
doctor-who's Avatar
Senior Member
Flag Bogatic
Thanks Meter: 80
 
Donate to Me
More
The only solution I found is to freeze google play store... unfreeze it only when need it. Gps won't download itself without market


Sent from my GT-S5360 using Tapatalk 2
Again downloading...
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1430128752833.jpg
Views:	1224
Size:	24.8 KB
ID:	3284309  
30th August 2015, 06:03 PM |#9  
Member
Thanks Meter: 6
 
More
How to disable Google Play Store from updating itself using "disable service" app
1st September 2015, 11:03 AM |#10  
doctor-who's Avatar
Senior Member
Flag Bogatic
Thanks Meter: 80
 
Donate to Me
More
Quote:
Originally Posted by Swierk

How to disable Google Play Store from updating itself using "disable service" app

you cant against google corp, just let it update
1st September 2015, 11:16 AM |#11  
Member
Thanks Meter: 6
 
More
There is no way to Block New Play Store 5.8.8 from self update on rooted lolipop??? Can't belive that... What about moded Play Store???

Wysłane z mojego D6603 przy użyciu Tapatalka
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes