Skip to content

Commit 7adc736

Browse files
few final fixes for 2.2.3
Signed-off-by: androidacy-user <[email protected]>
1 parent 386a58c commit 7adc736

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

app/src/main/kotlin/com/fox2code/mmm/installer/InstallerActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

app/src/main/kotlin/com/fox2code/mmm/installer/InstallerInitializer.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)