From 913118ac600a6049c9c844e9b900412107ea077a Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Sun, 2 Feb 2025 12:49:20 +0800 Subject: [PATCH] handle vendor patch set `ro.vendor.build.security_patch` same with `ro.build.version.security_patch` --- module/service.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/service.sh b/module/service.sh index 01b4354..578f1da 100644 --- a/module/service.sh +++ b/module/service.sh @@ -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"