Exception Class: Java (JE)
Exception Type: system_server_crash
Current Executing Process:
system_server
Backtrace:
Process: system_server
Build: alps/MTK/MTK:6.0/MRA58K/MTK-M-170110V194:user/release-keys
java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.PACKAGE_RESTARTED dat=package:com.google.android.googlequicksearchbox flg=0x10 (has extras) } in com.android.server.voiceinteraction.VoiceInteractionManagerService$VoiceInteractionManagerServiceStub$1@25f0472
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:932)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:207)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.IllegalArgumentException: Service not registered: com.android.server.voiceinteraction.VoiceInteractionSessionConnection@cbe805
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1085)
at android.app.ContextImpl.unbindService(ContextImpl.java:1342)
at com.android.server.voiceinteraction.VoiceInteractionSessionConnection.cancelLocked(VoiceInteractionSessionConnection.java:438)
at com.android.server.voiceinteraction.VoiceInteractionManagerServiceImpl.shutdownLocked(VoiceInteractionManagerServiceImpl.java:303)
at com.android.server.voiceinteraction.VoiceInteractionManagerService$VoiceInteractionManagerServiceStub$1.onHandleForceStop(VoiceInteractionManagerService.java:987)
at com.android.internal.content.PackageMonitor.onReceive(PackageMonitor.java:367)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:922)
... 4 more
根据报错信息,解决方案:
frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction
/VoiceInteractionSessionConnection.java
- mContext.unbindService(this);
+ //modify start
+ try {
+ mContext.unbindService(this);
+ }catch (Exception e) {
+ Slog.w(TAG, "Failed unbindService", e);
+ }
+ //modify end