[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] :
I'm back with some esoteric bug again... basically, I use Island to create an Android for Work profile on my phone. I disabled it today, but when I try to enable and enter in my PIN code, it just crashes. No idea how I've broken this now, my phone really is cursed. It just says "Settings has crashed."

Any idea brothers?

Logcat

08-02 11:39:55.375 2224 2224 D keystore: AddAuthenticationToken: timestamp = 173361763 (7154624459469488128), time_received = 79602
08-02 11:39:55.474 5876 5876 I Screen : analyse() Decor{statusbar=true, navbar=false}
08-02 11:39:55.542 2224 2224 D keystore: AddAuthenticationToken: timestamp = 173361931 (813837659108540416), time_received = 79602
08-02 11:39:55.555 2224 2224 D keystore: AddAuthenticationToken: timestamp = 173361943 (1678528787563675648), time_received = 79602
08-02 11:39:55.556 2224 2224 I keystore: calling unlock when already unlocked, ignoring.
08-02 11:39:55.557 1863 3320 I LockSettingsService: Unlocking user 0 with secret only, length 64
08-02 11:39:55.557 1863 3320 D LockSettingsService: unlockUser finished
08-02 11:39:55.557 1863 3320 W ActivityManager: Expected user 0 in state RUNNING_LOCKED but was in state RUNNING_UNLOCKED
08-02 11:39:55.557 1863 3320 I LockSettingsService: Disabling escrow token on user 0
08-02 11:39:55.560 1863 3320 E LockSettingsService: Failed to decrypt child profile key
08-02 11:39:55.560 1863 3320 E LockSettingsService: java.security.InvalidKeyException: Only SecretKey is supported
08-02 11:39:55.560 1863 3320 E LockSettingsService: at com.android.org.conscrypt.OpenSSLCipher.checkAndSetEncodedKey(OpenSSLCipher.java:436)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at com.android.org.conscrypt.OpenSSLCipher.engineInit(OpenSSLCipher.java:273)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2664)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at javax.crypto.Cipher.tryCombinations(Cipher.java:2575)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2480)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at javax.crypto.Cipher.chooseProvider(Cipher.java:567)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at javax.crypto.Cipher.init(Cipher.java:975)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at javax.crypto.Cipher.init(Cipher.java:910)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at com.android.server.locksettings.LockSettingsService.getDecryptedPasswordForTiedProfile(LockSettingsService.java:1095)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at com.android.server.locksettings.LockSettingsService.verifyTiedProfileChallenge(LockSettingsService.java:1674)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at com.android.internal.widget.ILockSettings$Stub.onTransact(ILockSettings.java:208)
08-02 11:39:55.560 1863 3320 E LockSettingsService: at android.os.Binder.execTransact(Binder.java:697)
08-02 11:39:55.560 1863 3320 E JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
08-02 11:39:55.560 1863 3320 E JavaBinder: java.lang.RuntimeException: android.os.RemoteException: Unable to get tied profile token
08-02 11:39:55.560 1863 3320 E JavaBinder: at android.os.Parcel.writeException(Parcel.java:1883)
08-02 11:39:55.560 1863 3320 E JavaBinder: at android.os.Binder.execTransact(Binder.java:710)
08-02 11:39:55.560 1863 3320 E JavaBinder: Caused by: android.os.RemoteException: Unable to get tied profile token
08-02 11:39:55.560 1863 3320 E JavaBinder: at com.android.server.locksettings.LockSettingsService.verifyTiedProfileChallenge(LockSettingsService.java:1684)
08-02 11:39:55.560 1863 3320 E JavaBinder: at com.android.internal.widget.ILockSettings$Stub.onTransact(ILockSettings.java:208)
08-02 11:39:55.560 1863 3320 E JavaBinder: at android.os.Binder.execTransact(Binder.java:697)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
08-02 11:39:55.563 22595 22620 E AndroidRuntime: Process: com.android.settings, PID: 22595
08-02 11:39:55.563 22595 22620 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at android.os.AsyncTask$3.done(AsyncTask.java:353)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:271)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.internal.widget.VerifyCredentialResponse.getResponseCode()' on a null object reference
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at com.android.internal.widget.LockPatternUtils.verifyTiedProfileChallenge(LockPatternUtils.java:459)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at com.android.internal.widget.LockPatternChecker$4.doInBackground(LockPatternChecker.java:202)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at com.android.internal.widget.LockPatternChecker$4.doInBackground(LockPatternChecker.java:199)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:333)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-02 11:39:55.563 22595 22620 E AndroidRuntime: ... 4 more
08-02 11:39:55.566 1863 3320 W ActivityManager: Force finishing activity com.android.settings/.password.ConfirmLockPassword$InternalActivity
08-02 11:39:55.575 1863 1879 I ActivityManager: Showing crash dialog for package com.android.settings u0