mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 02:27:51 +00:00
manager.sh: check vbmeta device by getprop
This commit is contained in:
parent
8290358241
commit
40003691d6
@ -202,8 +202,7 @@ get_flags() {
|
||||
ISENCRYPTED=false
|
||||
[ "$(getprop ro.crypto.state)" = "encrypted" ] && ISENCRYPTED=true
|
||||
KEEPFORCEENCRYPT=$ISENCRYPTED
|
||||
# Although this most certainly won't work without root, keep it just in case
|
||||
if [ -e /dev/block/by-name/vbmeta_a ] || [ -e /dev/block/by-name/vbmeta ]; then
|
||||
if [ -n "$(getprop ro.boot.vbmeta.device)" ]; then
|
||||
VBMETAEXIST=true
|
||||
else
|
||||
VBMETAEXIST=false
|
||||
|
Loading…
x
Reference in New Issue
Block a user