Android命令
cnisme
在校研究生,计算机科学与技术
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
写android自动化测试脚本命令
每隔1秒重复操作某一按钮: #!/system/bin/sh i=0 while i=$((i+1)) do echo "snapshot $i times" input tap 400 1240 sleep 1.0 done 按键操作命令: adb shell input keyevent "value" value值可以通过按键时打印adb logc原创 2014-04-09 12:52:43 · 1167 阅读 · 0 评论 -
获取点屏事件并生成点屏adb命令
不多说,看脚本: #!/bin/bash #touch_event="/dev/input/event1" #touch_event="/dev/input/event2" touch_event="" while true do #a=`adb shell getevent -c 11 $touch_event | egrep "0035|0036" |原创 2015-07-25 15:39:07 · 1522 阅读 · 1 评论
分享