Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2011
862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.29 KB | None | 0 0
  1. failed to copy 'Superuser.apk' to '/sdcard//Superuser.apk': Permission denied
  2.  
  3. c:\android-sdk-windows\platform-tools>adb push Superuser.apk
  4. Android Debug Bridge version 1.0.26
  5.  
  6. -d - directs command to the only connected USB devic
  7. e
  8. returns an error if more than one USB device is
  9. present.
  10. -e - directs command to the only running emulator.
  11. returns an error if more than one emulator is r
  12. unning.
  13. -s <serial number> - directs command to the USB device or emulator w
  14. ith
  15. the given serial number. Overrides ANDROID_SERI
  16. AL
  17. environment variable.
  18. -p <product name or path> - simple product name like 'sooner', or
  19. a relative/absolute path to a product
  20. out directory like 'out/target/product/sooner'.
  21.  
  22. If -p is not specified, the ANDROID_PRODUCT_OUT
  23.  
  24. environment variable is used, which must
  25. be an absolute path.
  26. devices - list all connected devices
  27. connect <host>[:<port>] - connect to a device via TCP/IP
  28. Port 5555 is used by default if no port number
  29. is specified.
  30. disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
  31. Port 5555 is used by default if no port number
  32. is specified.
  33. Using this ocmmand with no additional arguments
  34.  
  35. will disconnect from all connected TCP/IP devic
  36. es.
  37.  
  38. device commands:
  39. adb push <local> <remote> - copy file/dir to device
  40. adb pull <remote> [<local>] - copy file/dir from device
  41. adb sync [ <directory> ] - copy host->device only if changed
  42. (-l means list but don't copy)
  43. (see 'adb help all')
  44. adb shell - run remote shell interactively
  45. adb shell <command> - run remote shell command
  46. adb emu <command> - run emulator console command
  47. adb logcat [ <filter-spec> ] - View device log
  48. adb forward <local> <remote> - forward socket connections
  49. forward specs are one of:
  50. tcp:<port>
  51. localabstract:<unix domain socket name>
  52. localreserved:<unix domain socket name>
  53. localfilesystem:<unix domain socket name>
  54. dev:<character device name>
  55. jdwp:<process pid> (remote only)
  56. adb jdwp - list PIDs of processes hosting a JDWP transport
  57.  
  58. adb install [-l] [-r] [-s] <file> - push this package file to the device and i
  59. nstall it
  60. ('-l' means forward-lock the app)
  61. ('-r' means reinstall the app, keeping its data
  62. )
  63. ('-s' means install on SD card instead of inter
  64. nal storage)
  65. adb uninstall [-k] <package> - remove this app package from the device
  66. ('-k' means keep the data and cache directories
  67. )
  68. adb bugreport - return all information from the device
  69. that should be included in a bug report.
  70.  
  71. adb help - show this help message
  72. adb version - show version num
  73.  
  74. DATAOPTS:
  75. (no option) - don't touch the data partition
  76. -w - wipe the data partition
  77. -d - flash the data partition
  78.  
  79. scripting:
  80. adb wait-for-device - block until device is online
  81. adb start-server - ensure that there is a server running
  82. adb kill-server - kill the server if it is running
  83. adb get-state - prints: offline | bootloader | device
  84. adb get-serialno - prints: <serial-number>
  85. adb status-window - continuously print device status for a specifie
  86. d device
  87. adb remount - remounts the /system partition on the device re
  88. ad-write
  89. adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
  90. tloader or recovery program
  91. adb reboot-bootloader - reboots the device into the bootloader
  92. adb root - restarts the adbd daemon with root permissions
  93. adb usb - restarts the adbd daemon listening on USB
  94. adb tcpip <port> - restarts the adbd daemon listening on TCP on th
  95. e specified port
  96. networking:
  97. adb ppp <tty> [parameters] - Run PPP over USB.
  98. Note: you should not automatically start a PPP connection.
  99. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
  100. [parameters] - Eg. defaultroute debug dump local notty usepeerdns
  101.  
  102. adb sync notes: adb sync [ <directory> ]
  103. <localdir> can be interpreted in several ways:
  104.  
  105. - If <directory> is not specified, both /system and /data partitions will be u
  106. pdated.
  107.  
  108. - If it is "system" or "data", only the corresponding partition
  109. is updated.
  110.  
  111. environmental variables:
  112. ADB_TRACE - Print debug information. A comma separated list
  113. of the following values
  114. 1 or all, adb, sockets, packets, rwx, usb, sync
  115. , sysdeps, transport, jdwp
  116. ANDROID_SERIAL - The serial number to connect to. -s takes prior
  117. ity over this if given.
  118. ANDROID_LOG_TAGS - When used with the logcat option, only these de
  119. bug tags are printed.
  120.  
  121. c:\android-sdk-windows\platform-tools>adb root
  122. adbd cannot run as root in production builds
  123.  
  124. c:\android-sdk-windows\platform-tools>adb push su /sdcard/
  125. failed to copy 'su' to '/sdcard//su': Permission denied
  126.  
  127. c:\android-sdk-windows\platform-tools>adb push su /sdcard
  128. failed to copy 'su' to '/sdcard': Is a directory
  129.  
  130. c:\android-sdk-windows\platform-tools>adb push su /sd
  131. failed to copy 'su' to '/sd': Read-only file system
  132.  
  133. c:\android-sdk-windows\platform-tools>adb shell
  134. $ chmod 755 /data/local/tmp/*
  135. chmod 755 /data/local/tmp/*
  136. $ /data/local/tmp/psneuter
  137.  
  138. c:\android-sdk-windows\platform-tools>adb shell
  139. # cd /data/local/tmp
  140. cd /data/local/tmp
  141. # .
  142. .
  143. # ./busybox md5sum /dev/block/mmcblk0p18
  144. ./busybox md5sum /dev/block/mmcblk0p18
  145. d7495d459761996eabc88bb9fdb21f5a /dev/block/mmcblk0p18
  146. # ./gfree -f -b hboot-eng.img -y recovery.img
  147. ./gfree -f -b hboot-eng.img -y recovery.img
  148. --secu_flag off set
  149. --cid set. CID will be changed to: 11111111
  150. --sim_unlock. SIMLOCK will be removed
  151. --hboot set. hboot image hboot-eng.img will be installed in partition 18
  152. --recovery set. recovery image recovery.img will be installed in partition 21
  153. Section header entry size: 40
  154. Number of section headers: 44
  155. Total section header table size: 1760
  156. Section header file offset: 0x000138b4 (80052)
  157. Section index for section name string table: 41
  158. String table offset: 0x000136fb (79611)
  159. Searching for .modinfo section...
  160. - Section[16]: .modinfo
  161. -- offset: 0x00000a14 (2580)
  162. -- size: 0x000000cc (204)
  163. Kernel release: 2.6.32.21-g899d047
  164. New .modinfo section size: 204
  165. Attempting to power cycle eMMC... OK.
  166. Write protect was successfully disabled.
  167. Searching for mmc_blk_issue_rq symbol...
  168. - Address: c02a63a4, type: t, name: mmc_blk_issue_rq, module: N/A
  169. Kernel map base: 0xc02a6000
  170. Kernel memory mapped to 0x40002000
  171. Searching for brq filter...
  172. - Address: 0xc02a63a4 + 0x34c
  173. - 0x2a000012 -> 0xea000012
  174. Backing up current partition 18 and installing specified hboot image...
  175. Backing up partition /dev/block/mmcblk0p18 to /sdcard/part18backup-1324637197.bi
  176. n ...
  177. Error opening backup file.
  178. # ./root_psn
  179. ./root_psn
  180. cp: can't stat '/sdcard/Superuser.apk': No such file or directory
  181. cp: can't stat '/sdcard/su': No such file or directory
  182. sync
  183. sync
  184. # # sync
  185. sync
  186. # ./busybox md5sum hboot-eng.img
  187. ./busybox md5sum hboot-eng.img
  188. df4fd77f44993eb05a4732210d2eddc6 hboot-eng.img
  189. # ./busybox md5sum /dev/block/mmcblk0p18
  190. ./busybox md5sum /dev/block/mmcblk0p18
  191. d7495d459761996eabc88bb9fdb21f5a /dev/block/mmcblk0p18
  192. # ./gfree -f -b hboot-eng.img -y recovery.img
  193. ./gfree -f -b hboot-eng.img -y recovery.img
  194. --secu_flag off set
  195. --cid set. CID will be changed to: 11111111
  196. --sim_unlock. SIMLOCK will be removed
  197. --hboot set. hboot image hboot-eng.img will be installed in partition 18
  198. --recovery set. recovery image recovery.img will be installed in partition 21
  199. Section header entry size: 40
  200. Number of section headers: 44
  201. Total section header table size: 1760
  202. Section header file offset: 0x000138b4 (80052)
  203. Section index for section name string table: 41
  204. String table offset: 0x000136fb (79611)
  205. Searching for .modinfo section...
  206. - Section[16]: .modinfo
  207. -- offset: 0x00000a14 (2580)
  208. -- size: 0x000000cc (204)
  209. Kernel release: 2.6.32.21-g899d047
  210. New .modinfo section size: 204
  211. Attempting to power cycle eMMC... OK.
  212. Write protect was successfully disabled.
  213. Searching for mmc_blk_issue_rq symbol...
  214. - Address: c02a63a4, type: t, name: mmc_blk_issue_rq, module: N/A
  215. Kernel map base: 0xc02a6000
  216. Kernel memory mapped to 0x40002000
  217. Searching for brq filter...
  218. - Address: 0xc02a63a4 + 0x34c
  219. - ***WARNING***: Found fuzzy match for brq filter, but conditional branch isn't
  220. . (0xea000012)
  221. Backing up current partition 18 and installing specified hboot image...
  222. Backing up partition /dev/block/mmcblk0p18 to /sdcard/part18backup-1324637379.bi
  223. n ...
  224. Error opening backup file.
  225. # ./root_psn
  226. ./root_psn
  227. cp: can't stat '/sdcard/Superuser.apk': No such file or directory
  228. cp: can't stat '/sdcard/su': No such file or directory
  229. # sync
  230. sync
  231. # ./busybox md5sum hboot-eng.img
  232. ./busybox md5sum hboot-eng.img
  233. df4fd77f44993eb05a4732210d2eddc6 hboot-eng.img
  234. # ./root_psn
  235. ./root_psn
  236. cp: can't stat '/sdcard/Superuser.apk': No such file or directory
  237. cp: can't stat '/sdcard/su': No such file or directory
  238. # ./root_psn
  239. ./root_psn
  240. cp: can't stat '/sdcard/Superuser.apk': No such file or directory
  241. cp: can't stat '/sdcard/su': No such file or directory
  242. # ./root_psn
  243. ./root_psn
  244. cp: can't stat '/sdcard/Superuser.apk': No such file or directory
  245. cp: can't stat '/sdcard/su': No such file or directory
  246. ./root_psn
  247. ./root_psn
  248. # cp: can't stat '/sdcard/Superuser.apk': No such file or directory
  249. cp: can't stat '/sdcard/su': No such file or directory
  250. ./root_psn#
  251. ./root_psn
  252. cp: can't stat '/sdcard/Superuser.apk': No such file or directory
  253. cp: can't stat '/sdcard/su': No such file or directory
  254. # ./root_psn
  255. ./root_psn
  256. # sync
  257. sync
  258. # ./busybox md5sum hboot-eng.img
  259. ./busybox md5sum hboot-eng.img
  260. df4fd77f44993eb05a4732210d2eddc6 hboot-eng.img
  261. # ./gfree -f -b hboot-eng.img -y recovery.img
  262. ./gfree -f -b hboot-eng.img -y recovery.img
  263. --secu_flag off set
  264. --cid set. CID will be changed to: 11111111
  265. --sim_unlock. SIMLOCK will be removed
  266. --hboot set. hboot image hboot-eng.img will be installed in partition 18
  267. --recovery set. recovery image recovery.img will be installed in partition 21
  268. Section header entry size: 40
  269. Number of section headers: 44
  270. Total section header table size: 1760
  271. Section header file offset: 0x000138b4 (80052)
  272. Section index for section name string table: 41
  273. String table offset: 0x000136fb (79611)
  274. Searching for .modinfo section...
  275. - Section[16]: .modinfo
  276. -- offset: 0x00000a14 (2580)
  277. -- size: 0x000000cc (204)
  278. Kernel release: 2.6.32.21-g899d047
  279. New .modinfo section size: 204
  280. Attempting to power cycle eMMC... OK.
  281. Write protect was successfully disabled.
  282. Searching for mmc_blk_issue_rq symbol...
  283. - Address: c02a63a4, type: t, name: mmc_blk_issue_rq, module: N/A
  284. Kernel map base: 0xc02a6000
  285. Kernel memory mapped to 0x40002000
  286. Searching for brq filter...
  287. - Address: 0xc02a63a4 + 0x34c
  288. - ***WARNING***: Found fuzzy match for brq filter, but conditional branch isn't
  289. . (0xea000012)
  290. Backing up current partition 18 and installing specified hboot image...
  291. Backing up partition /dev/block/mmcblk0p18 to /sdcard/part18backup-1324638013.bi
  292. n ...
  293. Error opening backup file.
  294. # ./root_psn
  295. ./root_psn
  296. cp: can't stat '/sdcard/Superuser.apk': No such file or directory
  297. cp: can't stat '/sdcard/su': No such file or directory
  298. # chmod 755 /data/local/tmp/*
  299. chmod 755 /data/local/tmp/*
  300. # /data/local/tmp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement