Update encryption detection for determining default flags

This commit is contained in:
topjohnwu
2018-10-20 17:10:35 -04:00
parent 41b01003fd
commit d7d80d3fc1
2 changed files with 6 additions and 4 deletions

View File

@ -47,6 +47,7 @@ mount_partitions
find_boot_image
find_dtbo_image
check_data
get_flags
[ -z $BOOTIMAGE ] && abort "! Unable to detect target image"
@ -72,8 +73,6 @@ remove_system_su
ui_print "- Constructing environment"
check_data
if $DATA; then
MAGISKBIN=/data/magisk
$DATA_DE && MAGISKBIN=/data/adb/magisk