Skip to content

recurring soft reboots #1269

Not planned
Not planned

Description

@2TDaSerra

Device codename

vili

crDroid version

crDroid 13

Exact version / build date

v13.1-20261118

What's wrong?

Hi! Reporting an Android 17 regression (recurring soft reboots) on Xiaomi 11T Pro (vili) running crDroid v13.1-20261118 (kernel 5.4.302-qgki).

Important context: My unit currently has no power/volume flex cable attached (so the side fingerprint sensor is physically disconnected). On your Android 16 builds this exact phone works with zero soft reboots, so this is a regression specific to Android 17.

All 13 system_server crashes in DropBox happen in FingerprintHandler / BiometricScheduler (NPE at BiometricScheduler.java:214/220 and NoSuchElementException at line 326).

Root cause from the attached logs:

  1. Since the sensor is absent, /vendor/bin/hw/mfp-daemon fails to open Goodix/FPC (mDevice == nullptr), yet still registers IBiometricsFingerprint/default and SIGSEGVs on setActiveGroup whenever anything queries biometrics (217 crashes in logcat).
  2. SELinux blocks hal_fingerprint_default from setting vendor.fps_hal.restartimes (falls back to vendor_default_prop), breaking init.mfp-daemon.rc's "on property:vendor.fps_hal.restartimes=max -> stop mfp-daemon" circuit breaker so it keeps crash-looping forever.
  3. On HAL death, HidlToAidlSensorAdapter.serviceDied runs on the HwBinder thread and calls BiometricScheduler.reset() concurrently with FingerprintHandler running onClientFinished, crashing system_server (soft reboot).

Full report, filtered logs, all 13 DropBox system_server_crash logs, mfp-daemon tombstone, and dmesg are in the attached ZIP.

Steps to reproduce

This happens whenever I access an app, though not every single time.

Logs (logcat / build log)

--- 1. Latest system_server crash + mfp-daemon SIGSEGV (2026-11-23 16:55:21) ---
11-23 16:55:21.194  1000 17264 17264 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc0 in tid 17264 (mfp-daemon), pid 17264 (mfp-daemon)
11-23 16:55:21.313  1000 19922 19922 F DEBUG   : Executable: /vendor/bin/hw/mfp-daemon
11-23 16:55:21.313  1000 19922 19922 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00000000000000c0 (read)
11-23 16:55:21.313  1000 19922 19922 F DEBUG   : Cause: null pointer dereference
11-23 16:55:21.313  1000 19922 19922 F DEBUG   :       #00 pc 00000000000094f4  /vendor/bin/hw/mfp-daemon (android::hardware::biometrics::fingerprint::V2_1::implementation::BiometricsFingerprint::setActiveGroup(unsigned int, android::hardware::hidl_string const&)+160) (BuildId: 14f45a9fd180b18941c8009937090c09)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: FingerprintHandler
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: java.util.NoSuchElementException
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at java.util.ArrayDeque.getFirst(ArrayDeque.java:408)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at com.android.server.biometrics.sensors.BiometricScheduler.checkCurrentUserAndStartNextOperation(BiometricScheduler.java:326)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at com.android.server.biometrics.sensors.BiometricScheduler$1.lambda$onClientFinished$0(BiometricScheduler.java:223)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at com.android.server.biometrics.sensors.BiometricScheduler$1.$r8$lambda$MLgpBX_If9QLQOlZxMbMDpRhir4(BiometricScheduler.java:0)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at com.android.server.biometrics.sensors.BiometricScheduler$1$$ExternalSyntheticLambda0.run(R8$$SyntheticClass:0)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:1095)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at android.os.Handler.dispatchMessageImpl(Handler.java:135)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:125)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:296)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:397)
11-23 16:55:21.320  1000 10129 10436 E AndroidRuntime: 	at android.os.HandlerThread.run(HandlerThread.java:139)

--- 2. Other 12 DropBox system_server_crash entries (same BiometricScheduler race) ---
# 5x at BiometricScheduler.java:214:
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.server.biometrics.sensors.BiometricSchedulerOperation.getSensorId()' on a null object reference
	at com.android.server.biometrics.sensors.BiometricScheduler$1.lambda$onClientFinished$0(BiometricScheduler.java:214)

# 7x at BiometricScheduler.java:220:
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.server.biometrics.sensors.BiometricSchedulerOperation.getProtoEnum()' on a null object reference
	at com.android.server.biometrics.sensors.BiometricScheduler$1.lambda$onClientFinished$0(BiometricScheduler.java:220)

