mirror of
https://github.com/topjohnwu/Magisk
synced 2025-09-01 13:19:49 +00:00
Update device state detection
This commit is contained in:
@@ -364,10 +364,11 @@ get_flags() {
|
||||
fi
|
||||
fi
|
||||
if [ -z $KEEPFORCEENCRYPT ]; then
|
||||
grep ' /data ' /proc/mounts | grep -q 'dm-' && FDE=true || FDE=false
|
||||
[ -d /data/unencrypted ] && FBE=true || FBE=false
|
||||
ISENCRYPTED=false
|
||||
grep ' /data ' /proc/mounts | grep -q 'dm-' && ISENCRYPTED=true
|
||||
[ -d /data/unencrypted ] && ISENCRYPTED=true
|
||||
# No data access means unable to decrypt in recovery
|
||||
if $FDE || $FBE || ! $DATA; then
|
||||
if $ISENCRYPTED || ! $DATA; then
|
||||
KEEPFORCEENCRYPT=true
|
||||
ui_print "- Encrypted data, keep forceencrypt"
|
||||
else
|
||||
|
Reference in New Issue
Block a user