Advertisement
Guest User

Untitled

a guest
Aug 12th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.43 KB | None | 0 0
  1. E:\Coding\OnePlus>fastboot
  2. usage: fastboot [ <option> ] <command>
  3.  
  4. commands:
  5. update <filename> reflash device from update.zip
  6. flashall flash boot, system, vendor and if found,
  7. recovery
  8. flash <partition> [ <filename> ] write a file to a flash partition
  9. erase <partition> erase a flash partition
  10. format[:[<fs type>][:[<size>]] <partition> format a flash partition.
  11. Can override the fs type and/or
  12. size the bootloader reports.
  13. getvar <variable> display a bootloader variable
  14. boot <kernel> [ <ramdisk> [ <second> ] ] download and boot kernel
  15. flash:raw boot <kernel> [ <ramdisk> [ <second> ] ] create bootimage and
  16. flash it
  17. devices list all connected devices
  18. continue continue with autoboot
  19. reboot reboot device normally
  20. reboot-bootloader reboot device into bootloader
  21. help show this help message
  22.  
  23. options:
  24. -w erase userdata and cache (and format
  25. if supported by partition type)
  26. -u do not first erase partition before
  27. formatting
  28. -s <specific device> specify device serial number
  29. or path to device port
  30. -l with "devices", lists device paths
  31. -p <product> specify product name
  32. -c <cmdline> override kernel commandline
  33. -i <vendor id> specify a custom USB vendor id
  34. -b <base_addr> specify a custom kernel base address.
  35. default: 0x10000000
  36. -n <page size> specify the nand page size.
  37. default: 2048
  38. -S <size>[K|M|G] automatically sparse files greater
  39. than size. 0 to disable
  40.  
  41. E:\Coding\OnePlus>fastboot flash recovery twrp-installer-fajita-3.2.3-2.zip
  42. target reported max download size of 536870912 bytes
  43. sending 'recovery' (16693 KB)...
  44. OKAY [ 0.359s]
  45. writing 'recovery'...
  46. FAILED (remote: (recovery_b) No such partition)
  47. finished. total time: 0.364s
  48.  
  49. E:\Coding\OnePlus>fastboot boot twrp-installer-fajita-3.2.3-2.zip
  50. creating boot image...
  51. creating boot image - 17096704 bytes
  52. downloading 'boot.img'...
  53. OKAY [ 0.361s]
  54. booting...
  55. OKAY [ 0.092s]
  56. finished. total time: 0.455s
  57.  
  58. E:\Coding\OnePlus>fastboot devices
  59. d535eae7 fastboot
  60.  
  61. E:\Coding\OnePlus>fastboot boot twrp-installer-fajita-3.2.3-2.zip
  62. creating boot image...
  63. creating boot image - 17096704 bytes
  64. downloading 'boot.img'...
  65. OKAY [ 0.361s]
  66. booting...
  67. FAILED (status read failed (Too many links))
  68. finished. total time: 0.456s
  69.  
  70. E:\Coding\OnePlus>fastboot flash recovery twrp-installer-fajita-3.2.3-2.zip
  71. < waiting for device >
  72. ^C
  73. E:\Coding\OnePlus>fastboot devices
  74.  
  75. E:\Coding\OnePlus>adb devices
  76. * daemon not running. starting it now on port 5037 *
  77. * daemon started successfully *
  78. List of devices attached
  79. d535eae7 recovery
  80.  
  81.  
  82. E:\Coding\OnePlus>adb flash
  83. Android Debug Bridge version 1.0.32
  84.  
  85. -a - directs adb to listen on all interfaces for a connection
  86. -d - directs command to the only connected USB device
  87. returns an error if more than one USB device is present.
  88. -e - directs command to the only running emulator.
  89. returns an error if more than one emulator is running.
  90. -s <specific device> - directs command to the device or emulator with the given
  91. serial number or qualifier. Overrides ANDROID_SERIAL
  92. environment variable.
  93. -p <product name or path> - simple product name like 'sooner', or
  94. a relative/absolute path to a product
  95. out directory like 'out/target/product/sooner'.
  96. If -p is not specified, the ANDROID_PRODUCT_OUT
  97. environment variable is used, which must
  98. be an absolute path.
  99. -H - Name of adb server host (default: localhost)
  100. -P - Port of adb server (default: 5037)
  101. devices [-l] - list all connected devices
  102. ('-l' will also list device qualifiers)
  103. connect <host>[:<port>] - connect to a device via TCP/IP
  104. Port 5555 is used by default if no port number is specified.
  105. disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
  106. Port 5555 is used by default if no port number is specified.
  107. Using this command with no additional arguments
  108. will disconnect from all connected TCP/IP devices.
  109.  
  110. device commands:
  111. adb push [-p] <local> <remote>
  112. - copy file/dir to device
  113. ('-p' to display the transfer progress)
  114. adb pull [-p] [-a] <remote> [<local>]
  115. - copy file/dir from device
  116. ('-p' to display the transfer progress)
  117. ('-a' means copy timestamp and mode)
  118. adb sync [ <directory> ] - copy host->device only if changed
  119. (-l means list but don't copy)
  120. (see 'adb help all')
  121. adb shell - run remote shell interactively
  122. adb shell <command> - run remote shell command
  123. adb emu <command> - run emulator console command
  124. adb logcat [ <filter-spec> ] - View device log
  125. adb forward --list - list all forward socket connections.
  126. the format is a list of lines with the following format:
  127. <serial> " " <local> " " <remote> "\n"
  128. adb forward <local> <remote> - forward socket connections
  129. forward specs are one of:
  130. tcp:<port>
  131. localabstract:<unix domain socket name>
  132. localreserved:<unix domain socket name>
  133. localfilesystem:<unix domain socket name>
  134. dev:<character device name>
  135. jdwp:<process pid> (remote only)
  136. adb forward --no-rebind <local> <remote>
  137. - same as 'adb forward <local> <remote>' but fails
  138. if <local> is already forwarded
  139. adb forward --remove <local> - remove a specific forward socket connection
  140. adb forward --remove-all - remove all forward socket connections
  141. adb reverse --list - list all reverse socket connections from device
  142. adb reverse <remote> <local> - reverse socket connections
  143. reverse specs are one of:
  144. tcp:<port>
  145. localabstract:<unix domain socket name>
  146. localreserved:<unix domain socket name>
  147. localfilesystem:<unix domain socket name>
  148. adb reverse --norebind <remote> <local>
  149. - same as 'adb reverse <remote> <local>' but fails
  150. if <remote> is already reversed.
  151. adb reverse --remove <remote>
  152. - remove a specific reversed socket connection
  153. adb reverse --remove-all - remove all reversed socket connections from device
  154. adb jdwp - list PIDs of processes hosting a JDWP transport
  155. adb install [-lrtsd] <file>
  156. adb install-multiple [-lrtsdp] <file...>
  157. - push this package file to the device and install it
  158. (-l: forward lock application)
  159. (-r: replace existing application)
  160. (-t: allow test packages)
  161. (-s: install application on sdcard)
  162. (-d: allow version code downgrade)
  163. (-p: partial application install)
  164. adb uninstall [-k] <package> - remove this app package from the device
  165. ('-k' means keep the data and cache directories)
  166. adb bugreport - return all information from the device
  167. that should be included in a bug report.
  168.  
  169. adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
  170. - write an archive of the device's data to <file>.
  171. If no -f option is supplied then the data is written
  172. to "backup.ab" in the current directory.
  173. (-apk|-noapk enable/disable backup of the .apks themselves
  174. in the archive; the default is noapk.)
  175. (-obb|-noobb enable/disable backup of any installed apk expansion
  176. (aka .obb) files associated with each application; the default
  177. is noobb.)
  178. (-shared|-noshared enable/disable backup of the device's
  179. shared storage / SD card contents; the default is noshared.)
  180. (-all means to back up all installed applications)
  181. (-system|-nosystem toggles whether -all automatically includes
  182. system applications; the default is to include system apps)
  183. (<packages...> is the list of applications to be backed up. If
  184. the -all or -shared flags are passed, then the package
  185. list is optional. Applications explicitly given on the
  186. command line will be included even if -nosystem would
  187. ordinarily cause them to be omitted.)
  188.  
  189. adb restore <file> - restore device contents from the <file> backup archive
  190.  
  191. adb disable-verity - disable dm-verity checking on USERDEBUG builds
  192. adb keygen <file> - generate adb public/private key. The private key is stored in <file>,
  193. and the public key is stored in <file>.pub. Any existing files
  194. are overwritten.
  195. adb help - show this help message
  196. adb version - show version num
  197.  
  198. scripting:
  199. adb wait-for-device - block until device is online
  200. adb start-server - ensure that there is a server running
  201. adb kill-server - kill the server if it is running
  202. adb get-state - prints: offline | bootloader | device
  203. adb get-serialno - prints: <serial-number>
  204. adb get-devpath - prints: <device-path>
  205. adb status-window - continuously print device status for a specified device
  206. adb remount - remounts the /system and /vendor (if present) partitions on the device read-write
  207. adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
  208. adb reboot-bootloader - reboots the device into the bootloader
  209. adb root - restarts the adbd daemon with root permissions
  210. adb usb - restarts the adbd daemon listening on USB
  211. adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
  212. networking:
  213. adb ppp <tty> [parameters] - Run PPP over USB.
  214. Note: you should not automatically start a PPP connection.
  215. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
  216. [parameters] - Eg. defaultroute debug dump local notty usepeerdns
  217.  
  218. adb sync notes: adb sync [ <directory> ]
  219. <localdir> can be interpreted in several ways:
  220.  
  221. - If <directory> is not specified, /system, /vendor (if present), and /data partitions will be updated.
  222.  
  223. - If it is "system", "vendor" or "data", only the corresponding partition
  224. is updated.
  225.  
  226. environmental variables:
  227. ADB_TRACE - Print debug information. A comma separated list of the following values
  228. 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
  229. ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
  230. ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.
  231.  
  232. E:\Coding\OnePlus>adb push twrp-installer-fajita-3.2.3-2.zip /data
  233. 7500 KB/s (17094317 bytes in 2.225s)
  234.  
  235. E:\Coding\OnePlus>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement