diff --git a/post-fs-data.sh b/post-fs-data.sh index 404cd3b..deaff3e 100755 --- a/post-fs-data.sh +++ b/post-fs-data.sh @@ -5,8 +5,8 @@ set -eufo pipefail system_patch="$(getprop ro.build.version.security_patch)" vendor_patch="$(getprop ro.vendor.build.security_patch)" -# Fix mismatching security patch levels -if [[ "$system_patch" != "$vendor_patch" ]]; then +# Fix mismatching security patch levels if vendor patch is not empty +if [[ ! -z "$vendor_patch" ]] && [[ "$system_patch" != "$vendor_patch" ]]; then resetprop ro.build.version.security_patch "$vendor_patch" resetprop ro.build.version.real_security_patch "$system_patch" fi