mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 13:57:39 +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
|
ISENCRYPTED=false
|
||||||
[ "$(getprop ro.crypto.state)" = "encrypted" ] && ISENCRYPTED=true
|
[ "$(getprop ro.crypto.state)" = "encrypted" ] && ISENCRYPTED=true
|
||||||
KEEPFORCEENCRYPT=$ISENCRYPTED
|
KEEPFORCEENCRYPT=$ISENCRYPTED
|
||||||
# Although this most certainly won't work without root, keep it just in case
|
if [ -n "$(getprop ro.boot.vbmeta.device)" ]; then
|
||||||
if [ -e /dev/block/by-name/vbmeta_a ] || [ -e /dev/block/by-name/vbmeta ]; then
|
|
||||||
VBMETAEXIST=true
|
VBMETAEXIST=true
|
||||||
else
|
else
|
||||||
VBMETAEXIST=false
|
VBMETAEXIST=false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user