定位adb路径
进入android sdk路径下的platform-tools目录下
1 2 3 4
| ~/Library/Android/sdk/platform-tools
C:\DevelopmentTools\Android\sdk\platform-tools
|
连接设备
1 2 3 4 5 6 7 8
| ./adb connect 192.168.2.162:5555
./adb devices
./adb disconnect
./adb shell
|
常用操作及命令
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| ./adb logcat
./adb logcat -b main -b system -b radio -b events -v time > C:\Users\xuan\Desktop\log.txt
./adb shell input text hell0
./adb shell input keyevent 61
./adb pull /sdcard/a.txt
./adb push a.txt /sdcard/
./adb install a.apk
|
参考
KEYCODE列表