[E 2015 Original Android Development] SylvieL:
I just updated from 13.0-20161122-NIGHTLY to 14.1-20161210-NIGHTLY on my Motorola Moto E 2015 LTE (surnia). Unfortunately, com.android.phone keeps crashing now, and I can't unlock my SIM card (it simply says "SIM PIN operation failed!").

There's a lot of logs, so it's hard to tell where the issue lies exactly, but this crash happens basically every second so it seems relevant:

12-10 19:15:14.869 4210 4210 E AndroidRuntime: FATAL EXCEPTION: main
12-10 19:15:14.869 4210 4210 E AndroidRuntime: Process: com.android.phone, PID: 4210
12-10 19:15:14.869 4210 4210 E AndroidRuntime: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) } in com.qualcomm.ims.vt.LowBatteryHandler$1
@17ba168
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1132)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6126)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: Caused by: java.lang.SecurityException: getImsPhoneId: Neither user 1001 nor current process has android.permission.READ_PHONE_STATE.
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at android.app.ContextImpl.enforce(ContextImpl.java:1585)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1617)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at android.content.ContextWrapper.enforceCallingOrSelfPermission(ContextWrapper.java:707)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at org.codeaurora.ims.QtiImsExt.onGetImsPhoneId(QtiImsExt.java:89)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at org.codeaurora.ims.QtiImsExtBase$QtiImsExtBinder.getImsPhoneId(QtiImsExtBase.java:97)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at org.codeaurora.ims.QtiImsExtManager.getImsPhoneId(QtiImsExtManager.java:167)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at org.codeaurora.ims.utils.QtiImsExtUtils.getImsPhoneId(QtiImsExtUtils.java:260)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at org.codeaurora.ims.utils.QtiImsExtUtils.getConfigForDefaultImsPhoneId(QtiImsExtUtils.java:229)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at org.codeaurora.ims.utils.QtiImsExtUtils.isCarrierConfigEnabled(QtiImsExtUtils.java:205)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at org.codeaurora.ims.utils.QtiImsExtUtils.allowVideoCallsInLowBattery(QtiImsExtUtils.java:216)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at com.qualcomm.ims.vt.LowBatteryHandler$1.onReceive(LowBatteryHandler.java:97)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1122)
12-10 19:15:14.869 4210 4210 E AndroidRuntime: ... 7 more
12-10 19:15:14.875 1169 2142 W ActivityManager: Process com.android.phone has crashed too many times: killing!
12-10 19:15:14.923 278 278 I ServiceManager: service 'sip' died
12-10 19:15:14.923 278 278 I ServiceManager: service 'simphonebook' died
12-10 19:15:14.923 278 278 I ServiceManager: service 'iphonesubinfo' died
12-10 19:15:14.923 278 278 I ServiceManager: service 'isms' died
12-10 19:15:14.923 278 278 I ServiceManager: service 'phone' died
12-10 19:15:14.923 278 278 I ServiceManager: service 'carrier_config' died
12-10 19:15:14.923 278 278 I ServiceManager: service 'ims' died
12-10 19:15:14.923 278 278 I ServiceManager: service 'qti.ims.ext' died
12-10 19:15:14.923 278 278 I ServiceManager: service 'isub' died
12-10 19:15:14.923 4337 4452 I ActivityThread: Removing dead content provider:android.content.ContentProviderProxy@35b0642
12-10 19:15:14.924 1169 1947 D ConnectivityService: unregisterNetworkFactory for PhoneSwitcherNetworkRequstListener
12-10 19:15:14.924 1169 1947 D ConnectivityService: unregisterNetworkFactory for TelephonyNetworkFactory[0]
12-10 19:15:14.926 1169 3094 I ActivityManager: Process com.android.phone (pid 4210) has died