查看: 8517|回复: 7
收起左侧

[手机软件] 几个Android Debug Bridge(ADB)的相关文件,包括adb以及驱动~还有基于adb的root工具

 关闭 [复制链接]
ssama
发表于 2013-4-30 23:33:19 | 显示全部楼层 |阅读模式
本帖最后由 ssama 于 2013-5-1 08:35 编辑
adb是android sdk里的一个工具, 用这个工具可以直接操作管理android模拟器或者真实的andriod设备(如G1手机).  



Adb主程序:
例如windows下,先复制文件至system32和sysWOW64,再成功安装驱动后,您可以在cmd输入adb获取命令列表(必须首先开启android调试模式)
ADB.zip (366.77 KB, 下载次数: 493)

评分

参与人数 1经验 +10 收起 理由
ppy0606 + 10 版区有你更精彩: )

查看全部评分

xzhlksh
发表于 2013-5-1 16:13:49 | 显示全部楼层
ssama 发表于 2013-5-1 14:07
4.1以前。

new.adb.zip (539.13 KB, 下载次数: 564)
ssama
 楼主| 发表于 2013-4-30 23:50:32 | 显示全部楼层
好像有点长了
用2楼发下adb使用代码(这个不算扣分吧囧)
Adb 代码列表
  1. C:\Users\Shamrock>adb
  2. Android Debug Bridge version 1.0.29

  3. -d                            - directs command to the only connected USB devic
  4. e
  5.                                  returns an error if more than one USB device is
  6. present.
  7. -e                            - directs command to the only running emulator.
  8.                                  returns an error if more than one emulator is r
  9. unning.
  10. -s <serial number>            - directs command to the USB device or emulator w
  11. ith
  12.                                  the given serial number. Overrides ANDROID_SERI
  13. AL
  14.                                  environment variable.
  15. -p <product name or path>     - simple product name like 'sooner', or
  16.                                  a relative/absolute path to a product
  17.                                  out directory like 'out/target/product/sooner'.

  18.                                  If -p is not specified, the ANDROID_PRODUCT_OUT

  19.                                  environment variable is used, which must
  20.                                  be an absolute path.
  21. devices                       - list all connected devices
  22. connect <host>[:<port>]       - connect to a device via TCP/IP
  23.                                  Port 5555 is used by default if no port number
  24. is specified.
  25. disconnect [<host>[:<port>]]  - disconnect from a TCP/IP device.
  26.                                  Port 5555 is used by default if no port number
  27. is specified.
  28.                                  Using this command with no additional arguments

  29.                                  will disconnect from all connected TCP/IP devic
  30. es.

  31. device commands:
  32.   adb push <local> <remote>    - copy file/dir to device
  33.   adb pull <remote> [<local>]  - copy file/dir from device
  34.   adb sync [ <directory> ]     - copy host->device only if changed
  35.                                  (-l means list but don't copy)
  36.                                  (see 'adb help all')
  37.   adb shell                    - run remote shell interactively
  38.   adb shell <command>          - run remote shell command
  39.   adb emu <command>            - run emulator console command
  40.   adb logcat [ <filter-spec> ] - View device log
  41.   adb forward <local> <remote> - forward socket connections
  42.                                  forward specs are one of:
  43.                                    tcp:<port>
  44.                                    localabstract:<unix domain socket name>
  45.                                    localreserved:<unix domain socket name>
  46.                                    localfilesystem:<unix domain socket name>
  47.                                    dev:<character device name>
  48.                                    jdwp:<process pid> (remote only)
  49.   adb jdwp                     - list PIDs of processes hosting a JDWP transport

  50.   adb install [-l] [-r] [-s] <file> - push this package file to the device and i
  51. nstall it
  52.                                  ('-l' means forward-lock the app)
  53.                                  ('-r' means reinstall the app, keeping its data
  54. )
  55.                                  ('-s' means install on SD card instead of inter
  56. nal storage)
  57.   adb uninstall [-k] <package> - remove this app package from the device
  58.                                  ('-k' means keep the data and cache directories
  59. )
  60.   adb bugreport                - return all information from the device
  61.                                  that should be included in a bug report.

  62.   adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosy
  63. stem] [<packages...>]
  64.                                - write an archive of the device's data to <file>
  65. .
  66.                                  If no -f option is supplied then the data is wr
  67. itten
  68.                                  to "backup.ab" in the current directory.
  69.                                  (-apk|-noapk enable/disable backup of the .apks
  70. themselves
  71.                                     in the archive; the default is noapk.)
  72.                                  (-shared|-noshared enable/disable backup of the
  73. device's
  74.                                     shared storage / SD card contents; the defau
  75. lt is noshared.)
  76.                                  (-all means to back up all installed applicatio
  77. ns)
  78.                                  (-system|-nosystem toggles whether -all automat
  79. ically includes
  80.                                     system applications; the default is to inclu
  81. de system apps)
  82.                                  (<packages...> is the list of applications to b
  83. e backed up.  If
  84.                                     the -all or -shared flags are passed, then t
  85. he package
  86.                                     list is optional.  Applications explicitly g
  87. iven on the
  88.                                     command line will be included even if -nosys
  89. tem would
  90.                                     ordinarily cause them to be omitted.)

  91.   adb restore <file>           - restore device contents from the <file> backup
  92. archive

  93.   adb help                     - show this help message
  94.   adb version                  - show version num

  95. scripting:
  96.   adb wait-for-device          - block until device is online
  97.   adb start-server             - ensure that there is a server running
  98.   adb kill-server              - kill the server if it is running
  99.   adb get-state                - prints: offline | bootloader | device
  100.   adb get-serialno             - prints: <serial-number>
  101.   adb status-window            - continuously print device status for a specifie
  102. d device
  103.   adb remount                  - remounts the /system partition on the device re
  104. ad-write
  105.   adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
  106. tloader or recovery program
  107.   adb reboot-bootloader        - reboots the device into the bootloader
  108.   adb root                     - restarts the adbd daemon with root permissions
  109.   adb usb                      - restarts the adbd daemon listening on USB
  110.   adb tcpip <port>             - restarts the adbd daemon listening on TCP on th
  111. e specified port
  112. networking:
  113.   adb ppp <tty> [parameters]   - Run PPP over USB.
  114. Note: you should not automatically start a PPP connection.
  115. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
  116. [parameters] - Eg. defaultroute debug dump local notty usepeerdns

  117. adb sync notes: adb sync [ <directory> ]
  118.   <localdir> can be interpreted in several ways:

  119.   - If <directory> is not specified, both /system and /data partitions will be u
  120. pdated.

  121.   - If it is "system" or "data", only the corresponding partition
  122.     is updated.

  123. environmental variables:
  124.   ADB_TRACE                    - Print debug information. A comma separated list
  125. of the following values
  126.                                  1 or all, adb, sockets, packets, rwx, usb, sync
  127. , sysdeps, transport, jdwp
  128.   ANDROID_SERIAL               - The serial number to connect to. -s takes prior
  129. ity over this if given.
  130.   ANDROID_LOG_TAGS             - When used with the logcat option, only these de
  131. bug tags are printed.
复制代码
xzhlksh
发表于 2013-5-1 13:41:39 | 显示全部楼层
这个adb驱动是4.2系统还是4.1系统之前的?我记得4.1之前的adb没法用在4.2+的
ssama
 楼主| 发表于 2013-5-1 14:07:16 | 显示全部楼层
xzhlksh 发表于 2013-5-1 13:41
这个adb驱动是4.2系统还是4.1系统之前的?我记得4.1之前的adb没法用在4.2+的

4.1以前。
zhengshixin163
头像被屏蔽
发表于 2013-5-1 14:13:32 | 显示全部楼层
直接装Android SDK不就可以了- =
QQ截图20130501141225.png
ssama
 楼主| 发表于 2013-5-1 14:20:24 | 显示全部楼层
zhengshixin163 发表于 2013-5-1 14:13
直接装Android SDK不就可以了- =

是啊,但是很多人不想装所以提取出来了啊
xyg888126
发表于 2015-7-17 20:02:49 | 显示全部楼层
谢谢分享!感谢发布!
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2025-2-3 01:39 , Processed in 0.162662 second(s), 22 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表