You've already forked Zygisk-Assistant
mirror of
https://github.com/snake-4/Zygisk-Assistant.git
synced 2025-09-06 06:37:02 +00:00
Please see https://github.com/osm0sis/PlayIntegrityFork/tree/main/module and https://github.com/Displax/safetynet-fix/tree/dev/magisk for full commit history and attribution/authorship
33 lines
757 B
Bash
33 lines
757 B
Bash
MODPATH="${0%/*}"
|
|
. $MODPATH/common_func.sh
|
|
|
|
# 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
|
|
for PROP in $(resetprop | grep -oE 'ro.*.build.tags'); do
|
|
resetprop_if_diff $PROP release-keys
|
|
done
|
|
|
|
# Other
|
|
for PROP in $(resetprop | grep -oE 'ro.*.build.type'); do
|
|
resetprop_if_diff $PROP user
|
|
done
|
|
resetprop_if_diff ro.debuggable 0
|
|
resetprop_if_diff ro.force.debuggable 0
|
|
resetprop_if_diff ro.secure 1
|