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

Commit adce6858 authored by Grace Cheng's avatar Grace Cheng
Browse files

Deprecate getSensorPropertiesInternal for FingerprintManager

Add deprecated tag on getSensorPropertiesInternal method due to unsafe
usage

Flag: NONE
Test: N/A
Fixes: 336219543
Change-Id: Icc38398ebb62abbffa9c44e32e6ee80238e84796
parent 944887a0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1189,6 +1189,10 @@ public class FingerprintManager implements BiometricAuthenticator, BiometricFing

    /**
     * Get statically configured sensor properties.
     * @deprecated Generally unsafe to use, use
     * {@link FingerprintManager#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
     */
    @RequiresPermission(USE_BIOMETRIC_INTERNAL)