Android Debug Bridge version 1.0.26 - #当升级 Android SDK 后,ADB 也会随之升级。
adb [-d|-e|-s {<serialNumber>}] shell
-d - EN directs command to the only connected USB device returns an error if more than one USB device is present.
- CHS 该操作仅仅针对已经通过 USB 链接的移动设备,假设链接一台以上的移动设备会返回一个错误。 -e - EN directs command to the only running emulator. returns an error if more than one emulator is running.
- CHS 该操作仅仅针对模拟器,假设同一时候执行的模拟器数量大于一,会返回一个错误。 -s <serial number> - EN directs command to the USB device or emulator with the given serial number. Overrides ANDROID_SERIAL environment variable.
- CHS 该操作针对 USB 链接的设备 或 给定编号的模拟器,复写 serial number 为要操作的模拟器编号。 -p <product name or path> - EN simple product name like 'sooner', or a relative/absolute path to a product out directory like 'out/target/product/sooner'. If -p is not specified, the ANDROID_PRODUCT_OUT environment variable is used, which must be an absolute path.
- CHS 该操作针对 设备的名称 或 设备相对/绝对的路径。 假设未把设备的增加环境变量。必须给定一个绝对路径。 devices - EN list all connected devices
- CHS 列出全部已经链接或启动的设备清单 connect <host>[:<port>] - EN connect to a device via TCP/IP Port 5555 is used by default if no port number is specified.
- CHS 假设 connect 后面未赋值, 通过 TCP/IP 5555 端口链接设备。 disconnect [<host>[:<port>]] - EN disconnect from a TCP/IP device. Port 5555 is used by default if no port number is specified. Using this ocmmand with no additional arguments will disconnect from all connected TCP/IP devices.
- CHS 假设 disconnect 后面未赋值,断开 TCP/IP 5555 端口上的设备,也能够使用 ocmmand 參数断开全部已经链接的设备。 device commands: #针对设备的命令 adb push <local> <remote> - EN copy file/dir to device
- CHS 复制 文件/文件夹 到设备 adb pull <remote> [<local>] - EN copy file/dir from device
- CHS 从设备复制 文件/文件夹 adb sync [ <directory> ] - EN copy host->device only if changed (-l means list but don't copy) (see 'adb help all')
- CHS 同步文件夹 该操作仅仅针对 主机->设备 上的同步。 假设后面加 -l 意思为仅仅罗列不复制。 adb shell - EN run remote shell interactively
- CHS 执行交互式 shell 脚本 (和 Linux, Unix 有差别,微型操作基本同样) adb shell <command> - EN run remote shell command
- CHS 执行 shell 脚本 command 为參数 adb emu <command> - EN run emulator console command
- CHS 执行模拟器控制台命令 adb logcat [ <filter-spec> ] - EN View device log
- CHS 查看设备日志 (Eclipse logcat) adb forward <local> <remote> - EN forward socket connections forward specs are one of:
- CHS 从本地的 socket 链接转移到特定的一个移动设备,參数例如以下: tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only) adb jdwp - EN list PIDs of processes hosting a JDWP transport
- CHS 罗列 PIDs 进程寄宿 JDWP 传输 adb install [-l] [-r] [-s] <file> - EN push this package file to the device and install it
- CHS 给设备安装软件
('-l' means forward-lock the app) #锁定该程序
('-r' means reinstall the app, keeping its data) #又一次安装该程序,保存数据
('-s' means install on SD card instead of internal storage) #安装在SD卡内,而不是设备内部存储 adb uninstall [-k] <package> - EN remove this app package from the device
- CHS 从设备删除程序包
('-k' means keep the data and cache directories) #不删除程序执行所产生的数据和缓存文件夹(如软件的数据库文件) adb bugreport - EN return all information from the device that should be included in a bug report.
- CHS 返回全部的设备执行信息包含错误报告 adb help - EN show this help message
- CHS 显示帮助信息 adb version - EN show version num
- CHS 显示 adb 版本号 DATAOPTS: #数据操作
(no option) - don't touch the data partition
- CHS 请勿任意操作数据分区 -w - EN wipe the data partition
- CHS 擦拭数据分区 -d - EN flash the data partition
- CHS 针对闪存 scripting: #脚本
adb wait-for-device - EN block until device is online
- CHS 等待设备链接 adb start-server - EN ensure that there is a server running
- CHS 确保在一个服务器上执行 adb kill-server - EN kill the server if it is running
- CHS 阻止设备与服务器之间的链接 adb get-state - EN prints: offline | bootloader | device
- CHS 打印设备当前的状态 |脱机关机|引导状态|执行状态 adb get-serialno - EN prints: <serial-number>
- CHS 打印序列号 adb status-window - EN continuously print device status for a specified device
- CHS 在该终端持续打印设备状态 adb remount - EN remounts the /system partition on the device read-write
- CHS 又一次挂载系统分区获取设备的读写权限 adb reboot [bootloader|recovery] - EN reboots the device, optionally into the bootloader or recovery program
- CHS 重新启动启动设备。后面两个參数为引导程序和恢复程序 adb reboot-bootloader - EN reboots the device into the bootloader
- CHS 重新启动设备进入引导程序 adb root - EN restarts the adbd daemon with root permissions
- CHS 又一次获取 adbd 宿主的管理员权限 adb usb - EN restarts the adbd daemon listening on USB
- CHS 在USB端口,又一次获取 adbd 宿主 adb tcpip <port> - EN restarts the adbd daemon listening on TCP on the specified port
- CHS 在制定 TCP/IP 端口,又一次获取 adbd 宿主 networking: #网络
adb ppp
<tty> [parameters]- EN Run PPP over USB. Note: you should not automatically start a PPP connection. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1 [parameters] - Eg. defaultroute debug dump local notty usepeerdns
- CHS 执行 PPP 在 USB 端口。 注意:你不能自己主动控制開始一个PPP链接。 <tty> 是指电报打印机所出的声音流。 EN adb sync notes: adb sync [ <directory> ] <localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition is updated.
- CHS adb 同步注意事项: adb sync [ <文件夹> ] <本地文件夹> 能够解释为几种方法:
- 假设 <文件夹> 未指定,那么 /system 和 /data 磁盘都会更新
- 指定 "system" 或 "data" 那么仅仅有指定磁盘会更新 environmental variables: #环境变量 ADB_TRACE- EN Print debug information. A comma separated list of the following values 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
- CHS 打印调试信息。使用都好隔开以下的一个或多个值。获取想要得到调试数据
adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp ANDROID_SERIAL- EN The serial number to connect to. -s takes priority over this if given. ANDROID_LOG_TAGS- EN When used with the logcat option, only these debug tags are printed.

