WEB开发网      婵犻潧鍊婚弲顐︽偟椤栨稓闄勯柦妯侯槸閻庤霉濠婂骸浜剧紒杈ㄥ笚閹峰懘鎮╅崹顐ゆ殸婵炴垶鎸撮崑鎾趁归悩鐑橆棄闁搞劌瀛╃粋宥夘敃閿濆柊锕傛煙鐎涙ê鐏f繝濠冨灴閹啴宕熼鍡╀紘婵炲濮惧Λ鍕叏閳哄懎绀夋繛鎴濈-楠炪垽鎮归崶褍妲婚柛銊ュ缁傚秹鏁撻敓锟� ---闂佹寧娲╅幏锟�
开发学院手机开发Android 开发 adb (Android Debug Bridge) Android 调试桥 阅读

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 ifit points to a directory named ".../system" or ".../data", or ifthe di

- 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 points to a nonexistent directory, adb sync will fail.

引用

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

文件操作

拷出:

引用

上一页  1 2 3 4 5 6 7  下一页

Tags:adb Android Debug

编辑录入:coldstar [复制链接] [打 印]
赞助商链接