mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-11 16:03:37 +00:00
manager.sh: add ro.boot.vbmeta.size + ro.product.ab_ota_partitions to vbmeta check
ro.boot.vbmeta.device doesn't seem to be in use on all A/B devices
This commit is contained in:
parent
eadb0307fa
commit
474268a0af
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user