0

I'm trying to implement the Android Face Authentication HIDL (https://source.android.com/docs/security/features/biometric/face-authentication) in Java for face authentication feature in a custom Android 10 build.

I've already generated the IBiometricsFace interface and created a class FaceService that extends IBiometricsFace.Stub. In SystemServer, I created a new instance of my FaceService class and registered it using

private void run() {
    ...

    FaceService faceService = new FaceService ();
    faceService.registerService("android.hardware.biometrics.face@1.0::IBiometricsFace");

    ...

The documentation says that faced must register itself with the name IBiometricsFace@1.0 so the system FaceService could find it, but inspecting the FaceService source I've discovered that it calls getService with the name used above. Should I assume that the documentation is outdated?

0 Answers0