[Samsung Galaxy S 5 Unified Development] Usty2:
Fingerprint scanner not working

As I occasionally do to deal with the finicky fingerprint scanner, I deleted all my registered fingerprints in order to enroll them again.

This time, however, the phone rebooted during enrollment and at first did not successfully boot; I had to reboot it myself.

Now I'm having problems enrolling a new fingerprint.

Sometimes I get strange behavior from Settings: crashes when I start enrolling (but then I can open it again without crashing); the phone becomes unresponsive or laggy; rarely the phone just reboots.

Eventually, though, I can successfully enroll a fingerprint, but I can never unlock the phone with it.

Here's the result of logcat | grep -i fingerprint (I marked some suspicious lines in bold):

01-04 19:08:45.504 750 750 I SystemServiceManager: Starting com.android.server.fingerprint.FingerprintService
01-04 19:08:45.508 750 750 W FingerprintService: fingerprint service not available
01-04 19:08:45.508 750 750 V FingerprintService: Fingerprint HAL id: 0
01-04 19:08:57.868 1243 1243 D CarrierConfigLoader: Build fingerprint changed. old: null new: lineage_klte-userdebug 7.1.2 N2G47E de9c53fc24
01-04 19:09:04.269 307 307 I ServiceManager: service 'fingerprint' died
04-23 09:39:24.255 1692 1692 I fingerprintd: Starting fingerprintd
04-23 09:39:29.529 1682 1682 I art : option[46]=-Xfingerprint:samsung/kltexx/klte:6.0.1/MMB29M/G900FXXS1CQBW:user/release-keys
04-23 09:40:13.204 1949 1949 I SystemServiceManager: Starting com.android.server.fingerprint.FingerprintService
04-23 09:40:13.216 1692 1692 D PermissionCache: checking android.permission.MANAGE_FINGERPRINT for uid=1000 => granted (506 us)
04-23 09:40:13.217 1692 1692 V fingerprintd: nativeOpenHal()
[B]04-23 09:40:15.628 1692 1692 E fingerprintd: Wrong fp version. Expected 513, got 512[/B]
04-23 09:40:15.628 1692 1692 D FingerprintHal_msm8974: fingerprint callback notification set
04-23 09:40:15.628 1692 1692 V fingerprintd: fingerprint HAL successfully initialized
04-23 09:40:15.629 1692 1692 V fingerprintd: setActiveGroup(0, /data/system/users/0/fpdata, 27)
04-23 09:40:15.634 1949 1949 V FingerprintService: Fingerprint HAL id: 3062571200
04-23 09:40:37.915 3068 3068 F DEBUG : Build fingerprint: 'samsung/kltexx/klte:6.0.1/MMB29M/G900FXXS1CQBW:user/release-keys'
04-23 09:42:00.113 1949 2724 I ActivityManager: START u0 {cmp=com.android.settings/.fingerprint.FingerprintEnrollIntroduction (has extras)} from uid 1000 on display 0
04-23 09:42:00.502 1949 1986 I ActivityManager: Displayed com.android.settings/.fingerprint.FingerprintEnrollIntroduction: +342ms
04-23 09:42:02.875 1949 3359 I ActivityManager: START u0 {cmp=com.android.settings/.fingerprint.FingerprintEnrollFindSensor (has extras)} from uid 1000 on display 0
04-23 09:42:07.989 1949 1949 V FingerprintService: starting client EnrollClient(com.android.settings), initiatedByClient = true)
04-23 09:42:07.990 1692 1692 V fingerprintd: enroll(gid=0, timeout=60)
04-23 09:42:09.404 1692 1692 V fingerprintd: stopEnrollment()
04-23 09:42:09.526 1949 6053 I ActivityManager: START u0 {cmp=com.android.settings/.fingerprint.FingerprintEnrollEnrolling (has extras)} from uid 1000 on display 0
04-23 09:42:09.680 1949 1949 V FingerprintService: request stop current client com.android.settings
04-23 09:42:09.680 1692 1692 V fingerprintd: stopEnrollment()
04-23 09:42:09.833 1949 1986 I ActivityManager: Displayed com.android.settings/.fingerprint.FingerprintEnrollEnrolling: +278ms
04-23 09:42:12.683 1949 1949 W FingerprintService: Client com.android.settings failed to respond to cancel, starting client com.android.settings
04-23 09:42:12.683 1949 1949 V FingerprintService: starting client EnrollClient(com.android.settings), initiatedByClient = false)
04-23 09:42:12.684 1692 1692 V fingerprintd: enroll(gid=0, timeout=60)
04-23 09:42:13.136 1692 7139 D fingerprintd: onEnrollResult(fid=2, gid=0, rem=7)
04-23 09:42:14.028 1692 7139 D fingerprintd: onEnrollResult(fid=2, gid=0, rem=6)
04-23 09:42:14.661 1692 7139 D fingerprintd: onEnrollResult(fid=2, gid=0, rem=5)
04-23 09:42:15.492 1692 7139 D fingerprintd: onEnrollResult(fid=2, gid=0, rem=4)
04-23 09:42:16.382 1692 7139 D fingerprintd: onEnrollResult(fid=2, gid=0, rem=3)
04-23 09:42:17.120 1692 7139 D fingerprintd: onEnrollResult(fid=2, gid=0, rem=2)
04-23 09:42:17.915 1692 7139 D fingerprintd: onEnrollResult(fid=2, gid=0, rem=1)
04-23 09:42:18.836 1692 7139 D fingerprintd: onEnrollResult(fid=2, gid=0, rem=0)
04-23 09:42:18.907 1949 1949 V FingerprintService: Done with client: com.android.settings
[B]04-23 09:42:18.924 1692 7139 E Fingerprint_tz: Send vfmEnrollmentPasswordSet error[/B]
04-23 09:42:19.455 1949 6167 I ActivityManager: START u0 {flg=0x2000000 cmp=com.android.settings/.fingerprint.FingerprintEnrollFinish (has extras)} from uid 1000 on display 0
04-23 09:42:19.743 1949 1986 I ActivityManager: Displayed com.android.settings/.fingerprint.FingerprintEnrollFinish: +235ms
04-23 09:42:20.070 1949 6053 W ActivityManager: Duplicate finish request for ActivityRecord{45b7fb3 u0 com.android.settings/.fingerprint.FingerprintEnrollEnrolling t14890 f}
04-23 09:42:36.613 1949 1949 V FingerprintService: startAuthentication(com.android.systemui)
04-23 09:42:36.614 1949 1949 V FingerprintService: starting client AuthenticationClient(com.android.systemui), initiatedByClient = true)
04-23 09:42:36.615 1692 1692 V fingerprintd: authenticate(sid=0, gid=0)
04-23 09:42:36.615 1692 1692 I FingerprintHal_msm8974: auth: op_id=0
04-23 09:42:36.767 1949 1949 W FingerprintService: client com.android.systemui is authenticating...
04-23 09:42:40.269 1692 8252 I FingerprintHal_msm8974: acqu_info=2
04-23 09:42:40.269 1692 8252 D fingerprintd: onAcquired(2)
04-23 09:42:41.568 1692 8252 I FingerprintHal_msm8974: acqu_info=2
04-23 09:42:41.568 1692 8252 D fingerprintd: onAcquired(2)
04-23 09:42:42.250 1692 8252 I FingerprintHal_msm8974: acqu_info=2
04-23 09:42:42.251 1692 8252 D fingerprintd: onAcquired(2)

What I've done so far:

Enrolling fingerprints, removing them and reenrolling, with and without reboots in between.

Formatting system and reflashing the ROM (clearing cache and dalvik-cache).

Flashing an updated baseband (I read somewhere that this should help).

So far nothing has fixed the problem.

I have a feeling that a factory reset might do the trick, but I'd like to avoid that if possible.