Guest User

Untitled

a guest
Oct 23rd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.38 KB | None | 0 0
  1. Microsoft Windows [Version 6.1.7600]
  2. Copyright (c) 2009 Microsoft Corporation. All rights reserved.
  3.  
  4. C:\Users\user1>cd androidsdk\android-sdk-windows\platform-tools\
  5. The system cannot find the path specified.
  6.  
  7. C:\Users\user1>cd
  8. C:\Users\user1
  9.  
  10. C:\Users\user1>cd\
  11.  
  12. C:\>cd androidsdk\android-sdk-windows\platform-tools\
  13.  
  14. C:\AndroidSDK\android-sdk-windows\platform-tools>adb
  15. Android Debug Bridge version 1.0.26
  16.  
  17. -d - directs command to the only connected USB devic
  18. e
  19. returns an error if more than one USB device is
  20. present.
  21. -e - directs command to the only running emulator.
  22. returns an error if more than one emulator is r
  23. unning.
  24. -s <serial number> - directs command to the USB device or emulator w
  25. ith
  26. the given serial number. Overrides ANDROID_SERI
  27. AL
  28. environment variable.
  29. -p <product name or path> - simple product name like 'sooner', or
  30. a relative/absolute path to a product
  31. out directory like 'out/target/product/sooner'.
  32.  
  33. If -p is not specified, the ANDROID_PRODUCT_OUT
  34.  
  35. environment variable is used, which must
  36. be an absolute path.
  37. devices - list all connected devices
  38. connect <host>[:<port>] - connect to a device via TCP/IP
  39. Port 5555 is used by default if no port number
  40. is specified.
  41. disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
  42. Port 5555 is used by default if no port number
  43. is specified.
  44. Using this ocmmand with no additional arguments
  45.  
  46. will disconnect from all connected TCP/IP devic
  47. es.
  48.  
  49. device commands:
  50. adb push <local> <remote> - copy file/dir to device
  51. adb pull <remote> [<local>] - copy file/dir from device
  52. adb sync [ <directory> ] - copy host->device only if changed
  53. (-l means list but don't copy)
  54. (see 'adb help all')
  55. adb shell - run remote shell interactively
  56. adb shell <command> - run remote shell command
  57. adb emu <command> - run emulator console command
  58. adb logcat [ <filter-spec> ] - View device log
  59. adb forward <local> <remote> - forward socket connections
  60. forward specs are one of:
  61. tcp:<port>
  62. localabstract:<unix domain socket name>
  63. localreserved:<unix domain socket name>
  64. localfilesystem:<unix domain socket name>
  65. dev:<character device name>
  66. jdwp:<process pid> (remote only)
  67. adb jdwp - list PIDs of processes hosting a JDWP transport
  68.  
  69. adb install [-l] [-r] [-s] <file> - push this package file to the device and i
  70. nstall it
  71. ('-l' means forward-lock the app)
  72. ('-r' means reinstall the app, keeping its data
  73. )
  74. ('-s' means install on SD card instead of inter
  75. nal storage)
  76. adb uninstall [-k] <package> - remove this app package from the device
  77. ('-k' means keep the data and cache directories
  78. )
  79. adb bugreport - return all information from the device
  80. that should be included in a bug report.
  81.  
  82. adb help - show this help message
  83. adb version - show version num
  84.  
  85. DATAOPTS:
  86. (no option) - don't touch the data partition
  87. -w - wipe the data partition
  88. -d - flash the data partition
  89.  
  90. scripting:
  91. adb wait-for-device - block until device is online
  92. adb start-server - ensure that there is a server running
  93. adb kill-server - kill the server if it is running
  94. adb get-state - prints: offline | bootloader | device
  95. adb get-serialno - prints: <serial-number>
  96. adb status-window - continuously print device status for a specifie
  97. d device
  98. adb remount - remounts the /system partition on the device re
  99. ad-write
  100. adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
  101. tloader or recovery program
  102. adb reboot-bootloader - reboots the device into the bootloader
  103. adb root - restarts the adbd daemon with root permissions
  104. adb usb - restarts the adbd daemon listening on USB
  105. adb tcpip <port> - restarts the adbd daemon listening on TCP on th
  106. e specified port
  107. networking:
  108. adb ppp <tty> [parameters] - Run PPP over USB.
  109. Note: you should not automatically start a PPP connection.
  110. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
  111. [parameters] - Eg. defaultroute debug dump local notty usepeerdns
  112.  
  113. adb sync notes: adb sync [ <directory> ]
  114. <localdir> can be interpreted in several ways:
  115.  
  116. - If <directory> is not specified, both /system and /data partitions will be u
  117. pdated.
  118.  
  119. - If it is "system" or "data", only the corresponding partition
  120. is updated.
  121.  
  122. environmental variables:
  123. ADB_TRACE - Print debug information. A comma separated list
  124. of the following values
  125. 1 or all, adb, sockets, packets, rwx, usb, sync
  126. , sysdeps, transport, jdwp
  127. ANDROID_SERIAL - The serial number to connect to. -s takes prior
  128. ity over this if given.
  129. ANDROID_LOG_TAGS - When used with the logcat option, only these de
  130. bug tags are printed.
  131.  
  132. C:\AndroidSDK\android-sdk-windows\platform-tools>adb devices
  133. List of devices attached
  134. SH0AMR205274 device
  135.  
  136.  
  137. C:\AndroidSDK\android-sdk-windows\platform-tools>adb shell
  138. $ adb push busybox/data/local/tmp/
  139. adb push busybox/data/local/tmp/
  140. adb: permission denied
  141. $
  142. C:\AndroidSDK\android-sdk-windows\platform-tools>adb shell
  143. $ adb push busybox /data/local/tmp/
  144. adb push busybox /data/local/tmp/
  145. adb: permission denied
  146. $
Add Comment
Please, Sign In to add comment