android / security-samples

Multiple samples showing the best practices in security APIs on Android.
Apache License 2.0
938 stars 395 forks source link

Is it possible to identify multiple fingers? #8

Closed codingjeremy closed 4 years ago

codingjeremy commented 5 years ago

Issue by AndroidDeveloperLB Saturday Nov 07, 2015 at 23:38 GMT Originally opened as https://github.com/googlesamples/android-FingerprintDialog/issues/20


For example, if finger 1 is scanned do something, and if finger 2 is scanned, do something else?

codingjeremy commented 5 years ago

Comment by AndroidDeveloperLB Saturday Nov 07, 2015 at 23:39 GMT


BTW, the sample here http://developer.android.com/samples/FingerprintDialog/index.html doesn't work like the reop here.

codingjeremy commented 5 years ago

Comment by thagikura Monday Nov 09, 2015 at 02:15 GMT


Hi,

It's not possible. Registered fingerprints are treated equally.

codingjeremy commented 5 years ago

Comment by AndroidDeveloperLB Monday Nov 09, 2015 at 06:16 GMT


Why ? It could be cool... For example, I could set that each would do something else. I could even make a gesture if the fingerprint sensor supports it... :(

codingjeremy commented 5 years ago

Comment by thagikura Monday Nov 09, 2015 at 06:57 GMT


Because each registered fingerprint can unlock device for the account who registered the fingerprint equally. At least for now, these are treated as equally.

Maybe in the future, there is a change that identify multiple fingerprints. But current Android M doesn't support it.

codingjeremy commented 5 years ago

Comment by AndroidDeveloperLB Monday Nov 09, 2015 at 07:32 GMT


Can you please consider adding it? It could even be cool as non-secure feature, so that for the foreground app, you could choose to have events for what happens for each type of finger. It could also perform tasks via the lock screen itself : call a specific person, open Google,...

codingjeremy commented 5 years ago

Comment by mariotaku Sunday Nov 15, 2015 at 12:53 GMT


@AndroidDeveloperLB Actually it's possible (through hidden API). See FingerprintManager.java#258 .

codingjeremy commented 5 years ago

Comment by AndroidDeveloperLB Sunday Nov 15, 2015 at 12:56 GMT


Cool, but using it might break in future releases.

codingjeremy commented 5 years ago

Comment by dientm Friday Jun 02, 2017 at 11:38 GMT


I am sorry for reopen this thread, I got a problem that I have to identify which fingerprint (registered) is scanned? For now I don't know is android support, or how to implement using hidden API? Can anyone give me an idea?

codingjeremy commented 5 years ago

Comment by mariotaku Friday Jun 02, 2017 at 12:01 GMT


@dientm Using reflection.

codingjeremy commented 5 years ago

Comment by dientm Friday Jun 02, 2017 at 12:03 GMT


@mariotaku: thank for your reply but actually I dont have to much experience with android. Can you show me some example of reflection in android?

codingjeremy commented 5 years ago

Comment by mariotaku Friday Jun 02, 2017 at 12:54 GMT


@dientm https://code.tutsplus.com/tutorials/learn-java-for-android-development-reflection-basics--mobile-3203

codingjeremy commented 5 years ago

Comment by poongodi90 Monday Sep 11, 2017 at 11:15 GMT


@dientm u did this multiuser fingerprint authentication?

codingjeremy commented 5 years ago

Comment by ZarSaeed Tuesday Apr 10, 2018 at 08:20 GMT


Please tell me have you solved your issue if yes than how?

codingjeremy commented 5 years ago

Comment by sohambannerjee8 Wednesday Aug 01, 2018 at 06:51 GMT


I am also looking for this solution.

codingjeremy commented 5 years ago

Comment by AndroidDeveloperLB Wednesday Aug 01, 2018 at 09:50 GMT


OK I wrote a suggestion about this here: https://issuetracker.google.com/issues/112066297