E AndroidRuntime: FATAL EXCEPTION: main E AndroidRuntime: Process: com.gxa.service.btcall, PID: 16399 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.gxa.service.btcall.BtCallService: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean ts.car.bluetooth.sdk.phone.BluetoothPhoneBookManager.registerCallback(ts.car.bluetooth.sdk.phone.BluetoothPhoneBookManager$BluetoothPhoneBookCallBack)' on a null object reference E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:3582) E AndroidRuntime: at android.app.ActivityThread.access$1300(ActivityThread.java:200) E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1672) E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) E AndroidRuntime: at android.os.Looper.loop(Looper.java:193) E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6718) E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean ts.car.bluetooth.sdk.phone.BluetoothPhoneBookManager.registerCallback(ts.car.bluetooth.sdk.phone.BluetoothPhoneBookManager$BluetoothPhoneBookCallBack)' on a null object reference E AndroidRuntime: at com.gxa.service.btcall.model.adapter.BtPhoneAdapter.init(BtPhoneAdapter.java:282) E AndroidRuntime: at com.gxa.service.btcall.model.adapter.BtPhoneAdapter.<init>(BtPhoneAdapter.java:249) E AndroidRuntime: at com.gxa.service.btcall.BtCallService.onCreate(BtCallService.java:101) E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:3570) E AndroidRuntime: ... 8 more
2.2 直接搜索com.iflytek.autofly.avatar
1 2
Line 13098: 07-2818:10:06.08978217518 I am_kill : [0,28090,com.iflytek.autofly.avatar,200,stop com.iflytek.autofly.avatar] Line 13098: 07-2818:10:06.08978217518 I am_kill : [0,28090,com.iflytek.autofly.avatar,200,stop com.iflytek.autofly.avatar]
31863245 I procmonitor: @DeviceStorageMonitor@: MSG_CHECK_DATA_MEMORY 31863245 I procmonitor: @DeviceStorageMonitor@: requestCheckDataAvailableMemorySize 31863245 I procmonitor: @DeviceStorageMonitor@: checkDataAvailableMemorySize is 51687837696 check memorySize is 419430400 31863245 I procmonitor: @DeviceStorageMonitor@: MSG_DATA_MEMORY_MORE_400M
1 2 3 4 5
78215478 I ActivityManager: Force stopping com.iflytek.autofly.avatar appid=1000 user=0: from pid 3186 31863218 D procmonitor: @ActivityProcManager@: onProcessDied pid=2211 uid=1000 // 从这句话可以看出com.iflytek.autofly.avatar被杀了 31863246 D procmonitor: @ActivityProcManager@: runLimitLogic kill packagename = com.iflytek.autofly.avatar 31863246 D procmonitor: @ConfigManager@: getWhiteLists called() isInitFalg=true
真相即将浮现,查看procmonitor是哪个服务输出的。
1 2
jieou@gxatek-fw-no:/work/jieou/gxa_code/lagvm_p/LINUX/android/vendor/gxatek/proprietary$ grep -nr "procmonitor" CarProcManager/ProcManagementService/service/src/main/java/com/gxa/car/procmanagement/utils/LogUtils.java:27: privatestaticfinal String TAG = "procmonitor";
if (runningAppList != null) { for (ApplicationInfo info : runningAppList) { if (DEBUG) { LogUtils.logd(TAG, "runningAppList->" + info.processName); } if (info.packageName.contains("launcher")) { continue; }