Skip to content

Commit

Permalink
manager.sh: add ro.boot.vbmeta.size + ro.product.ab_ota_partitions to…
Browse files Browse the repository at this point in the history
… vbmeta check

ro.boot.vbmeta.device doesn't seem to be in use on all A/B devices
  • Loading branch information
osm0sis authored Aug 28, 2023
1 parent eadb030 commit 474268a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/res/raw/manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 474268a

Please sign in to comment.