This is essentially a reproduction of an xda-developers forum post, but it was on the nth page of Google results.
Symptoms
- inability to enrol/de-enrol fingerprints
- “Fingerprint hardware not available” messages
- Unable to unlock the device with fingerprints
Fix
This fix assumes you’re running TWRP, but anything which allows write access to /data should work.
- Boot into TWRP
- Go to
Advanced > File Manager
- Navigate to
/data/system/user/0
(assuming the default profile) - Remove
fpdata/user.db
andsettings_fingerprint.xml
- Reboot into Android and observe that fingerprints are gone and enrolment is working!