mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-16 08:41:25 +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
|
ISENCRYPTED=false
|
||||||
[ "$(getprop ro.crypto.state)" = "encrypted" ] && ISENCRYPTED=true
|
[ "$(getprop ro.crypto.state)" = "encrypted" ] && ISENCRYPTED=true
|
||||||
KEEPFORCEENCRYPT=$ISENCRYPTED
|
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
|
VBMETAEXIST=true
|
||||||
else
|
|
||||||
VBMETAEXIST=false
|
|
||||||
fi
|
fi
|
||||||
# Preset PATCHVBMETAFLAG to false in the non-root case
|
# Preset PATCHVBMETAFLAG to false in the non-root case
|
||||||
PATCHVBMETAFLAG=false
|
PATCHVBMETAFLAG=false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user