fix: root shell prompt for scripts

This commit is contained in:
zaneschepke
2026-06-05 01:45:11 -04:00
parent 5408cf3954
commit 26ecfec3fc
@@ -12,9 +12,10 @@ object RootShell {
fun requestRootPermission(): Boolean {
return try {
val result = Shell.cmd("true").exec()
result.isSuccess
val shell = Shell.cmd("su").exec()
shell.isSuccess
} catch (e: Exception) {
Timber.e(e, "Root permission request failed or timed out")
false
}
}