Fix fallback option for createRootShell() (#2593)

This commit is contained in:
Wang Han
2025-05-17 20:24:27 +08:00
committed by rifsxd
parent 8835c37536
commit a052af4180

View File

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