简体   繁体   English

是否有 API/库将返回 Android 应用程序的身份验证级别

[英]Is there an API/Library that will return the Authentication Level of an Android Application

I'm currently writing an android app where I use PackageManager to get all of the installed applications on the device.我目前正在编写一个 android 应用程序,我使用 PackageManager 来获取设备上所有已安装的应用程序。 I want to order them in a recyclerView based on their level of authentication (if they require a fingerprint, passcode, or facial recognition to use).我想根据他们的身份验证级别(如果他们需要指纹、密码或面部识别来使用)在 recyclerView 中订购它们。 Is there any library or API out there that can get me close to something like this?是否有任何图书馆或 API 可以让我接近这样的东西?

Thanks!谢谢!

Is there any library or API out there that can get me close to something like this?是否有任何图书馆或 API 可以让我接近这样的东西?

No. You can use PackageManager to see what apps request the USE_FINGERPRINT or USE_BIOMETRICS permissions.不可以。您可以使用PackageManager来查看哪些应用程序请求USE_FINGERPRINTUSE_BIOMETRICS权限。 However:然而:

  • You have no idea to what extent the app is using those permissions您不知道应用程序在多大程度上使用了这些权限

  • That may not cover device-specific proprietary SDKs (eg, Samsung's)这可能不包括特定于设备的专有 SDK(例如,三星的)

  • You have no way of determining if an app requires a password or other forms of authentication您无法确定应用程序是否需要密码或其他 forms 身份验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM