[Xperia Z2 Original Android Development] Mohaned98:
I'm getting same issue.. I go to settings > security and if i try to change the lockscreen security, settings crashes

05-07 15:01:05.624 3365 3375 I art : Background partial concurrent mark sweep GC freed 55352(2MB) AllocSpace objects, 0(0B) LOS objects, 33% free, 15MB/22MB, paused 1.375ms total 161.842ms
05-07 15:01:06.428 3365 6674 I ActivityManager: START u0 {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras)} from uid 1000 on display 0
05-07 15:01:06.588 15226 15226 D SubSettings: Launching fragment com.android.settings.ChooseLockGeneric$ChooseLockGenericFragment
05-07 15:01:06.589 15226 15226 V FingerprintManager: FingerprintManagerService was null
05-07 15:01:06.604 3365 3453 I ActivityManager: START u0 {cmp=com.android.settings/.ConfirmLockPattern$InternalActivity (has extras)} from uid 1000 on display 0
05-07 15:01:06.687 15226 15779 D Index : Indexing locale 'en_US' took 20 millis
05-07 15:01:06.726 15226 15226 E RecyclerView: No adapter attached; skipping layout
05-07 15:01:06.734 15226 15779 D Index : Indexing locale 'en_US' took 17 millis
05-07 15:01:06.790 15226 15777 W TileUtils: Found com.android.systemui.tuner.TunerActivity for intent Intent { act=com.android.settings.action.EXTRA_SETTINGS } missing metadata
05-07 15:01:06.806 413 413 E keystore: SELinux: Failed to get source pid context.
05-07 15:01:06.806 413 413 W : permission get_state denied for 1000
05-07 15:01:06.807 15226 15226 D AndroidRuntime: Shutting down VM
05-07 15:01:06.808 15226 15226 E AndroidRuntime: FATAL EXCEPTION: main
05-07 15:01:06.808 15226 15226 E AndroidRuntime: Process: com.android.settings, PID: 15226
05-07 15:01:06.808 15226 15226 E AndroidRuntime: java.lang.AssertionError: 1
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.security.KeyStore.state(KeyStore.java:146)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at com.android.settings.ConfirmDeviceCredentialBaseFragment.isFingerprintDisallowedByStrongAuth(ConfirmDeviceCredentialBaseFragment.java:139)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at com.android.settings.ConfirmDeviceCredentialBaseFragment.onCreate(ConfirmDeviceCredentialBaseFragment.java:94)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at com.android.settings.ConfirmLockPattern$ConfirmLockPatternFragment.onCreate(ConfirmLockPattern.java:114)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.Fragment.performCreate(Fragment.java:2336)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:949)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.BackStackRecord.setLastIn(BackStackRecord.java:860)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.BackStackRecord.calculateFragments(BackStackRecord.java:900)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.BackStackRecord.run(BackStackRecord.java:728)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:563)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:1066)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:647)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at com.android.settings.ConfirmDeviceCredentialBaseActivity.onCreate(ConfirmDeviceCredentialBaseActivity.java:47)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6684)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2652)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2766)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1507)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6236)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
05-07 15:01:06.808 15226 15226 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
05-07 15:01:06.814 3365 6674 W ActivityManager: Force finishing activity com.android.settings/.ConfirmLockPattern$InternalActivity
05-07 15:01:06.820 3365 6674 W ActivityManager: Force finishing activity com.android.settings/.SubSettings
05-07 15:01:06.828 3365 6674 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:877 com.android.server.am.AppErrors.crashApplicationInner:375 com.android.server.am.AppErrors.crashApplication:309 com.android.server.am.ActivityManagerService.handleApplicationCrashInner:13738 com.android.server.am.ActivityManagerService.handleApplicationCrash:13720
05-07 15:01:06.834 10036 10036 E AppCrashReceiver: com.android.settings stopped unexpectedly...
05-07 15:01:06.837 10036 10036 E AppCrashReceiver: com.android.settings stopped unexpectedly...
05-07 15:01:06.889 3365 8282 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.3_RB1__release_AU (I741a3d36ca)
05-07 15:01:06.889 3365 8282 I Adreno-EGL: OpenGL ES Shader Compiler Version: E031.29.00.00
05-07 15:01:06.889 3365 8282 I Adreno-EGL: Build Date: 04/04/16 Mon
05-07 15:01:06.889 3365 8282 I Adreno-EGL: Local Branch: mybranch19053788
05-07 15:01:06.889 3365 8282 I Adreno-EGL: Remote Branch: quic/LA.BF.1.1.3_rb1.12
05-07 15:01:06.889 3365 8282 I Adreno-EGL: Local Patches: NONE
05-07 15:01:06.889 3365 8282 I Adreno-EGL: Reconstruct Branch: NOTHING
05-07 15:01:06.890 3365 8282 I OpenGLRenderer: Initialized EGL, version 1.4
05-07 15:01:06.890 3365 8282 D OpenGLRenderer: Swap behavior 1
05-07 15:01:07.322 3365 3455 W ActivityManager: Activity pause timeout for ActivityRecord{6431d14 u0 com.android.settings/.ConfirmLockPattern$InternalActivity t5 f}

This is the error logcat

I also found out that if I apply the theme Swift Dark, the screen goes black and i can't access anything but gestures like long press power for flashlight..etc and power menu.. switched to previous build