The USE_FINGERPRINT
and USE_BIOMETRIC
permissions are only present in the Fingerprint Android SDK for legacy reasons. These permissions are not required for the essential functioning of the SDK.
An app that depends on Fingerprint’s SDK for Android will automatically inherit these permissions. You can add the following lines to safely remove these permissions from your app’s AndroidManifest.xml
file:
<uses-permission
android:name="android.permission.USE_BIOMETRIC"
tools:node="remove" />
<uses-permission
android:name="android.permission.USE_FINGERPRINT"
tools:node="remove" />
Caution
The USE_FINGERPRINT
and USE_BIOMETRIC
permissions may be required by other SDKs that your app depends on. To ensure correct functionality is retained even after removing these permissions, we recommend:
- Check for the presence of these permissions in the manifest files of other dependent SDKs.
- Inspect the logs from Android’s Manifest Merger. These logs indicate where and how each part of the app’s final manifest was derived.
- Run Android Lint on your code after removing the permissions. If your app or dependent SDKs require any of the removed permissions, then Lint will generate errors for those.
Comments
0 comments
Article is closed for comments.