欢迎来到天天文库
浏览记录
ID:8810234
大小:39.00 KB
页数:4页
时间:2018-04-08
《windows平台下adb的安装与使用》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、Windows平台下ADB的安装与使用?AndroidSDK(如觉SDK文件过大,也可以只准备G1的USBforWindows驱动和ADB工具包)?WinRAR?G1(HTCDream)?数据线*********************************************设置手机点击“设置(Settings)”-->“应用程序(Applications)”-->“开发(Development)”-->勾选“USB调试(USBDebugging)”*******************************************
2、**安装驱动用数据线将手机和电脑连接起来,但千万不要选择“挂载(装载)”!当电脑发现新硬件后,安装好USB驱动(如果你不会装驱动,请移步这里)。如果你使用的AndroidSDK包,驱动在SDK包下的usb_driver目录下。*********************************************安装ADB将AndroidSDK包中tools目录下的adb.exe和AdbWinApi.dll复制到Windows下的system32目录下。如果你使用ADB工具包,可直接解压缩至system32目录。附:ADB文件浏览器工具(下
3、载)下载解压缩后可直接使用,使用前确保你的手机与电脑相连,并且未“挂载”。双击“ADBFileExplorerv03.exe”文件,你就可以看到你手机里的文件了(窗口右侧)。*********************************************在cmd中输入adb可以获得adb使用文档,具体如下1.-d-directscommandtotheonlyconnectedUSBdevice2.returnsanerrorifmorethanoneUSBdeviceispresent.3.-e-directscommandtot
4、heonlyrunningemulator.4.returnsanerrorifmorethanoneemulatorisrunning.5.-s-directscommandtotheUSBdeviceoremulatorwith6.thegivenserialnumber7.-p-simpleproductnamelike'sooner',or8.arelative/absolutepathtoaproduct9.outdirectorylike'out/target/product/sooner'.10.11.If-pisnotspec
5、ified,theANDROID_PRODUCT_OUT12.13.environmentvariableisused,whichmust14.beanabsolutepath.15.devices-listallconnecteddevices16.17.devicecommands:18.adbpush-copyfile/dirtodevice19.adbpull-copyfile/dirfromdevice20.adbsync[]-copyhost->deviceonlyifchanged21.(see'adbhelpall')22.a
6、dbshell-runremoteshellinteractively23.adbshell-runremoteshellcommand24.adbemu-runemulatorconsolecommand25.adblogcat[]-Viewdevicelog26.adbforward-forwardsocketconnections27.forwardspecsareoneof:28.tcp:29.localabstract:30.localreserved:31.localfilesystem:32.dev:33.jdwp:(remot
7、eonly)34.adbjdwp-listPIDsofprocesseshostingaJDWPtransport35.36.adbinstall[-l][-r]-pushthispackagefiletothedeviceandinstal37.lit38.('-l'meansforward-locktheapp)39.('-r'meansreinstalltheapp,keepingitsdata40.)41.adbuninstall[-k]-removethisapppackagefromthedevice42.('-k'meanske
8、epthedataandcachedirectories43.)44.adbbugreport-returnallinformationfromthedevice4
此文档下载收益归作者所有