temp:增加打印ABI信息
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.nnbc123.app.application
|
package com.nnbc123.app.application
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
import android.os.Build
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -9,6 +10,10 @@ import android.util.Log
|
|||||||
**/
|
**/
|
||||||
object ExceptionHandler {
|
object ExceptionHandler {
|
||||||
fun init(context: Context) {
|
fun init(context: Context) {
|
||||||
|
Log.d("ExceptionHandler", "CPU_ABI:${Build.CPU_ABI}")
|
||||||
|
Log.d("ExceptionHandler", "CPU_ABI2:${Build.CPU_ABI2}")
|
||||||
|
Log.d("ExceptionHandler", "SUPPORTED_ABIS:${Build.SUPPORTED_ABIS.joinToString()}")
|
||||||
|
Log.d("ExceptionHandler", "os.arch:${System.getProperty("os.arch")}")
|
||||||
val defaultHandler = Thread.getDefaultUncaughtExceptionHandler()
|
val defaultHandler = Thread.getDefaultUncaughtExceptionHandler()
|
||||||
Thread.setDefaultUncaughtExceptionHandler { t, e ->
|
Thread.setDefaultUncaughtExceptionHandler { t, e ->
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
|
Reference in New Issue
Block a user