Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0acc4d22 authored by Jeff Pu's avatar Jeff Pu Committed by Android (Google) Code Review
Browse files

Merge "Make virtual fingerprint Hal as a lazy Hal"

parents f40ef02b 93e97f94
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -2,8 +2,7 @@ service vendor.fingerprint-example /vendor/bin/hw/android.hardware.biometrics.fi
    class hal
    user nobody
    group nobody
    interface aidl android.hardware.biometrics.fingerprint.IFingerprint/virtual
    oneshot
    disabled
on property:ro.vendor.fingerprint_virtual_hal_start=true
    enable vendor.fingerprint-example
on property:persist.vendor.fingerprint.virtual.type=*
    enable vendor.fingerprint-example
+2 −1
Original line number Diff line number Diff line
@@ -28,7 +28,8 @@ int main() {
    std::shared_ptr<Fingerprint> hal = ndk::SharedRefBase::make<Fingerprint>();

    const std::string instance = std::string(Fingerprint::descriptor) + "/virtual";
    binder_status_t status = AServiceManager_addService(hal->asBinder().get(), instance.c_str());
    binder_status_t status =
            AServiceManager_registerLazyService(hal->asBinder().get(), instance.c_str());
    CHECK_EQ(status, STATUS_OK);

    ABinderProcess_joinThreadPool();