Advertisement
Rulinglionadi

Ubuntu

Oct 23rd, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.81 KB | None | 0 0
  1. Microsoft Windows [Version 6.1.7601]
  2. Copyright (c) 2009 Microsoft Corporation. All rights reserved.
  3.  
  4. C:\Windows\system32>C:\Root
  5. 'C:\Root' is not recognized as an internal or external command,
  6. operable program or batch file.
  7.  
  8. C:\Windows\system32>cd C:\Root
  9.  
  10. C:\Root>adb devices
  11. List of devices attached
  12. 0123456789ABCDEF device
  13.  
  14.  
  15. C:\Root>adb devices
  16. List of devices attached
  17.  
  18.  
  19. C:\Root>adb devices
  20. List of devices attached
  21.  
  22.  
  23. C:\Root>adb shell/system/bin/logcat -d > log.txt
  24. Android Debug Bridge version 1.0.31
  25.  
  26. -a - directs adb to listen on all interfaces for a c
  27. onnection
  28. -d - directs command to the only connected USB devic
  29. e
  30. returns an error if more than one USB device is
  31. present.
  32. -e - directs command to the only running emulator.
  33. returns an error if more than one emulator is r
  34. unning.
  35. -s <specific device> - directs command to the device or emulator with
  36. the given
  37. serial number or qualifier. Overrides ANDROID_S
  38. ERIAL
  39. environment variable.
  40. -p <product name or path> - simple product name like 'sooner', or
  41. a relative/absolute path to a product
  42. out directory like 'out/target/product/sooner'.
  43.  
  44. If -p is not specified, the ANDROID_PRODUCT_OUT
  45.  
  46. environment variable is used, which must
  47. be an absolute path.
  48. -H - Name of adb server host (default: localhost)
  49. -P - Port of adb server (default: 5037)
  50. devices [-l] - list all connected devices
  51. ('-l' will also list device qualifiers)
  52. connect <host>[:<port>] - connect to a device via TCP/IP
  53. Port 5555 is used by default if no port number
  54. is specified.
  55. disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
  56. Port 5555 is used by default if no port number
  57. is specified.
  58. Using this command with no additional arguments
  59.  
  60. will disconnect from all connected TCP/IP devic
  61. es.
  62.  
  63. device commands:
  64. adb push <local> <remote> - copy file/dir to device
  65. adb pull <remote> [<local>] - copy file/dir from device
  66. adb sync [ <directory> ] - copy host->device only if changed
  67. (-l means list but don't copy)
  68. (see 'adb help all')
  69. adb shell - run remote shell interactively
  70. adb shell <command> - run remote shell command
  71. adb emu <command> - run emulator console command
  72. adb logcat [ <filter-spec> ] - View device log
  73. adb forward --list - list all forward socket connections.
  74. the format is a list of lines with the followin
  75. g format:
  76. <serial> " " <local> " " <remote> "\n"
  77. adb forward <local> <remote> - forward socket connections
  78. forward specs are one of:
  79. tcp:<port>
  80. localabstract:<unix domain socket name>
  81. localreserved:<unix domain socket name>
  82. localfilesystem:<unix domain socket name>
  83. dev:<character device name>
  84. jdwp:<process pid> (remote only)
  85. adb forward --no-rebind <local> <remote>
  86. - same as 'adb forward <local> <remote>' but fail
  87. s
  88. if <local> is already forwarded
  89. adb forward --remove <local> - remove a specific forward socket connection
  90. adb forward --remove-all - remove all forward socket connections
  91. adb jdwp - list PIDs of processes hosting a JDWP transport
  92.  
  93. adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --
  94. iv <hex-encoded iv>] <file>
  95. - push this package file to the device and instal
  96. l it
  97. ('-l' means forward-lock the app)
  98. ('-r' means reinstall the app, keeping its data
  99. )
  100. ('-s' means install on SD card instead of inter
  101. nal storage)
  102. ('--algo', '--key', and '--iv' mean the file is
  103. encrypted already)
  104. adb uninstall [-k] <package> - remove this app package from the device
  105. ('-k' means keep the data and cache directories
  106. )
  107. adb bugreport - return all information from the device
  108. that should be included in a bug report.
  109.  
  110. adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all]
  111. [-system|-nosystem] [<packages...>]
  112. - write an archive of the device's data to <file>
  113. .
  114. If no -f option is supplied then the data is wr
  115. itten
  116. to "backup.ab" in the current directory.
  117. (-apk|-noapk enable/disable backup of the .apks
  118. themselves
  119. in the archive; the default is noapk.)
  120. (-obb|-noobb enable/disable backup of any insta
  121. lled apk expansion
  122. (aka .obb) files associated with each applic
  123. ation; the default
  124. is noobb.)
  125. (-shared|-noshared enable/disable backup of the
  126. device's
  127. shared storage / SD card contents; the defau
  128. lt is noshared.)
  129. (-all means to back up all installed applicatio
  130. ns)
  131. (-system|-nosystem toggles whether -all automat
  132. ically includes
  133. system applications; the default is to inclu
  134. de system apps)
  135. (<packages...> is the list of applications to b
  136. e backed up. If
  137. the -all or -shared flags are passed, then t
  138. he package
  139. list is optional. Applications explicitly g
  140. iven on the
  141. command line will be included even if -nosys
  142. tem would
  143. ordinarily cause them to be omitted.)
  144.  
  145. adb restore <file> - restore device contents from the <file> backup
  146. archive
  147.  
  148. adb help - show this help message
  149. adb version - show version num
  150.  
  151. scripting:
  152. adb wait-for-device - block until device is online
  153. adb start-server - ensure that there is a server running
  154. adb kill-server - kill the server if it is running
  155. adb get-state - prints: offline | bootloader | device
  156. adb get-serialno - prints: <serial-number>
  157. adb get-devpath - prints: <device-path>
  158. adb status-window - continuously print device status for a specifie
  159. d device
  160. adb remount - remounts the /system partition on the device re
  161. ad-write
  162. adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
  163. tloader or recovery program
  164. adb reboot-bootloader - reboots the device into the bootloader
  165. adb root - restarts the adbd daemon with root permissions
  166. adb usb - restarts the adbd daemon listening on USB
  167. adb tcpip <port> - restarts the adbd daemon listening on TCP on th
  168. e specified port
  169. networking:
  170. adb ppp <tty> [parameters] - Run PPP over USB.
  171. Note: you should not automatically start a PPP connection.
  172. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
  173. [parameters] - Eg. defaultroute debug dump local notty usepeerdns
  174.  
  175. adb sync notes: adb sync [ <directory> ]
  176. <localdir> can be interpreted in several ways:
  177.  
  178. - If <directory> is not specified, both /system and /data partitions will be u
  179. pdated.
  180.  
  181. - If it is "system" or "data", only the corresponding partition
  182. is updated.
  183.  
  184. environmental variables:
  185. ADB_TRACE - Print debug information. A comma separated list
  186. of the following values
  187. 1 or all, adb, sockets, packets, rwx, usb, sync
  188. , sysdeps, transport, jdwp
  189. ANDROID_SERIAL - The serial number to connect to. -s takes prior
  190. ity over this if given.
  191. ANDROID_LOG_TAGS - When used with the logcat option, only these de
  192. bug tags are printed.
  193.  
  194. C:\Root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement