File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
app/src/main/kotlin/com/fox2code/mmm/installer Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ class InstallerActivity : FoxActivity() {
380380 }
381381 installerMonitor = InstallerMonitor (installScript)
382382 installJob = Shell .cmd(
383- " export ASH_STANDALONE=1" ,
383+ " export ASH_STANDALONE=1 exec /data/adb/magisk/busybox ash " ,
384384 " export MMM_EXT_SUPPORT=1" ,
385385 " export MMM_USER_LANGUAGE=" + this .resources.configuration.locales[0 ].toLanguageTag(),
386386 " export MMM_APP_VERSION=" + BuildConfig .VERSION_NAME ,
Original file line number Diff line number Diff line change @@ -154,11 +154,9 @@ class InstallerInitializer {
154154 Companion .mgskVerCode = mgskVerCode
155155 return mgskPth
156156 } catch (ignored: Exception ) {
157- // TODO: REMOVE THIS
158- throw IllegalStateException (ignored)
159- /* return if (tries <= 10) {
157+ // work around edge case
158+ return if (tries <= 10 ) {
160159 tries++
161- // sleep tries * 25ms
162160 try {
163161 Thread .sleep(tries * 50L )
164162 } catch (e: InterruptedException ) {
@@ -167,7 +165,7 @@ class InstallerInitializer {
167165 tryGetMagiskPath(true )
168166 } else {
169167 null
170- }*/
168+ }
171169 }
172170 }
173171 }
You can’t perform that action at this time.
0 commit comments