Systems ·
Diagnosing Biometric Unlock Latency on Non-Rooted Android
Tracing a 6-second wake delay on a Galaxy S22 Ultra down to an ambient light sensor fault using adb, logcat, and dumpsys
My Galaxy S22 Ultra began taking 5 to 7 seconds to wake every time I pressed the power button. Tapping the screen or using the fingerprint reader produced the same delay. Intermittently, the system also displayed the following dialog:
windowName:
ColorFade BLAST_d0#741— not optimized for the latest Android version. Touch interactions may be delayed or unrecognized.
Before resorting to a factory reset, I connected the phone over USB to inspect the system logs. A reset would not have fixed anything: the root cause was hardware degradation. Reaching that conclusion, however, required peeling back five layers of symptoms that masked one another.
The Diagnostic Stack: ADB, logcat, and dumpsys
With USB debugging enabled (Settings → Developer options → USB debugging), I relied on three standard commands:
adb logcat -d -t 5000 -v time | grep -iE "keyguard|biometric|fingerprint"
adb shell dumpsys biometric
adb shell "top -b -n 1 -m 15"
No root access, custom recovery, or third-party tools were needed. Everything below came from those three commands.
Layer 1: Failing Face Unlock Loop
dumpsys biometric showed that on every wake event, the system initiated both fingerprint and face authentication, and face recognition failed every single time:
authStartedFor(sensorId=0, requestId=33) ← fingerprint
authStartedFor(sensorId=1, requestId=41) ← face
authEndedFor(sensorId=0, wasSuccessful=true)
authEndedFor(sensorId=1, wasSuccessful=false) ← consistent failure
On each wake, the framework attempted face recognition, waited for it to time out, and only then fell back to the fingerprint sensor (which succeeded on 88% of attempts). I deleted the enrolled face model, but the unlock delay remained unchanged.
Layer 2: SystemUI at 50% CPU While Idle
top revealed an abnormal process load while the device was idle:
PID PROCESS %CPU
3231 com.android.systemui 50.0%
Normal idle usage is 0–2%. SystemUI renders the lockscreen, notifications, and Always-On Display (AOD). With a thread spinning at 50% CPU, it lacked cycles to draw the lockscreen promptly on wake. I force-stopped the process:
adb shell am force-stop com.android.systemui
CPU usage dropped back to 1%, yet the wake latency persisted.
Layer 3: ColorFade and the BLAST Warning
ColorFade handles the color sweep transition when the display sleeps and wakes, and BLAST is Android’s current graphics buffer pipeline under SurfaceFlinger. The on-screen warning was a downstream symptom of the UI thread stalling, not the root cause.
I disabled all system animation scales to rule out compositor contention:
adb shell settings put global window_animation_scale 0
adb shell settings put global transition_animation_scale 0
adb shell settings put global animator_duration_scale 0
That did not resolve it either.
Layer 4: Mutex Contention in the Sensor Framework
I cleared the logcat ring buffer and captured the exact trace of a slow unlock. The first concrete bottleneck appeared there:
Long monitor contention with owner FaceHandler at
SystemSensorManager.registerListenerImpl for 4.161s
Slow dispatch took 4220ms PowerManagerService
Unblocked screen on after 4219 ms
FaceHandler was holding a mutex inside SystemSensorManager.registerListenerImpl for over 4 seconds—even after face unlock had been disabled. The service had remained in a wedged state that only cleared on reboot.
After rebooting, FaceHandler no longer appeared in the logs, but a second chain of lock contentions surfaced:
Long monitor contention with owner BiometricsCallbackHandler for 1.276s
Long monitor contention with owner CaPowerManager for 521ms
Long monitor contention with owner pool-32-thread-1 (IFAA) for 4.114s
Multiple packages embedding biometric SDKs were competing for the sensor framework: Alipay with its IFAA biometric authentication daemon, Google Play Services (DroidGuard), and a third-party AOD notification app running a NotificationListener alongside AppLovinSdk in the background. I disabled and removed the non-essential packages:
adb shell pm disable-user --user 0 com.eg.android.AlipayGphone
adb shell pm uninstall com.sachin.app.aos
The delay remained.
Layer 5: Root Cause in ALSProbe
With those background consumers removed, I captured another slow unlock trace and found the underlying lock holder:
Long monitor contention with owner FingerprintHandler at
com.android.server.biometrics.log.ALSProbe.enable() for 5.854s
ALSProbe (Ambient Light Sensor Probe) is the FingerprintService component that samples ambient light to calibrate the OLED panel before reading the under-display fingerprint sensor (UDFPS) on the S22 Ultra.
Third-party apps were no longer the bottleneck. Samsung’s own fingerprint service was stalling for nearly 6 seconds waiting on the physical light sensor.
Hardware Confirmation
Before spending hours on a factory reset, I ran the official hardware suite under Samsung Members → Support → Diagnostics → Hardware tests. The diagnostic report confirmed the failure:
There are issues with the sensors, buttons, proximity recognition, and speaker.
The physical proximity and ambient light sensor was failing. Because ALSProbe could not obtain reliable readings, it hit internal timeouts that blocked the biometric framework on every wake event. Apps with biometric SDKs amplified the contention, but the root cause was physical hardware degradation.
Key Takeaways
- Run official hardware diagnostics before a factory reset. Samsung Members completes the sensor check in five minutes and prevents wiping a device when the fault is physical.
- Follow system logs rather than surface warnings. Both the
ColorFadedialog and the 50%SystemUICPU spike were secondary symptoms; the actual fault sat four layers deeper. - Account for biometric SDK amplification. Financial apps, anti-fraud services, and custom AOD utilities poll sensors aggressively, exposing early hardware degradation through severe lock contention.
adb,logcat, anddumpsysprovide sufficient visibility without root. Three standard commands are enough to separate software contention from hardware failure before deciding whether to repair or replace a device.