diff --git a/app/src/main/res/raw/manager.sh b/app/src/main/res/raw/manager.sh index 2b3104abe06c..828a1b05c4d4 100644 --- a/app/src/main/res/raw/manager.sh +++ b/app/src/main/res/raw/manager.sh @@ -202,10 +202,11 @@ get_flags() { ISENCRYPTED=false [ "$(getprop ro.crypto.state)" = "encrypted" ] && ISENCRYPTED=true KEEPFORCEENCRYPT=$ISENCRYPTED - if [ -n "$(getprop ro.boot.vbmeta.device)" ]; then + VBMETAEXIST=false + if [ -n "$(getprop ro.boot.vbmeta.device)" -o -n "$(getprop ro.boot.vbmeta.size)" ]; then + VBMETAEXIST=true + elif getprop ro.product.ab_ota_partitions | grep -wq vbmeta; then VBMETAEXIST=true - else - VBMETAEXIST=false fi # Preset PATCHVBMETAFLAG to false in the non-root case PATCHVBMETAFLAG=false