mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-02-23 06:38:49 +08:00
scripts: disable LeafOS gmscompat if found
This also properly cleans it up at uninstall. Some LineageOS based roms use this pif implementation.
This commit is contained in:
parent
79385b6f9d
commit
6c42fa08a9
@ -55,3 +55,12 @@ if [ -n "$(resetprop persist.sys.pixelprops.pi)" ]; then
|
|||||||
resetprop -n -p persist.sys.pixelprops.gapps false
|
resetprop -n -p persist.sys.pixelprops.gapps false
|
||||||
resetprop -n -p persist.sys.pixelprops.gms false
|
resetprop -n -p persist.sys.pixelprops.gms false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# LeafOS "gmscompat: Dynamically spoof props for GMS"
|
||||||
|
# https://review.leafos.org/c/LeafOS-Project/android_frameworks_base/+/4416
|
||||||
|
# https://review.leafos.org/c/LeafOS-Project/android_frameworks_base/+/4417/5
|
||||||
|
if [ -f /data/system/gms_certified_props.json ] && [ ! "$(resetprop persist.sys.spoof.gms)" = "false" ]; then
|
||||||
|
resetprop persist.sys.spoof.gms false
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
10
module/uninstall.sh
Normal file
10
module/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# LeafOS "gmscompat: Dynamically spoof props for GMS"
|
||||||
|
# https://review.leafos.org/c/LeafOS-Project/android_frameworks_base/+/4416
|
||||||
|
# https://review.leafos.org/c/LeafOS-Project/android_frameworks_base/+/4417/5
|
||||||
|
if [ -f /data/system/gms_certified_props.json ]; then
|
||||||
|
resetprop -p --delete persist.sys.spoof.gms
|
||||||
|
fi
|
||||||
|
|
||||||
|
# EOF
|
Loading…
Reference in New Issue
Block a user