android按键模拟测试

命令:

$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 82                //MENU

$ input keyevent 22                //右键

 

获得按键信息

adb shell getevent

你可能感兴趣的:(android按键模拟测试)