1.查看连接计算机的设备
adb devices [-l] #-l表示 will also list device qualifiers
2.push文件到设备
adb push [-p]<local><remote> #-p表示传输进度
3.pull文件到计算机
adb pull [-p][-a]<remote>[<local>]
4.查找当前活动
adb shell dumpsys activity |find "mFocuedActivity" #启动一个应用时使用
5.启动应用
adb shell am start com.android.package/.activity #结合上一个命令,查询到启动应用的activity
6.点击某个坐标
adb shell input tap x y
7.给文本中添加文字
adb shell input text 文本