Code Monkey home page Code Monkey logo

fingerlock's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fingerlock's Issues

Dialog With Custom Icons, Text, & Text Colors

This is more of a feature request in the future, but would it be possible for the out of the box dialog to be customizable to include options to change the text, text color, and icons? I was thinking something like:

FingerprintDialog.Builder()
    .with(MyActivity.this)
    .setKeyName(KEY_NAME)
    .setRequestCode(SOME_REQUEST_CODE)
    .setDialogTitle("Fingerprint Sign In")
    .setDialogMessage("Use fingerprint to sign in.")
    .setScanningMessage("Place finger on sensor")
    .setScanningDrawable(myScanningIcon)
    .setScanningMessageColor(R.color.myCustomColor)
    .setAuthenticatedMessage("Success!")
    .setAuthenticatedDrawable(mySuccessIcon)
    .setAuthenticatedMessageColor(R.color.myCustomColor)
    .setFailedMessage("Fingerprint not recognized. Try Again.")
    .setFailedDrawable(myFailedIcon)
    .setFailedMessageColor(R.color.myCustomColor)
    .show()

I realize I could create one from scratch, but I really like the one included in the library and just want to change the icon colors and text colors :)

FINGERPRINT_PERMISSION_DENIED, FINGERPRINT_NOT_SUPPORTED and FINGERPRINT_REGISTRATION_NEEDED is misused.

`
@OverRide
public boolean isFingerprintAuthSupported() {
invalidContext();

    // check permissions
    int granted = ContextCompat.checkSelfPermission(mContext, android.Manifest.permission.USE_FINGERPRINT);
    if (granted != PackageManager.PERMISSION_GRANTED) {
        // not granted
        return false;
    }

    // return hardware support
    //noinspection MissingPermission
    return mFingerprintManager != null
            && mFingerprintManager.isHardwareDetected()
            && mFingerprintManager.hasEnrolledFingerprints();

}

`

Currently,

FINGERPRINT_PERMISSION_DENIED and FINGERPRINT_REGISTRATION_NEEDED will also return FINGERPRINT_NOT_SUPPORTED, which is misleading.

FINGERPRINT SCAN NOT WORKING

Hi,
I tried to use this project to learn about the fingerprint in android.
After installation, the Authenticate using Fingerprint is just showing an option but not working.
Can you suggest the possible solution?

Update the Docs

Hey, great library !!
if possible can you update the the doc with an example with a fragment, because after a little looking around in the source files of the lib the method initialize takes only an AppCompatActivity as a parameter.

Handling FingerprintManager.FINGERPRINT_ERROR_LOCKOUT Through onFingerLockError()?

After I perform afingerLockManager.start() and I purposely scan a bad fingerprint 5 times. This makes the Google API return a FingerprintManager.FINGERPRINT_ERROR_LOCKOUT error, which states:

The operation was canceled because the API is locked out due to too many attempts.

However, when onFingerLockError() is fired, the error type is FingerLock.FINGERPRINT_UNRECOVERABLE_ERROR. Is this the correct behavior?

I would assume that FingerLock.FINGERPRINT_UNRECOVERABLE_ERROR is an unknown or unrecoverable error. Does this mean it's a FingerprintManager.FINGERPRINT_ERROR_LOCKOUT? How would I specifically handle FingerprintManager.FINGERPRINT_ERROR_LOCKOUT error if an "unrecoverable error" could be anything?

Removing Registered Fingerprints From Device Results In Unexpected Error

Description

When FingerLock is initialized after previously registered fingerprints were deleted from Android Settings produces an unexpected error. The error returned is FINGERPRINT_NOT_SUPPORTED, when it should be FINGERPRINT_REGISTRATION_NEEDED

Steps To Reproduce

  1. Register a fingerprint with device in Android settings.
  2. Calling FingerPrintManager.start() should work as expected with successful fingerprint scan.
  3. Stop the App.
  4. Go into Android Settings and remove all registered Fingerprints.
  5. Restart the App and perform a FingerprintManager.initalize()

Expected Result

onFingerLockError() should fire with FingerLockErrorState == FINGERPRINT_REGISTRATION_NEEDED

Actual Result

onFingerLockError() fires but FingerLockErrorState == FINGERPRINT_NOT_SUPPORTED

Gets stuck on Redmi Note 4

And a bunch of other devices.

Writing this here so others don't go crazy as well.

I get a call to onFingerLockScanning(true) and then attempt using the fingerprint scanner, but nothing is registered. It turns out that the system sometimes locks out the fingerprint scanner (and this locking out behavior is apparently not standardized, note that this is not the same as that "5 max attempts in whatever seconds" lock out) and apparently we have no way of detecting the lock out. The behavior seems to differ based on different manufacturer's. Everything works perfectly on the emulator, but fingerprint scanning randomly stops on seemingly random devices. Like redmi note 4.

At the very least, I'd love to have a way of knowing whether or not it'll work so I can, at the very least, fall back to other auth methods.

If anybody knows of a solution, please share :)

Galaxy s5 "Fingerprint authentication not supported in this device"

Hi
I tried this app on my Samsung Galaxy S5 (SM-G900F) with Android 6.0.1. This device is equipped with fingerprint scaner.
I have defined fingerprints and I use this method to unlock my lock screen.
I have tried to use other app like "Finger Security" and it's working normally.

But when I try to use this app I get this message "Fingerprint authentication not supported in this device"
What can I do to make this app work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.