You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
- do scripts-only mode automatically on Android < 8.0 since it doesn't support Zygisk and generally doesn't need a PIF module to pass at all - clean up all unused files in scripts-only mode, and modify script behaviors for it, including allowing GMS on DenyList, and even add it if missing since it's necessary on some scripts-only configurations - allow manually entering scripts-only mode by deleting the zygisk directory of the currently installed module and reinstalling - intentionally don't alter the Enforce DenyList state, since we don't know what other modules are installed that might depend on it one way or the other, so leave that up to the user
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
MODPATH="${0%/*}"
|
|
. $MODPATH/common_func.sh
|
|
|
|
if [ -d "$MODPATH/zygisk" ]; then
|
|
# Remove Play Services from Magisk DenyList when set to Enforce in normal mode
|
|
if magisk --denylist status; then
|
|
magisk --denylist rm com.google.android.gms
|
|
fi
|
|
# Run common tasks for installation and boot-time
|
|
. $MODPATH/common_setup.sh
|
|
else
|
|
# Add Play Services DroidGuard process to Magisk DenyList for better results in scripts-only mode
|
|
magisk --denylist add com.google.android.gms com.google.android.gms.unstable
|
|
fi
|
|
|
|
# Conditional early sensitive properties
|
|
|
|
# Samsung
|
|
resetprop_if_diff ro.boot.warranty_bit 0
|
|
resetprop_if_diff ro.vendor.boot.warranty_bit 0
|
|
resetprop_if_diff ro.vendor.warranty_bit 0
|
|
resetprop_if_diff ro.warranty_bit 0
|
|
|
|
# Xiaomi
|
|
resetprop_if_diff ro.secureboot.lockstate locked
|
|
|
|
# Realme
|
|
resetprop_if_diff ro.boot.realmebootstate green
|
|
|
|
# OnePlus
|
|
resetprop_if_diff ro.is_ever_orange 0
|
|
|
|
# Microsoft
|
|
resetprop_if_diff ro.build.tags release-keys
|
|
|
|
# Other
|
|
resetprop_if_diff ro.build.type user
|
|
resetprop_if_diff ro.debuggable 0
|
|
resetprop_if_diff ro.secure 1
|