Guest User

Untitled

a guest
Jun 22nd, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.15 KB | None | 0 0
  1. Microsoft Windows [Version 6.1.7601]
  2. Copyright (c) 2009 Microsoft Corporation. Med ensamrätt.
  3.  
  4. C:\Windows\system32>cd C:\android-sdk-windows\platform-tools
  5.  
  6. C:\android-sdk-windows\platform-tools>adb push busybox /data/local/tmp/
  7. adb server is out of date. killing...
  8. * daemon started successfully *
  9. 1879 KB/s (1926944 bytes in 1.001s)
  10.  
  11. C:\android-sdk-windows\platform-tools>adb push gfree /data/local/tmp/ 3
  12. Android Debug Bridge version 1.0.29
  13.  
  14. -d - directs command to the only connected USB devic
  15. e
  16. returns an error if more than one USB device is
  17. present.
  18. -e - directs command to the only running emulator.
  19. returns an error if more than one emulator is r
  20. unning.
  21. -s <serial number> - directs command to the USB device or emulator w
  22. ith
  23. the given serial number. Overrides ANDROID_SERI
  24. AL
  25. environment variable.
  26. -p <product name or path> - simple product name like 'sooner', or
  27. a relative/absolute path to a product
  28. out directory like 'out/target/product/sooner'.
  29.  
  30. If -p is not specified, the ANDROID_PRODUCT_OUT
  31.  
  32. environment variable is used, which must
  33. be an absolute path.
  34. devices - list all connected devices
  35. connect <host>[:<port>] - connect to a device via TCP/IP
  36. Port 5555 is used by default if no port number
  37. is specified.
  38. disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
  39. Port 5555 is used by default if no port number
  40. is specified.
  41. Using this command with no additional arguments
  42.  
  43. will disconnect from all connected TCP/IP devic
  44. es.
  45.  
  46. device commands:
  47. adb push <local> <remote> - copy file/dir to device
  48. adb pull <remote> [<local>] - copy file/dir from device
  49. adb sync [ <directory> ] - copy host->device only if changed
  50. (-l means list but don't copy)
  51. (see 'adb help all')
  52. adb shell - run remote shell interactively
  53. adb shell <command> - run remote shell command
  54. adb emu <command> - run emulator console command
  55. adb logcat [ <filter-spec> ] - View device log
  56. adb forward <local> <remote> - forward socket connections
  57. forward specs are one of:
  58. tcp:<port>
  59. localabstract:<unix domain socket name>
  60. localreserved:<unix domain socket name>
  61. localfilesystem:<unix domain socket name>
  62. dev:<character device name>
  63. jdwp:<process pid> (remote only)
  64. adb jdwp - list PIDs of processes hosting a JDWP transport
  65.  
  66. adb install [-l] [-r] [-s] <file> - push this package file to the device and i
  67. nstall it
  68. ('-l' means forward-lock the app)
  69. ('-r' means reinstall the app, keeping its data
  70. )
  71. ('-s' means install on SD card instead of inter
  72. nal storage)
  73. adb uninstall [-k] <package> - remove this app package from the device
  74. ('-k' means keep the data and cache directories
  75. )
  76. adb bugreport - return all information from the device
  77. that should be included in a bug report.
  78.  
  79. adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosy
  80. stem] [<packages...>]
  81. - write an archive of the device's data to <file>
  82. .
  83. If no -f option is supplied then the data is wr
  84. itten
  85. to "backup.ab" in the current directory.
  86. (-apk|-noapk enable/disable backup of the .apks
  87. themselves
  88. in the archive; the default is noapk.)
  89. (-shared|-noshared enable/disable backup of the
  90. device's
  91. shared storage / SD card contents; the defau
  92. lt is noshared.)
  93. (-all means to back up all installed applicatio
  94. ns)
  95. (-system|-nosystem toggles whether -all automat
  96. ically includes
  97. system applications; the default is to inclu
  98. de system apps)
  99. (<packages...> is the list of applications to b
  100. e backed up. If
  101. the -all or -shared flags are passed, then t
  102. he package
  103. list is optional. Applications explicitly g
  104. iven on the
  105. command line will be included even if -nosys
  106. tem would
  107. ordinarily cause them to be omitted.)
  108.  
  109. adb restore <file> - restore device contents from the <file> backup
  110. archive
  111.  
  112. adb help - show this help message
  113. adb version - show version num
  114.  
  115. scripting:
  116. adb wait-for-device - block until device is online
  117. adb start-server - ensure that there is a server running
  118. adb kill-server - kill the server if it is running
  119. adb get-state - prints: offline | bootloader | device
  120. adb get-serialno - prints: <serial-number>
  121. adb status-window - continuously print device status for a specifie
  122. d device
  123. adb remount - remounts the /system partition on the device re
  124. ad-write
  125. adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
  126. tloader or recovery program
  127. adb reboot-bootloader - reboots the device into the bootloader
  128. adb root - restarts the adbd daemon with root permissions
  129. adb usb - restarts the adbd daemon listening on USB
  130. adb tcpip <port> - restarts the adbd daemon listening on TCP on th
  131. e specified port
  132. networking:
  133. adb ppp <tty> [parameters] - Run PPP over USB.
  134. Note: you should not automatically start a PPP connection.
  135. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
  136. [parameters] - Eg. defaultroute debug dump local notty usepeerdns
  137.  
  138. adb sync notes: adb sync [ <directory> ]
  139. <localdir> can be interpreted in several ways:
  140.  
  141. - If <directory> is not specified, both /system and /data partitions will be u
  142. pdated.
  143.  
  144. - If it is "system" or "data", only the corresponding partition
  145. is updated.
  146.  
  147. environmental variables:
  148. ADB_TRACE - Print debug information. A comma separated list
  149. of the following values
  150. 1 or all, adb, sockets, packets, rwx, usb, sync
  151. , sysdeps, transport, jdwp
  152. ANDROID_SERIAL - The serial number to connect to. -s takes prior
  153. ity over this if given.
  154. ANDROID_LOG_TAGS - When used with the logcat option, only these de
  155. bug tags are printed.
  156.  
  157. C:\android-sdk-windows\platform-tools>adb push gfree /data/local/tmp/
  158. adb server is out of date. killing...
  159. * daemon started successfully *
  160. 1891 KB/s (716548 bytes in 0.370s)
  161.  
  162. C:\android-sdk-windows\platform-tools>adb push hboot-eng.img /data/local/tmp/
  163. adb server is out of date. killing...
  164. * daemon started successfully *
  165. 1861 KB/s (1048576 bytes in 0.550s)
  166.  
  167. C:\android-sdk-windows\platform-tools>adb push psneuter /data/local/tmp/
  168. adb server is out of date. killing...
  169. * daemon started successfully *
  170. 1865 KB/s (557962 bytes in 0.292s)
  171.  
  172. C:\android-sdk-windows\platform-tools>adb push recovery-clockwork-5.0.2.3-ace.im
  173. g /data/local/tmp/recovery.img
  174. adb server is out of date. killing...
  175. * daemon started successfully *
  176. 1985 KB/s (3733504 bytes in 1.836s)
  177.  
  178. C:\android-sdk-windows\platform-tools>adb push root_psn /data/local/tmp/
  179. adb server is out of date. killing...
  180. * daemon started successfully *
  181. 110 KB/s (564 bytes in 0.005s)
  182.  
  183. C:\android-sdk-windows\platform-tools>adb push su /sdcard/
  184. adb server is out of date. killing...
  185. * daemon started successfully *
  186. 1512 KB/s (26324 bytes in 0.017s)
  187.  
  188. C:\android-sdk-windows\platform-tools>adb push Superuser.apk /sdcard/
  189. adb server is out of date. killing...
  190. * daemon started successfully *
  191. 1859 KB/s (196120 bytes in 0.103s)
  192.  
  193. C:\android-sdk-windows\platform-tools>adb shell
  194. adb server is out of date. killing...
  195. * daemon started successfully *
  196. $ chmod 755 /data/local/tmp/*
  197. chmod 755 /data/local/tmp/*
  198. Unable to chmod /data/local/tmp/sdcardMbr-backup.img: Operation not permitted
  199. $ chmod 755 /data/local/tmp/*
  200. chmod 755 /data/local/tmp/*
  201. Unable to chmod /data/local/tmp/sdcardMbr-backup.img: Operation not permitted
  202. $ chmod 755 /data/local/tmp/*
  203. chmod 755 /data/local/tmp/*
  204. Unable to chmod /data/local/tmp/sdcardMbr-backup.img: Operation not permitted
  205. $ chmod 755 /data/local/tmp/*
  206. chmod 755 /data/local/tmp/*
  207. Unable to chmod /data/local/tmp/sdcardMbr-backup.img: Operation not permitted
  208. $ chmod 755 /data/local/tmp/*
  209. chmod 755 /data/local/tmp/*
  210. Unable to chmod /data/local/tmp/sdcardMbr-backup.img: Operation not permitted
  211. $ dir
  212. dir
  213. dir: permission denied
  214. $ run
  215. run
  216. run: permission denied
  217. $ chmod 755 /data/local/tmp/*
  218. chmod 755 /data/local/tmp/*
  219. Unable to chmod /data/local/tmp/sdcardMbr-backup.img: Operation not permitted
  220. $ ls -l
  221. ls -l
  222. drwxr-xr-x root system 2012-02-11 06:29 app-cache
  223. dr-x------ root root 2012-02-11 06:28 config
  224. lrwxrwxrwx root root 2012-02-11 06:28 sdcard -> /mnt/sdcard
  225. drwxr-xr-x root root 2012-02-11 06:28 acct
  226. drwxrwxr-x root system 2012-02-11 06:28 mnt
  227. lrwxrwxrwx root root 2012-02-11 06:28 vendor -> /system/vendor
  228. lrwxrwxrwx root root 2012-02-11 06:28 d -> /sys/kernel/debug
  229. lrwxrwxrwx root root 2012-02-11 06:28 etc -> /system/etc
  230. drwxrwx--- system cache 2012-02-11 07:31 cache
  231. drwx------ root root 2012-02-11 14:51 devlog
  232. -rw-r--r-- root root 728 1970-01-01 01:00 ueventd.spade.rc
  233. -rw-r--r-- root root 4429 1970-01-01 01:00 ueventd.rc
  234. -rw-r--r-- root root 0 1970-01-01 01:00 ueventd.goldfish.rc
  235. drwxr-xr-x root root 2012-02-11 06:28 system
  236. drwxr-xr-x root root 2012-02-11 06:28 sys
  237. drwxr-x--- root root 1970-01-01 01:00 sbin
  238. dr-xr-xr-x root root 1970-01-01 01:00 proc
  239. -rwxr-x--- root root 7423 1970-01-01 01:00 init.spade.rc
  240. -rwxr-x--- root root 21309 1970-01-01 01:00 init.rc
  241. -rwxr-x--- root root 1677 1970-01-01 01:00 init.goldfish.rc
  242. -rwxr-x--- root root 107216 1970-01-01 01:00 init
  243. -rw-r--r-- root root 118 1970-01-01 01:00 default.prop
  244. drwxrwx--x system system 2012-02-11 06:03 data
  245. -rw-r--r-- root root 1395 1970-01-01 01:00 cwkeys
  246. -rw-r--r-- root root 460 1970-01-01 01:00 bootcomplete.rc
  247. drwx------ root root 2011-11-09 06:59 root
  248. drwxr-xr-x root root 2012-02-11 06:30 dev
  249. $ ls -l /data/local/tmp
  250. ls -l /data/local/tmp
  251. -rwxr-xr-x shell shell 712688 2012-02-11 05:02 flashgc
  252. -rwxr-xr-x shell shell 716548 2011-06-16 20:18 gfree
  253. -rwxr-xr-x shell shell 367096 2012-01-21 17:35 misc_version
  254. -rwxr-xr-x shell shell 1926944 2010-03-22 15:29 busybox
  255. -rwxr-xr-x shell shell 557962 2011-01-11 00:01 psneuter
  256. -rwxr-xr-x shell shell 9796 2011-07-26 10:39 fre3vo
  257. -rwxr-xr-x shell shell 1048576 2010-12-11 18:11 hboot-eng.img
  258. -rwxr-xr-x shell shell 3733504 2012-02-11 06:13 recovery.img
  259. -rw-rw-rw- root root 512 2012-02-11 06:03 sdcardMbr-backup.img
  260. -rwxr-xr-x shell shell 2129 2012-01-01 17:09 tacoroot
  261. -rwxr-xr-x shell shell 564 2011-04-01 16:28 root_psn
  262. $
Add Comment
Please, Sign In to add comment