diff --git a/apps/android/app/src/main/java/ai/openclaw/app/node/DebugHandler.kt b/apps/android/app/src/main/java/ai/openclaw/app/node/DebugHandler.kt index 283d898b4f3..8efa7180777 100644 --- a/apps/android/app/src/main/java/ai/openclaw/app/node/DebugHandler.kt +++ b/apps/android/app/src/main/java/ai/openclaw/app/node/DebugHandler.kt @@ -6,6 +6,8 @@ import ai.openclaw.app.gateway.DeviceIdentityStore import ai.openclaw.app.gateway.GatewaySession import kotlinx.serialization.json.JsonPrimitive +private const val LOGCAT_PATH = "/system/bin/logcat" + class DebugHandler( private val appContext: Context, private val identityStore: DeviceIdentityStore, @@ -80,7 +82,7 @@ class DebugHandler( val logResult = try { val tmpFile = java.io.File(appContext.cacheDir, "debug_logs.txt") if (tmpFile.exists()) tmpFile.delete() - val pb = ProcessBuilder("logcat", "-d", "-t", "200", "--pid=$pid") + val pb = ProcessBuilder(LOGCAT_PATH, "-d", "-t", "200", "--pid=$pid") pb.redirectOutput(tmpFile) pb.redirectErrorStream(true) val proc = pb.start()