I want to ask how should I test my fingerprint authentication on Android Emulator?
I was trying to use
adb -e emu finger touch [finger_id]
referred from link here but it seems to be not working with my Emulator.
My Emulator is Targeting API 23, Android 6.0, x86_64.
Any help will be appreciated.
Thanks
Hi you have to connect to Telnet even if you're using Mac:
then enter the cmd to authenticate
your authentication token is in this file '/Users/yourname/.emulator_console_auth_token'
then you have to register the finger print before to use the command. So go in Settings -> Security -> Fingerprint -> Add fingerprint and launch the command on terminal
Now your fingerprint with ID 1 is enrolled and you can use it to authenticate
Adding to above answer of "br00"
If you are using Windows then please do below steps.
1.) Check if you have telnet installed or not. Simply run "telnet" command in cmd prompt. If it say command not found. Then install telnet using below link:
https://technet.microsoft.com/en-us/library/cc771275(v=ws.10).aspx
For me its simply in Windows 7
2.) Run emulator and check its id. Emulator id usually appears in title bar of Emulator. :5554 So id is 5554
3.) Enter below command in cmd prompt
4.) Add auth token in telnet window:
Usually you will find auth token at below path
Just open the file and copy the token and pass it in above command in telnet window
5.) then you have to register the finger print before to use the command. So go in Settings -> Security -> Fingerprint -> Add fingerprint
Now open your telnet session command window and enter following command:
Now your fingerprint with ID 1 is enrolled and you can use it to authenticate
6.) Repeat step 5 if you want to add multiple finger print. But make sure you always add new finger print id. Here is 1 in step 5.
7.) Now when you want to authenticate just use below command in telnet window:
That's It
It works as follows:
telnet 127.0.0.1 5554
followed byfinger touch 1
for instance. You can give any random number to test it out.follow these steps:
On Windows, you may have to run telnet 127.0.0.1 followed by finger touch
You can do it from Emulator itself
Go to Settings -> Security--> Set a device lock methos-->Create a pattern
Then click on FingerPrint to register some fingerprints
Now You can use fingerprints from emulator settings as shown in pic below