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

Commit 8614af27 authored by Grace Cheng's avatar Grace Cheng
Browse files

Deprecate getSensorPropertiesInternal for FaceManager

Add deprecated tag on getSensorPropertiesInternal method due to unsafe usage

Flag: NONE
Test: N/A
Fixes: 336219543
Change-Id: Ib16794a97e7a4ff58b68d9a97380b4fbad4eb8a7
parent adce6858
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -732,6 +732,10 @@ public class FaceManager implements BiometricAuthenticator {


    /**
    /**
     * Get statically configured sensor properties.
     * Get statically configured sensor properties.
     * @deprecated Generally unsafe to use, use
     * {@link FaceManager#addAuthenticatorsRegisteredCallback} API instead.
     * In most cases this method will work as expected, but during early boot up, it will be
     * null/empty and there is no way for the caller to know when it's actual value is ready.
     * @hide
     * @hide
     */
     */
    @RequiresPermission(USE_BIOMETRIC_INTERNAL)
    @RequiresPermission(USE_BIOMETRIC_INTERNAL)