revanced-cli icon indicating copy to clipboard operation
revanced-cli copied to clipboard

Turn off updates in Play Store using Magisk script

Open kakathic opened this issue 3 years ago • 4 comments

PK=com.google.android.youtube
PS=com.android.vending

LDB=/data/data/$PS/databases/library.db
LADB=/data/data/$PS/databases/localappstate.db 

cmd appops set --uid $PS GET_USAGE_STATS ignore pm disable $PS > /dev/null 2>&1 
./sqlite3 $LDB "UPDATE ownership SET doc_type = '25' WHERE doc_id = '$PK'"; 
./sqlite3 $LADB "UPDATE appstate SET auto_update = '2' WHERE package_name = '$PK'"; 

rm -rf /data/data/$PS/cache/* pm enable $PS > /dev/null 2>&1

Try the above code and you will be surprised when it will disappear the YouTube update button, I got these codes from the magisk module of: JumbomanXDA

Do this code every reboot, and just install the app it will no longer have the YouTube update button.

kakathic avatar Jun 19 '22 01:06 kakathic

We do not have a sqlite3 binary

oSumAtrIX avatar Jun 19 '22 01:06 oSumAtrIX

We do not have a sqlite3 binary

I will look for the link

kakathic avatar Jun 19 '22 01:06 kakathic

We do not have a sqlite3 binary

https://github.com/EXALAB/sqlite3-android/tree/master/binary

kakathic avatar Jun 19 '22 01:06 kakathic

https://modules.lsposed.org/module/ru.mike.updatelocker

https://github.com/Dr-TSNG/Hide-My-Applist/

LSPosed(Xposed) modules are much easier solutions.

AnyoeDove avatar Jun 20 '22 15:06 AnyoeDove

This is out of scope for the CLI.

oSumAtrIX avatar Nov 23 '22 21:11 oSumAtrIX