--- 3. SELinux blocking vendor.fps_hal.restartimes circuit breaker ---
11-23 16:55:41.978  1000 25954 25954 E mfp_service: Failed to find fingerprint vendor
11-23 16:55:41.978  1000 25954 25954 D mfp_service: get property vendor.fps_hal.restartimes=0
11-23 16:55:41.978  1000 25954 25954 W libc    : Unable to set property "vendor.fps_hal.restartimes" to "1": PROP_ERROR_PERMISSION_DENIED (0x18)
11-23 16:55:41.978  1000 25954 25954 E mfp_service: Can't open HAL module
11-23 16:55:41.974  root     1     1 I auditd  : type=1107 audit(0.0:144885): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=vendor.fps_hal.restartimes pid=25954 uid=1000 gid=1000 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=property_service permissive=0'
11-23 16:55:41.979  1000 25954 25954 I HidlServiceManagement: Registered android.hardware.biometrics.fingerprint@2.1::IBiometricsFingerprint/default

--- 4. Live thread race (TID 20615 = HwBinder:20201_, TID 20516 = FingerprintHandler) ---
11-23 17:00:30.034  1000 25954 25954 D mfp_service: setActiveGroup
11-23 17:00:30.034  1000 25954 25954 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc0 in tid 25954 (mfp-daemon), pid 25954 (mfp-daemon)
11-23 17:00:30.090  1000 20201 20615 D HidlToAidlSensorAdapter: Fingerprint HAL died.
11-23 17:00:30.090  1000 20201 20615 E BiometricScheduler: Recorded crash state: 2026-11-23 17:00:30.090: Current Operation: {{[966] com.android.server.biometrics.sensors.fingerprint.hidl.FingerprintUpdateActiveUserClient, proto=1, owner=android, cookie=0, requestId=-1, userId=0}, State: 5}, Pending Operations(0)
11-23 17:00:30.090  1000 20201 20615 D BiometricScheduler: Resetting scheduler
11-23 17:00:30.090  1000 20201 20615 D HidlToAidlSensorAdapter: Fingerprint HAL died.
11-23 17:00:30.091  1000 20201 20615 E BiometricScheduler: Recorded crash state: 2026-11-23 17:00:30.091: Current Operation: {null}, Pending Operations(0)
11-23 17:00:30.091  1000 20201 20615 D BiometricScheduler: Resetting scheduler
11-23 17:00:30.092  1000 20201 20516 E FingerprintUpdateActiveUserClient: Failed to setActiveGroup: android.os.DeadObjectException: HwBinder Error: (-32)

Screenshots, videos, or extra context

Root cause confirmed in frameworks/base (Android 17 upstream AOSP regression vs Android 16):
Commit "HIDL service died" (Change-Id: Idff44a4df308f3acb7a0e04a7189a18b8f5af5af, flag removed in I0a513b7ac16a7d0066eecc6473bfa84afc9a8f82) added onBinderDied() directly inside HidlToAidlSensorAdapter.serviceDied(long cookie) on the HwBinder thread without posting to getHandler(), unlike FingerprintProvider.binderDied() which wraps sensor.onBinderDied() in mHandler.post(...).

Suggested fix:

  1. Framework (services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/HidlToAidlSensorAdapter.java): wrap serviceDied() in getHandler().post(() -> { ... }):
    @OverRide
    public void serviceDied(long cookie) {
    Slog.d(TAG, "Fingerprint HAL died.");
    getHandler().post(() -> {
    mSession = null;
    mDaemon = null;
    mCurrentUserId = UserHandle.USER_NULL;
    onBinderDied();
    });
    }
  2. Device tree sepolicy (vili): label vendor.fps_hal.restartimes in property_contexts and allow hal_fingerprint_default to set it so init.mfp-daemon.rc (on property:vendor.fps_hal.restartimes=max -> stop mfp-daemon) stops the crash loop when no sensor is present.

crdroid_vili_softreboot_logs_20261123.zip

Analyses performed by Gemini 4 Neon

Before submitting

  • I understand that all issues must be written in english. Issues that do not follow this rule will be closed
  • I'm on an official build, running the latest version for my device from crdroid.net (failing this check, closes the issue automatically)
  • I searched existing issues and this isn't a duplicate

Activity

  1. added
    needs-triage
    on Nov 23, 2026
  2. added
    crDroid 13
    device:vili
    on Nov 23, 2026
  3. removed
    needs-triage
    on Nov 23, 2026
  4. neobuddy89 commented on Nov 23, 2026

    @neobuddy89
    Member

    @swiitchOFF this requires device side fixes as well.

  5. swiitchOFF commented on Nov 25, 2026

    @swiitchOFF

    No point of looking on this issue, causing issues because of your broken fingerprint and blobs looking for it
    I Lacks time and tester
    Better repair your fingerprint

  6. added
    wontfix
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

crDroid 13device:viliwontfix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions