ADB常见命令
- adb connect ip[:port]:连接Android开发板(要求开发板开启ADB服务)
- adb disconnect ip:断开与Android开发板的连接
- adb shell:进入Android开发板的linux系统
- adb shell input keyevent + 对应的键值:模拟手机按键操作
/** Key code constant: Home key.
* This key is handled by the framework and is never delivered to applications. */
public static final int KEYCODE_HOME = 3; //Home键
/** Key code constant: Back key. */
public static final int KEYCODE_BACK = 4; //Back键
/** Key code constant: Call key. */
public static final int KEYCODE_CALL = 5; //打电话
/** Key code constant: End Call key. */
public static final int KEYCODE_ENDCALL