Pav*_*vol 5 android biometrics fingerprint adb
我正在尝试使用 adb 命令行将指纹注册到 android 模拟器。
我知道我可以使用以下命令设置 PIN:
adb shell locksettings set-pin 1111
Run Code Online (Sandbox Code Playgroud)
我可以这样输入安全设置:
adb shell am start -a android.settings.SECURITY_SETTINGS
Run Code Online (Sandbox Code Playgroud)
我可以使用以下方式将指纹触摸到传感器:
adb -e emu finger touch 1
Run Code Online (Sandbox Code Playgroud)
但有没有办法录入指纹呢?谢谢你!!
以下是仅使用 adb 命令在模拟器上注册指纹的步骤(在 x86_64、Google API 28 模拟器上测试):
$ adb shell locksettings set-pin 1111
Run Code Online (Sandbox Code Playgroud)
$ adb shell am start -a android.settings.SECURITY_SETTINGS
Run Code Online (Sandbox Code Playgroud)
$ adb shell input tap 274 1469
Run Code Online (Sandbox Code Playgroud)
$ adb shell input tap 914 1704
Run Code Online (Sandbox Code Playgroud)
注意:通过启用“开发人员选项”设置下的“显示触摸位置”,可以在同一模拟器上获取点击的坐标。
$ adb shell input text 1111 && adb shell input keyevent 66
Run Code Online (Sandbox Code Playgroud)
$ adb -e emu finger touch 1
Run Code Online (Sandbox Code Playgroud)
$ adb shell input tap 914 1704
Run Code Online (Sandbox Code Playgroud)
更新:要查找单击/点击操作的位置(例如914 1704),请启用附图Pointer location中的Developer Option
| 归档时间: |
|
| 查看次数: |
5835 次 |
| 最近记录: |