您的位置:首页 > 其它

脚本系列-----aging camera

2016-05-20 17:08 323 查看
matthew@matthew:/media/matt2/0511$ adb shell

root@ASUS_Z00T:/ # nohup system/bin/aging_camera.sh

这样就能后台执行

root@ASUS_Z00T:/ # input touchscreen tap 210 2b6

Error: Invalid arguments for command: tap

Usage: input [<source>] <command> [<arg>...]

The sources are:

mouse

keyboard

joystick

touchnavigation

touchpad

trackball

stylus

dpad

touchscreen

gamepad

The commands and default sources are:

text <string> (Default: touchscreen)

keyevent [--longpress] <key code number or name> ... (Default: keyboard)

tap <x> <y> (Default: touchscreen)

swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen)

press (Default: trackball)

roll <dx> <dy> (Default: trackball)

while [ 1 ]

do

am start com.asus.camera/com.asus.camera.CameraApp

sleep 10

input touchscreen tap 210 210

sleep 5

input touchscreen tap 210 220

sleep 5

input touchscreen tap 210 230

sleep 5

input touchscreen tap 210 240

sleep 5

input touchscreen tap 210 250

sleep 5

input touchscreen tap 210 260

sleep 5

input touchscreen tap 210 270

sleep 5

input touchscreen tap 210 280

sleep 5

am force-stop com.asus.camera

sleep 20

am start com.asus.camera/com.asus.camera.CameraApp

sleep 10

input touchscreen tap 315 1794

sleep 5

input touchscreen tap 210 220

sleep 5

input touchscreen tap 210 230

sleep 5

input touchscreen tap 210 240

sleep 5

input touchscreen tap 210 250

sleep 5

input touchscreen tap 210 260

sleep 5

input touchscreen tap 210 270

sleep 5

input touchscreen tap 210 280

sleep 5

am force-stop com.asus.camera

sleep 20

done
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: