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
handle vendor patch
set `ro.vendor.build.security_patch` same with `ro.build.version.security_patch`
This commit is contained in:
@@ -12,6 +12,14 @@ if [ -n "$hash_value" ]; then
|
||||
resetprop -n ro.boot.vbmeta.digest "$hash_value"
|
||||
fi
|
||||
|
||||
# Reset vendor patch if different with security patch
|
||||
security_patch=$(getprop ro.build.version.security_patch)
|
||||
vendor_patch=$(getprop ro.vendor.build.security_patch)
|
||||
|
||||
if [ "$vendor_patch" != "$security_patch" ]; then
|
||||
resetprop ro.vendor.build.security_patch "$security_patch"
|
||||
fi
|
||||
|
||||
# Disable TSupport-A auto update target to prevent overwrite
|
||||
if [ -d "$TSPA" ]; then
|
||||
touch "/storage/emulated/0/stop-tspa-auto-target"
|
||||
|
||||
Reference in New Issue
Block a user