shell 执行java 程序 sendkeyevents
来源:互联网 发布:苍の骑士团日服数据库 编辑:程序博客网 时间:2024/05/22 06:17
Sending KeyEvents to an application via adb
adb shell input text <text_without_spaces>adb shell input keyevent <key_code>
or as an example how to send the <space> character:
adb shell input keyevent 62
For key codes refer to KeyEvent Documentation or check source code KeyEvent.java.
Let's check out, how that 'input' command is implemented:
# which input
/system/bin/input
# cat system/bin/input
...
exec app_process $base/bin com.android.commands.input.Input $*
Remark: the command input is a shell script which on the other hand is implemented as java code. The unquoted parameter in a script file $* makes handling of <spaces> between words a little bit more tricky, so in fact the commandinput text "my text" would not work as expected. As an example and workaroundsendtext.pl.gz will call com.android.commands.input.Input directly using app_process command.
- shell 执行java 程序 sendkeyevents
- 用Shell 执行java 程序
- linux 使用 java 程序执行 shell命令
- Java程序SSH远程执行Shell脚本
- Java程序定时执行shell脚本
- 利用java程序执行shell命令
- java程序执行shell脚本Demo
- 执行shell程序方法
- 一个用shell写的执行java程序的脚本
- java执行shell命令或者脚本,返回结果到程序
- linux的shell命令检测某个java程序是否执行
- java 执行shell
- java执行shell命令
- JAVA SHELL脚本执行
- shell java 执行
- java执行shell脚本
- JAVA执行Shell命令
- Java 执行shell 脚本
- 卸载使用wubi安装的ubuntu系统
- NetFlow技术与网络流量分析仪
- 申请IDP图文教程
- ICE Manual(Documentation for Ice 3.5)---The Ice Run Time in Detail(Time Out)
- Latch Free(闩锁释放)
- shell 执行java 程序 sendkeyevents
- poj 1465
- PHP 常用自定义函数
- JS 获取GET传值 函数
- POJ 3041 Asteroid (二分匹配模板-二分图最小覆盖)
- 【xinfanqie】熟知Win7系统收藏夹的功效
- 程序员之相亲记(一)
- Linux下查看文件和文件夹大小的df和du命令
- Android应用框架无边界