diff --git a/app/core/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt b/app/core/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt index b674cbf78..ae6118c1b 100644 --- a/app/core/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt +++ b/app/core/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt @@ -202,7 +202,7 @@ abstract class MagiskInstallImpl protected constructor( // adapted /scripts/flash_script.sh addon.d return arrayOf( - "mount -o rw,remount $systemPartition", + "su -c mount -o rw,remount $systemPartition", "rm -rf $addond/99-magisk.sh 2>/dev/null", "rm -rf $addond/magisk 2>/dev/null", "mkdir -p $addond/magisk",