How can I stop Google play from automatically updating to the latest version? I tried deleting my
hosts file but it's not being deleted. My phone is rooted.
In order to disable Google Play Store:
- You must have version 4.8.2 installed (just replace it in
/system/appwith the new
- Download a root service from the store called Disable service (again make sure root is installed and the app is given root permission).
- 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.
- Scroll to the bottom and uncheck Check Wi-Fi and Update service.
- You will see a Please wait notification, and at the bottom BusyBox should appear, notifying you that the app was given root access.
- 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).
First, you must have version 4.8.2 installed (just replace it in
/system/app with the new
Instructions (from here):
Root, install SuperSU.
Install BusyBox, then terminal emulator.
Stop any Internet access on your Android, or it will silently auto-update Store, making your hard typing work useless.
App managerand find Play Store. tap on it. It will open the properties window. There will be button Uninstall Updates. Tap on it, click
Replace with factory version?question.
Because there is no Internet connection, this is the moment the Play Store couldn't be updated. Let's use it.
Open terminal emulator and type commands one by one:
(at this time SuperSU app will ask you for granting root access for terminal emulator app, click
touch /data/app/com.android.vending-1.apk chattr +i /data/app/com.android.vending-1.apk
Enjoy! Regardless of Internet connection, Play Store now has the version you need, not Google. This might work for Play Store 4.8 and up, but I didn't test it.
A modified version of Stephen Schrauger's steps, based on the video here, since
chmod +i returned an error on my phone. Tested on Android ICS (Cyanogenmod 9, Play Store 3.*).
Assuming a rooted phone:
- Stop whatever Internet access on your Android or it will silently auto-update Play Store, making your hard typing work useless.
- Open Settings → App manager and find Play Store. Tap on it. Tt will open properties window.
- There will be button Uninstall Updates. Tap on it, click yes on "replace with factory version?" question.
Because there is no Internet connection, this is the moment the Play Store can't be updated. Let's use it.
Open Terminal Emulator and type the commands one by one:
At this time supersu app will ask you for granting root access for Terminal Emulator app, click grant access.
Instead of creating a file and preventing modification with permissions it just creates a directory, which can't be overwritten by the updater.
Now you can re-enable the internet connection and it will not update unless the directory is deleted.
The ultimate guide to stop Play Store auto-updates on Android 10 & Lucky Patcher. My device: Xiaomi S2, Android 10, EU ported MIUI 12.0.8.
This guide assumes you have a custom recovery & Magisk installed. If not, then do it first. We're gonna go in 4 step process:
First, go to Magisk manager & flash SELinux module. Follow the flashing instructions & set SELinux to permissive.
Uninstall the original Play Store: Go to
/data/app/com.android.vendingfolder (your device might have some random string name, so find the folder where Play Store is. It might be under the name
playstore.apk), delete the folder using SD Maid app.
[Note: I tried a bunch of other file managers like FX File Manager, Xplorer, Root Browser, but for some reason they did not work.]
Delete the basic version of the Play Store from the system that automatically reinstalls: Using SD Maid, go to
system/product/priv-app/Phonesky. This is the basic version, delete it.
[Note: If for some reason you are having trouble with steps 2 & 3, then go to your custom recovery mount system partition & follow these steps from the custom recovery.]
Now if you have a modded APK from Lucky Patcher, then place it in the
Phoneskyfolder. If not, then install the modded Play Store from Lucky Patcher app. Take a backup of the modded Play Store using any backup app. Then place it in the
Go to app manager from settings to see if it has been installed as a system app. If you can uninstall from settings, then do it. It will automatically reinstall the modded version.
[Note: If Play Store still auto-updates, then repeat the process & then set the permission of
- Flash SELinux Magisk module & set SELinux to Enforcing.
Play Store will never auto-update itself again & Lucky Patcher will start working on Android 10. This trick can also be extended to Android 9 & 11.
Some android apps depend on PlayStore and GooglePlayServices and therefore I would not advise to disable them. However, if the phone has ROOT (SuperSU or Magisk), it would be possible to mount system partition as Read/Write and modify the file /system/etc/hosts:
127.0.0.1 localhost 0.0.0.0 android.clients.google.com 0.0.0.0 android.googleapis.com 0.0.0.0 app-measurement.com 0.0.0.0 connectivitycheck.gstatic.com 0.0.0.0 dl.google.com 0.0.0.0 firebaseinstallations.googleapis.com 0.0.0.0 pagead2.googlesyndication.com 0.0.0.0 play.googleapis.com 0.0.0.0 play-fe.googleapis.com 0.0.0.0 play-lh.googleusercontent.com 0.0.0.0 r15---sn-n8v7kn7r.gvt1.com 0.0.0.0 r2---sn-n8v7knee.gvt1.com 0.0.0.0 r2---sn-n8v7znz7.gvt1.com 0.0.0.0 www.googleapis.com
This modification would prevent PlayStore from updating.
I found another approach to Google Play Store based on its dependency on built-in Download provider:
chmod 551 /data/data/com.android.providers.downloads/cache chmod 551 /data/data/com.android.providers.downloads/files
make it impossible to update both Store and other programs (including Google Play Services) in my Lolipop 5.0.1. When I need to update third-party programs, I run Store, then file manager (I use X-plore), change permissions of folders back to 771, install found updates, return to file manager and set permissions to 551 again, at the end I close the Store. Quite simple and very reliable - no background updates of the Store and Services for two months.