



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Windows平台下ADB的安装与使用?Android SDK(如觉SDK文件过大,也可以只准备G1的USB for Windows驱动和ADB工具包)?WinRAR?G1(HTC Dream)?数据线*设置手机点击“设置(Settings)”-“应用程序(Applications)”-“开发(Development)”-勾选“USB 调试(USB Debugging)”*安装驱动用数据线将手机和电脑连接起来,但千万不要选择“挂载(装载)”!当电脑发现新硬件后,安装好USB驱动(如果你不会装驱动,请移步这里)。如果你使用的Android SDK包,驱动在SDK包下的usb_driver目录下。*安装ADB将Android SDK包中tools目录下的 adb.exe 和 AdbWinApi.dll 复制到 Windows下的 system32 目录下。如果你使用ADB工具包,可直接解压缩至 system32 目录。附:ADB文件浏览器工具(下载)下载解压缩后可直接使用,使用前确保你的手机与电脑相连,并且未“挂载”。双击“ADB File Explorer v03.exe”文件,你就可以看到你手机里的文件了(窗口右侧)。*在 cmd 中输入 adb 可以获得 adb 使用文档,具体如下1.-d - directs command to the only connected USB device2.returns an error if more than one USB device is present.3.-e - directs command to the only running emulator.4.returns an error if more than one emulator is running.5.-s - directs command to the USB device or emulator with6.the given serial number7.-p - simple product name like sooner, or8.a relative/absolute path to a product9.out directory like out/target/product/sooner.10.11.If -p is not specified, the ANDROID_PRODUCT_OUT12.13.environment variable is used, which must14.be an absolute path.15.devices - list all connected devices16.17.device commands:18.adb push - copy file/dir to device19.adb pull - copy file/dir from device20.adb sync - copy host-device only if changed21.(see adb help all)22.adb shell - run remote shell interactively23.adb shell - run remote shell command24.adb emu - run emulator console command25.adb logcat - View device log26.adb forward - forward socket connections27.forward specs are one of:28.tcp:29.localabstract:30.localreserved:31.localfilesystem:32.dev:33.jdwp: (remote only)34.adb jdwp - list PIDs of processes hosting a JDWP transport35.36.adb install -l -r - push this package file to the device and instal37.l it38.(-l means forward-lock the app)39.(-r means reinstall the app, keeping its data40.)41.adb uninstall -k - remove this app package from the device42.(-k means keep the data and cache directories43.)44.adb bugreport - return all information from the device45.that should be included in a bug report.46.47.adb help - show this help message48.adb version - show version num49.50.DATAOPTS:51.(no option) - dont touch the data partition52.-w - wipe the data partition53.-d - flash the data partition54.55.ing:56.adb wait-for-device - block until device is online57.adb start-server - ensure that there is a server running58.adb kill-server - kill the server if it is running59.adb get-state - prints: offline | bootloader | device60.adb get-serialno - prints: 61.adb status-window - continuously print device status for a specifie62.d device63.adb remount - remounts the /system partition on the device re64.ad-write65.adb root - restarts adb with root working:68.adb ppp parameters - Run PPP over USB.69.Note: you should not automatically start a PDP connection.70.refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty171.parameters - Eg. defaultroute debug dump local notty usepeerdns72.73.adb sync notes: adb sync 74.can be interpreted in several ways:75.76.- If is not specified, both /system and /data partitions will be u77.pdated.78.79.- If it is system or data, only the corresponding partition80.is updated.常用命令?adb shell - 登录设备shell,后面也可直接跟运行命令。如:adb shell rm -r /system/sd/app?adb pull - 从手机中下载文件到电脑上。如:adb pull /data/app_s/Stock.apk C:Stock
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 合同书与协议书
- 2025 车辆买卖合同范本(标准版)
- 黑龙江省安达市四平中学2026届数学九年级第一学期期末统考试题含解析
- 2025转让股权合同 转让股权合同范本
- 山东省济宁市邹城市九级2026届八年级数学第一学期期末达标检测模拟试题含解析
- 浙江省湖州市实验学校2026届数学九年级第一学期期末考试试题含解析
- 2026届湖北省襄阳市老河口市七年级数学第一学期期末综合测试试题含解析
- 2025网约车租赁合同的模板范文
- 在线教育行业现状与未来展望研究报告
- 2025合同范本股权激励协议附带保密条款示例
- 2025年初级药师资格考试试题(附答案)
- 人工智能与建筑产业体系智能化升级研究报告
- 包覆拉拔法制备铜包铝、铜包钢双金属导线的多维度探究与展望
- 茶叶农药知识培训课件
- 【2025秋季新修订教材】统编语文三上第六单元《19 香港璀璨的明珠》公开课一等奖创新教学设计
- 人教版数学二年级上册第一单元 分类与整 理 综合素养测评A卷(含答案)
- 临床带教老师
- 课题2 碳的氧化物(第1课时)教学课件九年级化学上册人教版2024
- GB/T 4732.2-2024压力容器分析设计第2部分:材料
- 中国近现代史纲要(河北工业大学)智慧树知到答案2024年河北工业大学
- 多模式数据融合在金融预测中的应用
评论
0/150
提交评论