adb (Android Debug Bridge) Android 调试桥
2010-03-25 16:45:00 来源:WEB开发网- If it is a path to a local directory, the name is examined to see if
it points to a directory named ".../system" or ".../data", or if
the directory contains subdirectories with those names. If so, it pushes
the appropriate directory/ies to the device.
- If the name of the local directory does not match ".../system" or
".../data", it is treated like an "system" directory.
- If
引用
adb [-d|-e|-s
查询模拟器/设备:
引用
adb devices
若没有:
引用
D:WINDOWSsystem32>adb devices
List of devices attached
启动一个模拟器
引用
D:WINDOWSsystem32>emulator
emulator: emulator window was out of view and was recentred
若有:
引用
D:WINDOWSsystem32>adb devices
List of devices attached
emulator-5554 device
Serial number :惟一的模拟器/设备的标识符.
格式:
比如: emulator-5554
State:连接状态
offline :没有adb连接
device :有 adb连接
直接连接指定模拟器/设备,根据设备 Serial number.
引用
adb -s
直接连接指定模拟器/设备, 根据设备 Serial number.并执行命令.
引用
adb -s emulator-5556 install helloWorld.apk
安装应用程序
引用
adb install
端口转发
引用
adb forward tcp:6100 tcp:7100
可以使用 抽象 UNIX 域套接字:
引用
adb forward tcp:6100 local:logd
文件操作
拷出:
引用
更多精彩
赞助商链接