Skip to content

Commit

Permalink
fix: Allow mounting without Magisk
Browse files Browse the repository at this point in the history
  • Loading branch information
Ushie committed Dec 31, 2023
1 parent 9ed43ef commit 3f96608
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/services/root_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f96608

Please sign in to comment.