[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] yelupic:
Nightly @ 2017-01-24 - Settings > ... > Factory Reset > fails

device

KIW-L21 (hw/eu)

recovery from stock rom

KIW-L21C432B350

security

8-digit PIN (data partition & lock screen)

device encrypted (under lineage-14.1-20170121-UNOFFICIAL-kiwi.zip)

fingerprint registered and active

AFWall+ (Donate) registered as device administrator (a removal results in no other outcome)

logtrace (also attached)

01-24 15:37:25.796 2754 3590 I ActivityManager: START u0 {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras)} from uid 1000 on display 0
01-24 15:37:25.943 5580 5580 D SubSettings: Launching fragment com.android.settings.MasterClear
01-24 15:37:26.060 5580 5601 D Index : Indexing locale 'en_US' took 26 millis
01-24 15:37:26.111 5580 5601 D Index : Indexing locale 'en_US' took 15 millis
01-24 15:37:26.159 2754 2855 I ActivityManager: Displayed com.android.settings/.SubSettings: +313ms
01-24 15:37:26.195 5580 5601 W TileUtils: Found com.android.systemui.tuner.TunerActivity for intent Intent { act=com.android.settings.action.EXTRA_SETTINGS } missing metadata
01-24 15:37:26.231 2754 4198 E RemotePrintSpooler: Error getting print jobs.
01-24 15:37:26.231 2754 4198 E RemotePrintSpooler: java.util.concurrent.TimeoutException: Cannot get spooler!
01-24 15:37:26.231 2754 4198 E RemotePrintSpooler: at com.android.server.print.RemotePrintSpooler.bindLocked(RemotePrintSpooler.java:633)
01-24 15:37:26.231 2754 4198 E RemotePrintSpooler: at com.android.server.print.RemotePrintSpooler.getRemoteInstanceLazy(RemotePrintSpooler.java:602)
01-24 15:37:26.231 2754 4198 E RemotePrintSpooler: at com.android.server.print.RemotePrintSpooler.getPrintJobInfos(RemotePrintSpooler.java:162)
01-24 15:37:26.231 2754 4198 E RemotePrintSpooler: at com.android.server.print.UserState.getPrintJobInfos(UserState.java:278)
01-24 15:37:26.231 2754 4198 E RemotePrintSpooler: at com.android.server.print.PrintManagerService$PrintManagerImpl.getPrintJobInfos(PrintManagerService.java:160)
01-24 15:37:26.231 2754 4198 E RemotePrintSpooler: at android.print.IPrintManager$Stub.onTransact(IPrintManager.java:57)
01-24 15:37:26.231 2754 4198 E RemotePrintSpooler: at android.os.Binder.execTransact(Binder.java:565)
01-24 15:37:26.249 5580 5597 D OpenGLRenderer: endAllActiveAnimators on 0x7f5990d400 (RippleDrawable) with handle 0x7f5bae2ce0
01-24 15:37:26.287 5580 5598 W DataUsageController: Failed to get data usage, no subscriber id
01-24 15:37:27.972 2754 4177 I ActivityManager: START u0 {cmp=com.android.settings/.ConfirmLockPassword (has extras)} from uid 1000 on display 0
01-24 15:37:28.180 5580 5596 D Index : Indexing locale 'en_US' took 25 millis
01-24 15:37:28.214 5580 5596 D Index : Indexing locale 'en_US' took 8 millis
01-24 15:37:28.267 2754 2855 I ActivityManager: Displayed com.android.settings/.ConfirmLockPassword: +261ms
01-24 15:37:28.282 3487 3487 W InputMethodService: Window size has been changed. This may cause jankiness of resizing window: -1 -> -2
01-24 15:37:28.290 3487 3487 I LatinIME: Starting input. Cursor position = 0,0
01-24 15:37:28.308 5580 5597 D OpenGLRenderer: endAllActiveAnimators on 0x7f5ae23c00 (RippleDrawable) with handle 0x7f59c1c560
01-24 15:37:33.600 2361 2361 I : calling unlock when already unlocked, ignoring.
01-24 15:37:33.601 2754 3826 I LockSettingsService: Unlocking user 0 with token length 69
01-24 15:37:33.602 2754 3826 D LockSettingsService: unlockUser finished
01-24 15:37:33.602 2754 3826 W ActivityManager: Expected user 0 in state RUNNING_LOCKED but was in state RUNNING_UNLOCKED
01-24 15:37:33.691 2754 3757 I ActivityManager: START u0 {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras)} from uid 1000 on display 0
01-24 15:37:33.818 5580 5601 D Index : Indexing locale 'en_US' took 40 millis
01-24 15:37:33.900 5580 5580 D SubSettings: Launching fragment com.android.settings.MasterClearConfirm
01-24 15:37:33.991 5580 5601 W TileUtils: Found com.android.systemui.tuner.TunerActivity for intent Intent { act=com.android.settings.action.EXTRA_SETTINGS } missing metadata
01-24 15:37:34.028 2754 2855 I ActivityManager: Displayed com.android.settings/.SubSettings: +201ms
01-24 15:37:34.036 5580 5601 W TileUtils: Found com.android.systemui.tuner.TunerActivity for intent Intent { act=com.android.settings.action.EXTRA_SETTINGS } missing metadata
01-24 15:37:34.044 3487 3487 W InputMethodService: Window size has been changed. This may cause jankiness of resizing window: -1 -> -2
01-24 15:37:34.073 5580 5601 D Index : Indexing locale 'en_US' took 21 millis
01-24 15:37:34.117 5580 5601 D Index : Indexing locale 'en_US' took 7 millis
01-24 15:37:34.126 5580 5580 W IInputConnectionWrapper: finishComposingText on inactive InputConnection
01-24 15:37:34.126 5580 5580 W IInputConnectionWrapper: finishComposingText on inactive InputConnection
01-24 15:37:45.603 5580 5580 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:877 android.content.ContextWrapper.sendBroadcast:421 com.android.settings.MasterClearConfirm.doMasterClear:127 com.android.settings.MasterClearConfirm.-wrap0:-1 com.android.settings.MasterClearConfirm$1.onClick:106
01-24 15:37:45.613 2754 2754 W MasterClear: !!! FACTORY RESET !!!
01-24 15:37:45.626 5658 5658 W Reboot : type=1400 audit(0.0:31): avc: denied { unlink } for name="log" dev="mmcblk0p22" ino=8195 scontext=u:r:system_server:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=0
01-24 15:37:46.643 5659 5659 I uncrypt : received command: [--wipe_data
01-24 15:37:46.643 5659 5659 I uncrypt : --reason=MasterClearConfirm
01-24 15:37:46.643 5659 5659 I uncrypt : --locale=en_US
01-24 15:37:46.643 5659 5659 I uncrypt : ] (55)
01-24 15:37:46.644 5659 5659 E uncrypt : failed to set bootloader message: failed to find /misc partition
01-24 15:37:46.652 2754 5658 E RecoverySystemService: uncrypt failed with status: -1
01-24 15:37:46.654 2754 5658 E MasterClear: Can't perform master clear/factory reset
01-24 15:37:46.654 2754 5658 E MasterClear: java.io.IOException: Reboot failed (no permissions?)
01-24 15:37:46.654 2754 5658 E MasterClear: at android.os.RecoverySystem.bootCommand(RecoverySystem.java:718)
01-24 15:37:46.654 2754 5658 E MasterClear: at android.os.RecoverySystem.rebootWipeUserData(RecoverySystem.java:650)
01-24 15:37:46.654 2754 5658 E MasterClear: at com.android.server.MasterClearReceiver$1.run(MasterClearReceiver.java:58)
01-24 15:37:46.655 5659 5659 I uncrypt : received 0, exiting now

screenshots attached

view from where the logcat has been taken

about phone