Android M fingerprint scanner on Android Emulator

前端 未结 6 706
刺人心
刺人心 2020-12-29 03:00

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]

6条回答
  •  不思量自难忘°
    2020-12-29 03:31

    Hi you have to connect to Telnet even if you're using Mac:

    telnet 127.0.0.1 5554
    

    then enter the cmd to authenticate

    auth yourtoken
    

    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

    finger touch 1
    

    Now your fingerprint with ID 1 is enrolled and you can use it to authenticate

提交回复
热议问题