脚本系列-----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
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
相关文章推荐
- MVC,MVP 和 MVVM 的图示
- 抓水王
- [转]HQL中的子查询
- linux top命令查看内存及多核CPU的使用讲述
- UV油墨的性能改变
- Hibernate 缓存机制全面讲解
- wonderware配置-Historian配置导入导出 5
- java.lang.NoSuchMethodError: android.os.StatFs.getAvailableBlocksLong
- Hibernate 缓存机制全面讲解
- 机器学习—Andrew Ng 中文翻译版帮助理解
- 梦断代码阅读笔记02
- mysql、mysqli、pdo使用
- python paramiko模块安装和使用
- viewpager中点击item问题,viewpager中onclick失效问题
- 友元
- 关于SDN和OpenFlow 它们的特点和区别
- 自动保存用户名密码功能:autocomplete详解
- 面包屑导航
- 第13章 线程安全与锁优化
- Web前端程序员推荐7个实用的JavaScript工具