命令:
$adb shell input keyevent keyCode
keyCode see frameworks/native/include/android/keycodes.h,
for example
$adb shell
$ input keyevent 8 //1
$ input keyevent 29 //A
$ input keyevent 3 //HOME
$ input keyevent 4 //BACK
$ input keyevent 19 //UP
$ input keyevent 20 //DOWN
$ input keyevent 21 //LEFT
$ input keyevent 22 //RIGHT
$ input keyevent 66 // enter
$ input keyevent 82 //MENU
模拟touch
adb shell input tap 250 250
模拟滑动
adb shell input swipe 500 800 500 100
获得按键信息
adb shell getevent