forked from geode-sdk/android-launcher
add clear crash buffer
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user