Android_adb使用的更多相关文章

  1. Android_ADB 常用 shell命令 和 sqlite3 简单增删改查

    今天学习了一个ADB的常用命令.接下来简单使用几个常用ADB shell 命令. 首先我们得明白什么是adb.exe ADB -Android Debug Bridge, 是 Android sdk ...

  2. Android_adb shell am/pm使用

    转自:http://blog.sina.com.cn/s/blog_51335a0001017ux5.html   adb shell am instrument [options] <COMP ...

  3. Android_adb详解

    adb定义:adb(android debug bridge)是android系统中的一种命令行工具,通过它可以和android设备或模拟器通信. adb工具位置: <path-to-sdk&g ...

  4. How ADB works

    ADB (Android Debug Bridge): How it works? 2012.2.6 early draft Tetsuyuki Kobayashi What is ADB? If y ...

  5. 在Ubuntu下ADT识别不出真机的解决办法

    前两天把系统换成Ubuntu 12.04,今天在写代码的时候准备真机调试,结果ADT识别不出真机,我擦.果断网上查找了一下解决办法,经过半个小时左右的折腾,尼玛,终于搞定了.具体解决办法如下: 1.先 ...

  6. 【Linux/Ubuntu学习5】Ubuntu 下android 开发,eclipse不能识别手机

    ubuntu下eclipse不能识别手机解决方法: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1) 在终端运行 lsusb 会发现结果 ...

  7. 小米2S 连接Ubuntu Android Studio

    1. 首先打开手机上的开发者选项,USB调试.拨号:*#*#717717#*#*  ,手机会以Toast形式出现“……enable”字样.再次拨号可disable. 2. Ubuntu安装mtpfs: ...

  8. ubuntu系统下adb连接手机

    发现Ubuntu12.04不能连接小米开发,adb devices不能看到设备!  搞了一个上午才搞成功! 小米手机利用USB连接到Ubuntu 12.04系统.运行下面的命令: longskywan ...

  9. ubuntu ???????????? no permissions 问题解决

    近期的一个项目须要用到linux开发android程序! 发现ubuntu有小米开发连接不上!  搞了一个下午才搞成功! 看看吧! 小米手机利用USB连接到Ubuntu 10.04系统.执行以下的命令 ...

随机推荐

  1. POJ 1459 Power Network 最大流(Edmonds_Karp算法)

    题目链接: http://poj.org/problem?id=1459 因为发电站有多个,所以需要一个超级源点,消费者有多个,需要一个超级汇点,这样超级源点到发电站的权值就是发电站的容量,也就是题目 ...

  2. Instruments --- 内存泄露

    虽然iOS 5.0版本之后加入了ARC机制,由于相互引用关系比较复杂时,内存泄露还是可能存在.所以了解原理很重要. 这里讲述在没有ARC的情况下,如何使用Instruments来查找程序中的内存泄露, ...

  3. iOS开发 - NSBundle, NSDevice, NSLocale

    iOS的APP的应用开发的过程中,有时为了bug跟踪或者获取用反馈的需要自动收集用户设备.系统信息.应用信息等等,这些信息方便开发者诊断问题,当然这些信息是用户的非隐私信息,是通过开发api可以获取到 ...

  4. combo下拉列表选择

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  5. DM8168 debug continue... ...

    1.boot   VFS: Unable to mount root fs via NFS, trying floppy.   VFS: Cannot open root device "n ...

  6. Apache httpd.conf的翻译

    本人初学,15年暑假翻译了一些,前几天翻译完,有机器翻译,也有自己翻译的内容,不准确之处请指出. --------------------------------------------------- ...

  7. bzoj 2693: jzptab 线性筛积性函数

    2693: jzptab Time Limit: 10 Sec  Memory Limit: 512 MBSubmit: 444  Solved: 174[Submit][Status][Discus ...

  8. 批量建立EXCHANGE邮件帐号建立三部曲

    第一步:从AD里导出用户名(可以基于OU),将输出的CSV的DN列删除,并去除可能的测试及其它用途用户名. csvde -f users-gz.csv -d "ou=MKT gz,dc=xm ...

  9. [转贴]JAVA :RESTLET开发实例(一)基于JAX-RS的REST服务

    RESTLET介绍 Restlet项目为“建立REST概念与Java类之间的映射”提供了一个轻量级而全面的框架.它可用于实现任何种类的REST式系统,而不仅仅是REST式Web服务. Restlet项 ...

  10. [转贴]漫谈C语言及如何学习C语言

    抄自http://my.oschina.net/apeng/blog/137911,觉得很有用,收藏它 目录:[ - ] 为什么要学习C语言? C语言学习方法 1,参考书籍 2,动手实验环境搭建 3, ...