通过ADB命令模拟按键的短按和长按
作者:互联网
模拟长按:
adb shell input keyevent --longpress KEYCODE_POUND
模拟短按:
adb shell input keyevent KEYCODE_POUND
具体KEYCODE请参考:http://androidxref.com/9.0.0_r3/xref/frameworks/base/core/java/android/view/KeyEvent.java
标签:java,input,keyevent,短按,ADB,按键,adb,KEYCODE 来源: https://blog.csdn.net/qq_35670215/article/details/116491963