You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
- some apps were detecting tampered props from the increased prop_info serial counter using resetprop - patching doesn't rely on magiskboot hexpatch so should work on KernelSU and APatch as well - hopefully temporary until all root solutions adopt a patched system_properties repo to fix counters via resetprop
32 lines
782 B
Bash
32 lines
782 B
Bash
MODDIR="${0%/*}"
|
|
. "$MODDIR/common.sh"
|
|
|
|
# Remove Play Services from Magisk Denylist when set to enforcing
|
|
if magisk --denylist status; then
|
|
magisk --denylist rm com.google.android.gms
|
|
fi
|
|
|
|
# Remove conflicting modules if installed
|
|
if [ -d /data/adb/modules/safetynet-fix ]; then
|
|
touch /data/adb/modules/safetynet-fix/remove
|
|
fi
|
|
|
|
# Conditional early sensitive properties
|
|
|
|
# RootBeer, Microsoft
|
|
resetprop_if_diff ro.build.tags release-keys
|
|
|
|
# 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
|
|
|
|
# OnePlus
|
|
resetprop_if_diff ro.is_ever_orange 0
|
|
|
|
# Other
|
|
resetprop_if_diff ro.build.type user
|
|
resetprop_if_diff ro.debuggable 0
|
|
resetprop_if_diff ro.secure 1
|