add clear crash buffer

This commit is contained in:
altalk23 committed 2023-10-15 16:49:11 +03:00
1 parent 92228933b0
commit 6c651636e0
1 file changed
+13
@@ -70,6 +70,19 @@ object GeodeUtils {
}
}
@JvmStatic
fun clearLogcatCrashBuffer(path: String): Boolean {
try {
val logcatProcess = Runtime.getRuntime().exec("logcat -c -b crash")
return true
}
catch (e: Exception) {
Log.e("Geode", "Failed to clear logcat crash buffer", e)
return false
}
}
@JvmStatic
fun writeLogcatCrashBuffer(path: String): Boolean {
try {