[Moto G Android Development] mutterkal:
Various crashes

I installed the 20150507 version a couple of days ago, thanks for the rom! I haven't updated to the new versione yet.

That being said I've found some bugs:

1) When opening Settings and then Security Settings crashes, this is the relevant logcat:

D/AndroidRuntime(19798): Shutting down VM
E/AndroidRuntime(19798): FATAL EXCEPTION: main
E/AndroidRuntime(19798): Process: com.android.settings, PID: 19798
E/AndroidRuntime(19798): java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.is_hardware_backed(java.lang.String)' on a null object reference
E/AndroidRuntime(19798): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3017)
E/AndroidRuntime(19798): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3048)
E/AndroidRuntime(19798): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2423)
E/AndroidRuntime(19798): at android.app.ActivityThread.access$900(ActivityThread.java:154)
E/AndroidRuntime(19798): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
E/AndroidRuntime(19798): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(19798): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(19798): at android.app.ActivityThread.main(ActivityThread.java:5293)
E/AndroidRuntime(19798): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(19798): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(19798): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
E/AndroidRuntime(19798): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
E/AndroidRuntime(19798): Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.is_hardware_backed(java.lang.String)' on a null object reference
E/AndroidRuntime(19798): at android.security.KeyStore.isHardwareBacked(KeyStore.java:318)
E/AndroidRuntime(19798): at android.security.KeyStore.isHardwareBacked(KeyStore.java:313)
E/AndroidRuntime(19798): at com.android.settings.SecuritySettings.createPreferenceHierarchy(SecuritySettings.java:226)
E/AndroidRuntime(19798): at com.android.settings.SecuritySettings.onResume(SecuritySettings.java:396)
E/AndroidRuntime(19798): at android.app.Fragment.performResume(Fragment.java:2096)
E/AndroidRuntime(19798): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:928)
E/AndroidRuntime(19798): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
E/AndroidRuntime(19798): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1049)
E/AndroidRuntime(19798): at android.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:1879)
E/AndroidRuntime(19798): at android.app.Activity.performResume(Activity.java:6091)
E/AndroidRuntime(19798): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3006)
E/AndroidRuntime(19798): ... 11 more
W/ActivityManager( 6040): Force finishing activity 1 com.android.settings/.SubSettings
W/ActivityManager( 6040): Force finishing activity 2 com.android.settings/.Settings

2) When I try to change the lock screen it crashes (Settings -> Lock Screen -> Screen Lock)

D/SubSettings(20411): Launching fragment com.android.settings.ChooseLockGeneric$ChooseLockGenericFragment
D/AndroidRuntime(20411): Shutting down VM
E/AndroidRuntime(20411): FATAL EXCEPTION: main
E/AndroidRuntime(20411): Process: com.android.settings, PID: 20411
E/AndroidRuntime(20411): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.zero()' on a null object reference
E/AndroidRuntime(20411): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2356)
E/AndroidRuntime(20411): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418)
E/AndroidRuntime(20411): at android.app.ActivityThread.access$900(ActivityThread.java:154)
E/AndroidRuntime(20411): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
E/AndroidRuntime(20411): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(20411): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(20411): at android.app.ActivityThread.main(ActivityThread.java:5293)
E/AndroidRuntime(20411): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(20411): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(20411): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
E/AndroidRuntime(20411): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
E/AndroidRuntime(20411): Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.zero()' on a null object reference
E/AndroidRuntime(20411): at android.security.KeyStore.isEmpty(KeyStore.java:200)
E/AndroidRuntime(20411): at com.android.settings.ChooseLockGeneric$ChooseLockGenericFragment.upgradeQualityForKeyStore(ChooseLockGeneric.java:282)
E/AndroidRuntime(20411): at com.android.settings.ChooseLockGeneric$ChooseLockGenericFragment.upgradeQuality(ChooseLockGeneric.java:268)
E/AndroidRuntime(20411): at com.android.settings.ChooseLockGeneric$ChooseLockGenericFragment.updatePreferencesOrFinish(ChooseLockGeneric.java:252)
E/AndroidRuntime(20411): at com.android.settings.ChooseLockGeneric$ChooseLockGenericFragment.onCreate(ChooseLockGeneric.java:141)
E/AndroidRuntime(20411): at android.app.Fragment.performCreate(Fragment.java:2031)
E/AndroidRuntime(20411): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863)
E/AndroidRuntime(20411): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
E/AndroidRuntime(20411): at android.app.BackStackRecord.run(BackStackRecord.java:834)
E/AndroidRuntime(20411): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
E/AndroidRuntime(20411): at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:483)
E/AndroidRuntime(20411): at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:1002)
E/AndroidRuntime(20411): at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:612)
E/AndroidRuntime(20411): at android.app.Activity.performCreate(Activity.java:5995)
E/AndroidRuntime(20411): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/AndroidRuntime(20411): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2309)
E/AndroidRuntime(20411): ... 10 more
W/ActivityManager( 6040): Force finishing activity 1 com.android.settings/.SubSettings
W/ActivityManager( 6040): Force finishing activity 2 com.android.settings/.SubSettings

3) I can't uninstall any app, whenever I try it reboots. Logcat:

E/AndroidRuntime(25642): *** FATAL EXCEPTION IN SYSTEM PROCESS: PackageManager
E/AndroidRuntime(25642): java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.clear_uid(long)' on a null object reference
E/AndroidRuntime(25642): at android.security.KeyStore.clearUid(KeyStore.java:327)
E/AndroidRuntime(25642): at com.android.server.pm.PackageManagerService.removeKeystoreDataIfNeeded(PackageManagerService.java:12326)
E/AndroidRuntime(25642): at com.android.server.pm.PackageManagerService.removePackageDataLI(PackageManagerService.java:11868)
E/AndroidRuntime(25642): at com.android.server.pm.PackageManagerService.deleteInstalledPackageLI(PackageManagerService.java:11988)
E/AndroidRuntime(25642): at com.android.server.pm.PackageManagerService.deletePackageLI(PackageManagerService.java:12134)
E/AndroidRuntime(25642): at com.android.server.pm.PackageManagerService.deletePackageX(PackageManagerService.java:11714)
E/AndroidRuntime(25642): at com.android.server.pm.PackageManagerService.access$4200(PackageManagerService.java:271)
E/AndroidRuntime(25642): at com.android.server.pm.PackageManagerService$7.run(PackageManagerService.java:11633)
E/AndroidRuntime(25642): at android.os.Handler.handleCallback(Handler.java:739)
E/AndroidRuntime(25642): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(25642): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(25642): at android.os.HandlerThread.run(HandlerThread.java:61)
E/AndroidRuntime(25642): at com.android.server.ServiceThread.run(ServiceThread.java:46)

If it's any help I was on a 4.4.4 ROM before, did a clean wipe and flashed this ROM. I then flashed slim gapps. I have the latest TWRP (2.8.6.0) but I haven't updated my bootloaded and actually I have [ro.bootloader]: [unknown], so I had to delete an assert in the ROM otherwise it wouldn't start flashing.