mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: Allow mounting without Magisk
This commit is contained in:
parent
9ed43efe5d
commit
3f96608398
@ -144,8 +144,12 @@ class RootAPI {
|
||||
);
|
||||
final String mountScript = '''
|
||||
#!/system/bin/sh
|
||||
MAGISKTMP="\$(magisk --path)" || MAGISKTMP=/sbin
|
||||
MIRROR="\$MAGISKTMP/.magisk/mirror"
|
||||
# Mount using Magisk mirror, if available.
|
||||
MAGISKTMP="$( magisk --path )" || MAGISKTMP=/sbin
|
||||
MIRROR="${'$'}MAGISKTMP/.magisk/mirror"
|
||||
if [ ! -f ${'$'}MIRROR ]; then
|
||||
MIRROR=""
|
||||
fi
|
||||
|
||||
until [ "\$(getprop sys.boot_completed)" = 1 ]; do sleep 3; done
|
||||
until [ -d "/sdcard/Android" ]; do sleep 1; done
|
||||
|
Loading…
Reference in New Issue
Block a user