文档详情

Android adb 命令图解Android adb 命令图解.docx

发布:2017-01-04约字共10页下载文档
文本预览下载声明
Android adb 命令图解做了这么长时间的开发与管理,在命令上总是自见则过,往往却忽视了在其命令上的分享过程,所以现在稍微有点时间就把其命令的相关操作来简单的扫盲一番吧,也系统通过这种方式去授之以渔而不是鱼,好了,我以图解的方式来展示,当然我的习惯就是任何东西先看帮助文档或者命令,就今天我们这里要讲解的ADB命令在命令行中可以通过命令帮助来进行详细了解,废话不多说,先上图吧:以上为使用help来显示其相关的命令使用说明,当然那个如果你的英文足够好的话,其实这些都很简单,当然,如你不太习惯去看这些英文描述的话,那接下来就由我来帮助处理这样的问题吧,好了,我就以最初始的理解方式来进行翻译与讲解吧,OK:Android Debug Bridge version 1.0.29这是关于Android调试牌的1.0.29版本?-d ? ? ? ? ? ? ? ? ? ? ? ? ? ?- directs command to the only connected USB device通过这个直接的命令仅仅是去连接USB设备? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?returns an error if more than one USB device is present.如果有多个USB设备同时出现的时候就会返回一个错误信息?-e ? ? ? ? ? ? ? ? ? ? ? ? ? ?- directs command to the only running emulator.直接使用这个命令符号来运行模拟器? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?returns an error if more than one emulator is running.如果存在多个模拟器同时运行时会在当前返回一个错误信息?-s serial number ? ? ? ? ? ?- directs command to the USB device or emulator with? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?the given serial number. Overrides ANDROID_SERIAL? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?environment variable.通过这个直接的命令去展示其USB设备或者模拟器的序列号,彼此覆盖时会使其环境变量是可变的?-p product name or path ? ? - 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.通过此命令显示其产品的名称,如sooner,或者是相对与绝对的产品输出路径像out/target/product/sooner,如果 -p没有指定的话,就会使用ANDROID_PRODUCT_OUT的环境变量,但必须是一个绝对路径.?devices ? ? ? ? ? ? ? ? ? ? ? - list all connected devices通过此命令可以列出所有已经连接的设备?connect host[:port] ? ? ? - connect to a device via TCP/IP? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Port 5555 is used by default if no port number is specified.通过TCP/IP的默认端口5555来连接设备?disconnect [host[:port]] ?- disconnect from a TCP/IP device.? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Port 5555 is used by default if no port number is specified.? ? ? ? ?
显示全部
相似文档