mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-22 08:42:38 +00:00
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
|
@JvmStatic
|
||||||
fun writeLogcatCrashBuffer(path: String): Boolean {
|
fun writeLogcatCrashBuffer(path: String): Boolean {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user