Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adb shell 通过截图和模拟点击进行操作 #100

Open
landv opened this issue Oct 8, 2024 · 0 comments
Open

adb shell 通过截图和模拟点击进行操作 #100

landv opened this issue Oct 8, 2024 · 0 comments

Comments

@landv
Copy link
Owner

landv commented Oct 8, 2024

截图

adb shell screencap -p /sdcard/screenshot.png
adb pull /sdcard/screenshot.png ./s.png

开启网络调试

adb tcpip 5555

点亮屏幕

adb shell input keyevent 224

滑动

adb shell input swipe 300 2000 300 500

输入密码或者字符

adb shell input text 123456

其他

adb shell input keyevent 3 用于发送 Home 键事件,相当于按下设备的 Home 按钮。
adb shell input keyevent 26 用于发送电源键事件,通常用于锁定或解锁设备屏幕。

adb shell input tap 768 1990 用于模拟在设备屏幕上的指定坐标 (768, 1990) 处执行一次点击操作。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant