Skip to content

Commit c05f882

Browse files
more checks for ksu
Signed-off-by: androidacy-user <opensource@androidacy.com>
1 parent 84bbf9f commit c05f882

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class InstallerInitializer {
168168
"/data/adb/ksud -V"
169169
).to(
170170
output
171-
).exec().isSuccess && "true" == output[0]
171+
).exec().isSuccess && "true" == output[0] && output[1].isNotEmpty() && !output[1].contains(
172+
"not found", true)
172173
) {
173174
if (MainApplication.forceDebugLogging) {
174175
Timber.i("Kernelsu detected")

0 commit comments

Comments
 (0)