Authentification using biometrics/fingerprint

Hello.
Does anyone know if it’s possible to use the fingerprint from your device settings, to pass the authentication process, without the need to manually put the fingerprint on my phone screen?
I’m using a real device, and I’m mirroring it with Vysor. Everything is going well, but now I have this biometric modal, where I should use my fingerprint. How can I make it automated, so that it will use the fingerprint from settings?

Hi @mirela,

I see 2 potential approaches to this, I have no experience with either, but hopefully this will give you ideas to investigate :crossed_fingers:

  1. Is a software only solution, my understanding is the application is calling the operating system’s biometric api and asking the operating system (OS) to do the confirmation / authentication of the user.
  • If the OS allows alternative authentication modules
  • and you can find alternative authentication module that can be loaded that will not actually authenticate but just returns a true or a response based on a call you make to the module, then this could be then integrated to your tests

Obviously option 1 is purely hypothetical, I don’t know if it’s possible, you’ll need to do some research on that, it may not because I could see this being a big security issue.

  1. Is a hardware solution,
  • there are many pens with a pretend finger tip, that are designed to operate a phone in cold climates when wearing gloves, maybe you can trick the fingerprint reader to register one of these pens (or some other physical device) as a valid fingerprint
  • once you have a non-human “fingerprint” recognised then you set up mechanism to press the fingerprint reader with that pen (or other object)
  • then use some electromechanical device (solenoid, motor, etc) to move the mechanism
  • then connect the electromechanical device to a raspberry pi or similar, or maybe even directly to your test machine via usb
  • from here it should be easy to write some python to control the electromechanical device to press the fingerprint reader, and this python code can easily be called from robot framework

I don’t know of an out of the box solution for option 2, you’d have to build something, it depends on how often you need to deal with this authentication process and on how many devices whether or not it’s easier for you to just press the reader yourself?

I hope that helps,

Dave.

Hi,

Found this for the first idea for android:

Seems there is ios commands too:
xcrun simctl biometric touch enable

Regards
Charlie

1 Like