mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +00:00
Double check $DATA_DE
This commit is contained in:
parent
503997a09a
commit
13a8820603
@ -519,6 +519,8 @@ check_data() {
|
|||||||
touch /data/.rw && rm /data/.rw && DATA=true
|
touch /data/.rw && rm /data/.rw && DATA=true
|
||||||
# Test if DE storage is writable
|
# Test if DE storage is writable
|
||||||
$DATA && [ -d /data/adb ] && touch /data/adb/.rw && rm /data/adb/.rw && DATA_DE=true
|
$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
|
fi
|
||||||
NVBASE=/data
|
NVBASE=/data
|
||||||
$DATA || NVBASE=/cache/data_adb
|
$DATA || NVBASE=/cache/data_adb
|
||||||
|
Loading…
Reference in New Issue
Block a user