You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Add new persistprop common function
This commit is contained in:
@@ -8,6 +8,14 @@ delprop_if_exist() {
|
||||
[ -n "$(resetprop "$NAME")" ] && resetprop --delete "$NAME"
|
||||
}
|
||||
|
||||
# persistprop <prop name> <value>
|
||||
persistprop() {
|
||||
local NAME="$1"
|
||||
local VALUE="$2"
|
||||
|
||||
resetprop -n -p "$NAME" "$VALUE"
|
||||
}
|
||||
|
||||
RESETPROP="resetprop -n"
|
||||
[ -f /data/adb/magisk/util_functions.sh ] && [ "$(grep MAGISK_VER_CODE /data/adb/magisk/util_functions.sh | cut -d= -f2)" -lt 27003 ] && RESETPROP=resetprop_hexpatch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user