Commit 13a88206 authored by vvb2060's avatar vvb2060 Committed by topjohnwu

Double check $DATA_DE

parent 503997a0
......@@ -519,6 +519,8 @@ check_data() {
touch /data/.rw && rm /data/.rw && DATA=true
# Test if DE storage is writable
$DATA && [ -d /data/adb ] && touch /data/adb/.rw && rm /data/adb/.rw && DATA_DE=true
# Some recovery have broken FDE implementations, which cannot access existing folders
$DATA_DE && [ -d /data/adb/magisk ] || mkdir /data/adb/magisk || DATA_DE=false
fi
NVBASE=/data
$DATA || NVBASE=/cache/data_adb
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment