mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-02-23 14:48:50 +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
0e52fb5e71
commit
17aa9a0035
@ -53,3 +53,11 @@ if [ -n "$(resetprop persist.sys.pixelprops.pi)" ]; then
|
||||
resetprop -n -p persist.sys.pixelprops.gapps false
|
||||
resetprop -n -p persist.sys.pixelprops.gms false
|
||||
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