Fix fallback option for createRootShell() (#2593)

This commit is contained in:
Wang Han
2025-05-17 20:24:27 +08:00
committed by ShirkNeko
parent 8e791c680e
commit a76b1eece4

View File

@@ -76,9 +76,9 @@ fun createRootShell(globalMnt: Boolean = false): Shell {
Log.w(TAG, "ksu failed: ", e) Log.w(TAG, "ksu failed: ", e)
try { try {
if (globalMnt) { if (globalMnt) {
builder.build("su")
} else {
builder.build("su", "-mm") builder.build("su", "-mm")
} else {
builder.build("su")
} }
} catch (e: Throwable) { } catch (e: Throwable) {
Log.e(TAG, "su failed: ", e) Log.e(TAG, "su failed: ", e)