BiometricManager | 指纹认证识别库,android 官方API实现指纹识别框架,支持android 60以上, 可以识别到指纹数据是否发生变化

 by   LambdaXiao Java Version: v1.1.0 License: Apache-2.0

kandi X-RAY | BiometricManager Summary

kandi X-RAY | BiometricManager Summary

BiometricManager is a Java library. BiometricManager has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

指纹认证识别库,android 官方API实现指纹识别框架,支持android 6.0以上, 可以识别到指纹数据是否发生变化.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              BiometricManager has a low active ecosystem.
              It has 24 star(s) with 4 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of BiometricManager is v1.1.0

            kandi-Quality Quality

              BiometricManager has 0 bugs and 0 code smells.

            kandi-Security Security

              BiometricManager has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              BiometricManager code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              BiometricManager is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              BiometricManager releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 1175 lines of code, 70 functions and 30 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed BiometricManager and discovered the below as its top functions. This is intended to give you an instant insight into BiometricManager implemented functionality, and help decide if they suit your requirements.
            • Authenticate user
            • Init cipher
            • Save enable finger data change
            • Creates a cipher
            • Returns a new instance of FingerDialog
            • Gets the title of the dialog
            • Returns the negative text text
            • Gets the des des
            • Called when the widget is created
            • Create key
            • Check if the preference has been changed
            • Check support
            • Create a fingerprint manager
            • Get the finger manager
            • Initialize view
            • Authenticate
            • Registers dialog
            • Called when the button has failed
            • Checks if the fingerprint data is enrolled in the context
            • Checks if is hardware detected
            • Notifies the dialog
            • Override this method to handle state transitions
            • Handle the help dialog
            Get all kandi verified functions for this library.

            BiometricManager Key Features

            No Key Features are available at this moment for BiometricManager.

            BiometricManager Examples and Code Snippets

            快速集成
            Javadot img1Lines of Code : 49dot img1License : Permissive (Apache-2.0)
            copy iconCopy
            allprojects {
            		repositories {
            			...
            			maven { url 'https://jitpack.io' }
            		}
            	}
            
            implementation 'com.github.LambdaXiao:BiometricManager:v1.0.0'
            
            findViewById(R.id.btn1).setOnClickListener(new View.OnClickListener() {
                        @Override
                      
            如何监听指纹数据变化
            Javadot img2Lines of Code : 45dot img2License : Permissive (Apache-2.0)
            copy iconCopy
            /**
                 * @des 初始化Cipher ,根据KeyPermanentlyInvalidatedExceptiony异常判断指纹库是否发生了变化
                 *
                 */
                public boolean initCipher(Cipher cipher) {
                    try {
                        keyStore.load(null);
                        SecretKey key = (SecretKey) keyStore.getKey(KEYSTO  
            自定义android 9.0以下弹窗
            Javadot img3Lines of Code : 6dot img3License : Permissive (Apache-2.0)
            copy iconCopy
            FingerManager.build().setApplication(getApplication())
            				.setTitle("指纹验证")
            				.setDes("请按下指纹")
            				.setNegativeText("取消")
            				.setFingerDialogApi23(new MyFingerDialog())
            				.setFingerCheckCallback()
              

            Community Discussions

            QUESTION

            Why is code introduced in API 29 working on an emulator running API 26?
            Asked 2022-Mar-18 at 14:00

            I am using BiometricManager (Introduced in Api 29) in a project with a minSdkVersion of 26.

            To my surprise, the project is compiling and running, I would have expected this to throw an error at buildtime. Am I missing something? Will this cause issues on release?

            Gradle:

            ...

            ANSWER

            Answered 2022-Mar-18 at 14:00

            I am using BiometricManager

            No, you are not... at least, not the one that you linked to. You linked to android.hardware.biometrics.BiometricsManager. Your code uses androidx.biometrics.BiometricsManager. Those are not the same class. The Jetpack (androidx) edition will have code that tries to support older devices gracefully.

            Source https://stackoverflow.com/questions/71528005

            QUESTION

            'canAuthenticate()' is deprecated in android
            Asked 2021-Jul-19 at 13:06

            What should I use instead of biometricManager.canAuthenticate() is deprecated.

            Doc says

            This method is deprecated. Use canAuthenticate(int) instead.

            ...

            ANSWER

            Answered 2021-Jul-19 at 13:06

            The direct replacement for your code would look something like:

            Source https://stackoverflow.com/questions/68440697

            QUESTION

            Android biometrics UserNotAuthenticatedException on fingerprint
            Asked 2021-Jul-06 at 08:32

            I'm using a SecretKey in my sample app for Mac-signing. The key is generated with builder parameter

            ...

            ANSWER

            Answered 2021-Jul-06 at 08:32

            I'm answering my own question, as my findings maybe helpful to others.

            Up to now (July 6th 2021) I do have no idea why a SecretKey that is generated with the option

            Source https://stackoverflow.com/questions/68245293

            QUESTION

            Face Authentication using androidx Biometric API in Android
            Asked 2020-Dec-16 at 09:02

            I need to integrate Biometric authentication using Fingerprint and Face authentication. Fingerprint authentication works perfectly but when I set only Face authentication I am getting Biometric not enrolled response from BiometricManager.from(context) method as follows,

            ...

            ANSWER

            Answered 2020-Sep-03 at 05:05

            Android Biometric APIs would only work on the devices which have their biometric features (face,fingerprint, iris) compatible with Android Biometric stack. I have a set of devices with Face feature support, among them only few support Android Biometrics.

            Source https://stackoverflow.com/questions/63629458

            QUESTION

            If both are available, does Android BiometricManager default to Face Recognition or Fingerprint?
            Asked 2020-Aug-26 at 05:29

            I do not have a device to test this scenario with, but I have seen a lot of people complaining that when both Face Recognition and Fingerprint were available on their device, the app decided to use Fingerprint authentication instead.

            I have not been able to find any article or documentation that talks about this preference, and I am not sure if those users were using BiometricPrompt vs BiometricManager.

            Does anyone know if both are available, does Android BiometricManager/BiometricPrompt default to Face/Iris recognition or Fingerprint? Also is there a way to force one over the other?

            ...

            ANSWER

            Answered 2020-Aug-26 at 05:29

            I had a similar kind of requirement, And after my research, I came to know as of now (Android 10) it depends on OEM's implementation to provide either fingerprint or face recognition for app's authentication.

            From Android R, there will be a way to get a prompt to choose authentication either fingerprint or facial.

            Please have a look at the below issues been raised for a similar requirement.

            https://issuetracker.google.com/issues/111315641

            Source https://stackoverflow.com/questions/63552869

            QUESTION

            EncryptedSharedPreferences isUserAuthenticationRequired not working properly
            Asked 2020-Jun-12 at 14:06

            I am using EncryptedSharedPreferences to store encrypted data.

            ...

            ANSWER

            Answered 2020-Jun-12 at 14:06

            I found the reason why it does not require authentication post 1 second. It is because, once the encrypted shared preference is intiated, it loads the keys used to encrypt and decrypt the data in the memory and then those are used to access the data from the files. You can read the code inside EncryptedSharedPreference class. This is pretty evident.

            Source https://stackoverflow.com/questions/62153438

            QUESTION

            Android 10 Biometric Manager Security
            Asked 2020-Mar-02 at 14:44

            Android is deprecating FingerprintManager in favor of BiometricManager since the end of 2019. The update is great news for developers and designers as they do not need to solve much of the tedious biometrics design and behavior.

            However...

            • This prevents developers from avoiding less secure biometric options, the only workaround seems to be falling back to using FingerprintManager in order to ensure a secure authentication method is used. Case in point: unlike Apple, Samsung did not solve Facial Recognition properly and security concerns force companies to not recognize all biometrics as equally secure.

            https://edit.theappbusiness.com/androidx-biometricprompt-vs-fingerprintmanager-the-good-and-the-ugly-c15a1b3a67d7

            Manufacturers like Samsung warn you about-face recognition not being a strong check as the device can be tricked with a picture. What if you are developing a banking app and concerned about the security and reliability of these new biometric authentication methods? What if you are designing and building an app that has to work just with fingerprints? Then the FingerprintManager comes into play.

            However, if you are concerned about the security of these new biometrics or have a design constraint and you want to restrict the biometric authentication to use just fingerprints, your best solution is to use the deprecated FingerprintManager.

            • In other news, Pixel 4 does not support Fingerprint authentication and instead implemented a secure Face ID technology that is able to be used by a variety of banking apps including Google Pay, etc.

            https://www.androidcentral.com/why-google-dropped-fingerprint-sensor-and-why-thats-bad-thing

            As you reach for Pixel 4, Soli proactively turns on the face unlock sensors, recognizing that you may want to unlock your phone. If the face unlock sensors and algorithms recognize you, the phone will open as you pick it up, all in one motion. Better yet, face unlock works in almost any orientation—even if you're holding it upside down—and you can use it for secure payments and app authentication too.

            The new best practice and the newer phones sound great but this complicates things when various OEM implement insecure biometrics. How are we, as application developers, supposed to be handling this conundrum?

            ...

            ANSWER

            Answered 2020-Mar-01 at 07:14

            Starting with Android 11 we can check for the Biometrics Authentication strength defined by BiometricManager.Authenticators. The Authenticators define whether the biometric is strong or weak.

            You can know more about it in the following link

            BiometricManager.Authenticators

            As of now only developer preview of Android 11 is out.So not sure how the final version of the Biometrics will be.

            Quoted from Android developers blog,

            You can learn more about the features in developer preview here,

            Android 11 developer Preview

            Source https://stackoverflow.com/questions/60219450

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install BiometricManager

            You can download it from GitHub.
            You can use BiometricManager like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the BiometricManager component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/LambdaXiao/BiometricManager.git

          • CLI

            gh repo clone LambdaXiao/BiometricManager

          • sshUrl

            git@github.com:LambdaXiao/BiometricManager.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Java Libraries

            CS-Notes

            by CyC2018

            JavaGuide

            by Snailclimb

            LeetCodeAnimation

            by MisterBooo

            spring-boot

            by spring-projects

            Try Top Libraries by LambdaXiao

            StockChart-MPAndroidChart

            by LambdaXiaoJava

            MyStock

            by LambdaXiaoJava

            awesome-module-kotlin

            by LambdaXiaoKotlin

            Notes

            by LambdaXiaoJava

            awesome-jetpack

            by LambdaXiaoJava