You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
change ro.boot.vbmeta.digest logic
migrate from system.prop to reset prop due system.prop not working on some device
This commit is contained in:
@@ -2,6 +2,11 @@ MODDIR=${0%/*}
|
||||
COMPATH="$MODDIR/common"
|
||||
TS="/data/adb/modules/tricky_store"
|
||||
|
||||
hash_value=$(grep -v '^#' "$MODDIR/boot_hash" | tr -d '[:space:]')
|
||||
if [ -n "$hash_value" ]; then
|
||||
resetprop -n ro.boot.vbmeta.digest "$hash_value"
|
||||
fi
|
||||
|
||||
if [ ! -f "$COMPATH/ninstalled" ] || [ ! -f "$COMPATH/disabled" ] || [ ! -f "$COMPATH/normal" ]; then
|
||||
sed -i 's/^description=.*/description=Module is corrupted, please reinstall module./' "$MODDIR/module.prop"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user