26

I am Using Android Marshmallow, and Moto G4 plus a device for testing.

I want to create an application which will take the fingerprint input and saved in a local database(sqlite) Or to database, I mean which type we can take input and save it?

Community
  • 1
  • 1
Kuldeep Singh
  • 950
  • 1
  • 9
  • 17
  • @justchill use android Fingerprint API, available on Internet.. – Kuldeep Singh Dec 19 '18 at 10:46
  • @justchill https://github.com/googlesamples/android-FingerprintDialog follow this.. – Kuldeep Singh Dec 19 '18 at 10:46
  • Does this answer your question? [how to store fingerprint data along with username, image, email etc in database in android app](https://stackoverflow.com/questions/45813525/how-to-store-fingerprint-data-along-with-username-image-email-etc-in-database) – Mohamed Osman Jan 02 '20 at 12:00

3 Answers3

31

You can't get fingerprint template or image from android Fingerprint API. Fingerprint data are stored in a secure place by android system and are not accessible.

But you can ask the system to authenticate the user.

Here sample code

The doc, in section Fingerprint Authentication

LaurentY
  • 7,495
  • 3
  • 37
  • 55
  • 3
    Is there any way to get finger print and store in database ? or any SDK available for same purpose ? – Kels Jul 20 '17 at 09:07
  • @Kels Just save as base64 so you never have to worry about saving. – Kuldeep Singh Dec 19 '18 at 10:50
  • There is no logic here, because fingerprint id is the same as face id. But you CAN read raw data from camera, including face. – Dims Sep 02 '20 at 07:55
  • what if we want to use this finger scanner of android instead of external finger scanner any suggestion for it ? – Ahmad Aug 24 '21 at 17:28
12
  1. In technical terms, Android OS stores Fingerprints in TEE (stands for Trusted Execution Environment), TEE is separate and isolated area in phone's hardware or software depending on the way device is manufactured. TEE will never let us in even if device is rooted. Check this for more details about Trusty OS

  2. If your requirement is to get fingerprint signature (which is a critical practice from user's privacy point of view) you'll have to buy a 3rd party fingerprint scanner and integrate with your app.

NotABot
  • 781
  • 7
  • 24
  • 2
    If you've copy-pasted that from somewhere (I couldn't find a source at least), adding quotes needs to be done in combination with adding the source. Otherwise, this would be plagiarism. See [the referencing guide](/help/referencing). You don't appear to have copied this from anywhere, so please don't abuse the quote formatting. – Zoe Apr 03 '19 at 08:00
  • True, I havent copied it.. just a formatting issue. – NotABot Mar 28 '20 at 06:13
7

Although you can't get the fingerprint data from Android's Fingerprint API, you can get it using an external fingerprint scanner which often comes with its own SDK, just check with the manufacturer.

allanae
  • 145
  • 2
  • 12