[Nexus 5 Android Development] vyruz1986:
Anyone tried to setup MultiROM boot with a previously created backup instead of a clean install?

I install this flashable zip with a 'normal' system (i.e.: no MultiRom) which I had running for a couple of days.

Then I decided I'd like a multirom system, so I backed up my running system using my TWRP recovery, restored a previous 4.4.4 stock backup, and installed multirom.

Then I followed StrifeSoldierVII's guide, to install this L preview in a multirom slot, except when installing the zip I chose to restore my TWRP created backup.

It boots up fine, but when I try to unlock my screen (I had setup a pattern) systemUI crashes and I get the lock screen again.

So I went back to recovery, deleted /data/system/gesture.key and rebooted, now I could login using any swipe pattern, and had no crash.

But when I try to go to settins->security to setup a new pattern, I get 'Unfortunately, Settings has stopped', with the following logcat output:

I/ActivityManager( 820): START u0 {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras)} from pid 8611 on display 0
I/wm_task_moved( 820): [6,1,0]
I/am_create_activity( 820): [0,617988662,6,com.android.settings/.SubSettings,android.intent.action.MAIN,NULL,NULL,0]
I/am_pause_activity( 820): [0,678396015,com.android.settings/.Settings]
I/am_on_paused_called( 8611): [0,com.android.settings.Settings]
I/am_restart_activity( 820): [0,617988662,6,com.android.settings/.SubSettings]
D/SubSettings( 8611): Launching fragment com.android.settings.SecuritySettings
D/AndroidRuntime( 8611): Shutting down VM
E/AndroidRuntime( 8611): FATAL EXCEPTION: main
E/AndroidRuntime( 8611): Process: com.android.settings, PID: 8611
E/AndroidRuntime( 8611): 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( 8611): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2859)
E/AndroidRuntime( 8611): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2889)
E/AndroidRuntime( 8611): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2322)
E/AndroidRuntime( 8611): at android.app.ActivityThread.access$800(ActivityThread.java:143)
E/AndroidRuntime( 8611): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1258)
E/AndroidRuntime( 8611): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 8611): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 8611): at android.app.ActivityThread.main(ActivityThread.java:5070)
E/AndroidRuntime( 8611): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 8611): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 8611): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)
E/AndroidRuntime( 8611): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)
E/AndroidRuntime( 8611): 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( 8611): at android.security.KeyStore.isHardwareBacked(KeyStore.java:318)
E/AndroidRuntime( 8611): at android.security.KeyStore.isHardwareBacked(KeyStore.java:313)
E/AndroidRuntime( 8611): at com.android.settings.SecuritySettings.createPreferenceHierarchy(SecuritySettings.java:263)
E/AndroidRuntime( 8611): at com.android.settings.SecuritySettings.onResume(SecuritySettings.java:440)
E/AndroidRuntime( 8611): at android.app.Fragment.performResume(Fragment.java:1747)
E/AndroidRuntime( 8611): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:924)
E/AndroidRuntime( 8611): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1063)
E/AndroidRuntime( 8611): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1045)
E/AndroidRuntime( 8611): at android.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:1864)
E/AndroidRuntime( 8611): at android.app.Activity.performResume(Activity.java:5816)
E/AndroidRuntime( 8611): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2848)
E/AndroidRuntime( 8611): ... 11 more
I/am_crash( 820): [8611,0,com.android.settings,1086897733,java.lang.NullPointerException,Attempt to invoke interface method 'int android.security.IKeystoreService.is_hardware_backed(java.lang.String)' on a null object reference,KeyStore.java,318]
W/ActivityManager( 820): Force finishing activity com.android.settings/.SubSettings
I/am_finish_activity( 820): [0,617988662,6,com.android.settings/.SubSettings,crashed]
I/am_pause_activity( 820): [0,617988662,com.android.settings/.SubSettings]
W/ActivityManager( 820): Force finishing activity com.android.settings/.Settings
I/am_finish_activity( 820): [0,678396015,6,com.android.settings/.Settings,crashed]