[One (M9) Android Development] k0rner:
"mobile data" toggle issue

Hi, here's a small issue in the latest ROM:

when you press "Mobile Network" in the power button menu, soft restart is triggered because of system_server crash.

Logcat:

02-18 15:46:13.539 767 2147 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@d78a058 attribute=null, token = android.os.BinderProxy@8fc277c, cs=ClientState{78cc3d9 uid 2897 pid 2388}

02-18 15:46:13.541 767 800 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.ui

02-18 15:46:13.541 767 800 E AndroidRuntime: java.lang.NoSuchMethodError: No static method getDefaultDataSubId()I in class Landroid/telephony/SubscriptionManager; or its super classes (declaration of 'android.telephony.SubscriptionManager' appears in /system/framework/framework.jar:classes2.dex)

02-18 15:46:13.541 767 800 E AndroidRuntime: at com.android.server.policy.GlobalActions$APMItems$5.onToggle(GlobalActions.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at com.android.server.policy.GlobalActions$ToggleAction.onPress(GlobalActions.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at com.android.server.policy.GlobalActions.onClick(GlobalActions.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at com.android.server.policy.GlobalActionsCust$4.onItemClick(GlobalActionsCust.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at android.os.Looper.loop(Looper.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java)

02-18 15:46:13.541 767 800 E AndroidRuntime: at com.android.server.ServiceThread.run(ServiceThread.java)

02-18 15:46:13.541 767 800 E ActivityManager: App crashed! Process: system_server

02-18 15:46:13.544 767 800 D Process : killProcess, pid=767

02-18 15:46:13.544 767 800 D Process : com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException:-1 java.lang.ThreadGroup.uncaughtException:1068 java.lang.ThreadGroup.uncaughtException:1063

02-18 15:46:13.604 5978 5992 W Sensors : sensorservice died [0x7f833f78e0]

02-18 15:46:13.604 616 704 W AudFlgTh: power manager service died !!!

02-18 15:46:13.605 616 704 W AudFlgTh: power manager service died !!!

02-18 15:46:13.605 616 704 W AudFlgTh: power manager service died !!!

02-18 15:46:13.606 1520 1536 W Sensors : sensorservice died [0xdb5daa00]

02-18 15:46:13.609 1229 1229 E : eof

02-18 15:46:13.609 1229 1229 E : failed to read size

02-18 15:46:13.613 2005 2860 E WifiScanner: Channel connection lost

02-18 15:46:13.616 1563 1969 E ConnectivityMetricsLogger: Error logging event null

02-18 15:46:13.616 1176 1866 W Sensors : sensorservice died [0x7f83503080]

02-18 15:46:13.617 1563 1969 E AndroidRuntime: FATAL EXCEPTION: DcHandlerThread

02-18 15:46:13.617 1563 1969 E AndroidRuntime: Process: com.android.phone, PID: 1563

02-18 15:46:13.617 1563 1969 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause

02-18 15:46:13.619 1563 1969 D Process : killProcess, pid=1563

02-18 15:46:13.619 11532 11544 W Sensors : sensorservice died [0xc621c4c0]

02-18 15:46:13.619 1563 1969 D Process : com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException:-1 java.lang.ThreadGroup.uncaughtException:1068 java.lang.ThreadGroup.uncaughtException:1063

02-18 15:46:13.623 2005 2935 W Sensors : sensorservice died [0x7f835040c0]

02-18 15:46:13.623 914 1020 W Sensors : sensorservice died [0xec0a6440]

02-18 15:46:13.624 3211 3224 W Sensors : sensorservice died [0xdde8ce40]

02-18 15:46:13.626 2035 2047 W Sensors : sensorservice died [0x7f833f7fc0]

02-18 15:46:13.631 1166 1426 E PerMgrSrv: GPS registered for modem has died

02-18 15:46:13.631 1166 1426 D PerMgrSrv: modem num voters is 3

02-18 15:46:13.631 1166 1426 D PerMgrSrv: modem state: is on-line, remove client GPS

02-18 15:46:13.667 1099 2457 E JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)

02-18 15:46:13.667 1099 2457 E JavaBinder: DeadSystemException: The system died; earlier logs will point to the root cause

02-18 15:46:13.667 6267 6500 D BluetoothAdapter: STATE_OFF

02-18 15:46:13.733 1246 1321 I QCALOG : [MessageQueueClientInfo] client [IPCMessagingProxy-767] shutdown

02-18 15:46:13.733 614 614 E Zygote : Exit zygote because system server (767) has terminated

02-18 15:46:13.799 1230 7912 E OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything...

02-18 15:46:13.803 1169 1625 W AudioSystem: AudioFlinger server died!