[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] leszq:
It seems there is something wrong with fingerprint sensor and/or encryption.

Configuring fingerprint unlock in Aegis Authenticator or KeePassDX fails with javax.crypto.AEADBadTagException. I've tried removing and reconfiguring all fingerprints, deleting /fpdata/user.db and settings_fingerprint.xml from /system/user/0/ but issue is still there. Example log from KeePassDX:

07-17 11:30:08.963 471 471 E keymaster1_device: Update send cmd failed
07-17 11:30:08.963 471 471 E keymaster1_device: ret: 0
07-17 11:30:08.963 471 471 E keymaster1_device: resp->status: -30
07-17 11:30:08.973 470 11612 E keystore2: keystore2::error: In KeystoreOperation::update
07-17 11:30:08.973 470 11612 E keystore2:
07-17 11:30:08.973 470 11612 E keystore2: Caused by:
07-17 11:30:08.973 470 11612 E keystore2: 0: In update: KeyMint::update failed.
07-17 11:30:08.973 470 11612 E keystore2: 1: Error::Km(ErrorCode(-30))
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: Unable to encrypt data
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: javax.crypto.AEADBadTagException
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:611)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at javax.crypto.Cipher.doFinal(Cipher.java:2055)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at com.kunzisoft.keepass.biometric.AdvancedUnlockManager.encryptData(AdvancedUnlockManager.kt:221)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at com.kunzisoft.keepass.biometric.AdvancedUnlockFragment$onAuthenticationSucceeded$1.invokeSuspend(AdvancedUnlockFragment.kt:521)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.os.Handler.handleCallback(Handler.java:938)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.os.Handler.dispatchMessage(Handler.java:99)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.os.Looper.loopOnce(Looper.java:201)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.os.Looper.loop(Looper.java:288)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.app.ActivityThread.main(ActivityThread.java:7870)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at java.lang.reflect.Method.invoke(Native Method)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: Caused by: android.security.KeyStoreException: Signature/MAC verification failed
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.security.KeyStore2.getKeyStoreException(KeyStore2.java:356)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.security.KeyStoreOperation.handleExceptions(KeyStoreOperation.java:78)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.security.KeyStoreOperation.update(KeyStoreOperation.java:114)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer$MainDataStream.update(KeyStoreCryptoOperationChunkedStreamer.java:222)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer.update(KeyStoreCryptoOperationChunkedStreamer.java:156)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer.doFinal(KeyStoreCryptoOperationChunkedStreamer.java:179)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:603)
07-17 11:30:08.975 10089 10089 E com.kunzisoft.keepass.biometric.AdvancedUnlockManager: ... 13 more