Advertisement
Guest User

Error Report

a guest
Aug 14th, 2012
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.86 KB | None | 0 0
  1. C:\Users\Erfan>ADB Devices
  2. Android Debug Bridge version 1.0.29
  3.  
  4. -d - directs command to the only connected USB devic
  5. e
  6. returns an error if more than one USB device is
  7. present.
  8. -e - directs command to the only running emulator.
  9. returns an error if more than one emulator is r
  10. unning.
  11. -s <serial number> - directs command to the USB device or emulator w
  12. ith
  13. the given serial number. Overrides ANDROID_SERI
  14. AL
  15. environment variable.
  16. -p <product name or path> - simple product name like 'sooner', or
  17. a relative/absolute path to a product
  18. out directory like 'out/target/product/sooner'.
  19.  
  20. If -p is not specified, the ANDROID_PRODUCT_OUT
  21.  
  22. environment variable is used, which must
  23. be an absolute path.
  24. devices - list all connected devices
  25. connect <host>[:<port>] - connect to a device via TCP/IP
  26. Port 5555 is used by default if no port number
  27. is specified.
  28. disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
  29. Port 5555 is used by default if no port number
  30. is specified.
  31. Using this command with no additional arguments
  32.  
  33. will disconnect from all connected TCP/IP devic
  34. es.
  35.  
  36. device commands:
  37. adb push <local> <remote> - copy file/dir to device
  38. adb pull <remote> [<local>] - copy file/dir from device
  39. adb sync [ <directory> ] - copy host->device only if changed
  40. (-l means list but don't copy)
  41. (see 'adb help all')
  42. adb shell - run remote shell interactively
  43. adb shell <command> - run remote shell command
  44. adb emu <command> - run emulator console command
  45. adb logcat [ <filter-spec> ] - View device log
  46. adb forward <local> <remote> - forward socket connections
  47. forward specs are one of:
  48. tcp:<port>
  49. localabstract:<unix domain socket name>
  50. localreserved:<unix domain socket name>
  51. localfilesystem:<unix domain socket name>
  52. dev:<character device name>
  53. jdwp:<process pid> (remote only)
  54. adb jdwp - list PIDs of processes hosting a JDWP transport
  55.  
  56. adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --
  57. iv <hex-encoded iv>] <file>
  58. - push this package file to the device and instal
  59. l 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. ('--algo', '--key', and '--iv' mean the file is
  66. encrypted already)
  67. adb uninstall [-k] <package> - remove this app package from the device
  68. ('-k' means keep the data and cache directories
  69. )
  70. adb bugreport - return all information from the device
  71. that should be included in a bug report.
  72.  
  73. adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosy
  74. stem] [<packages...>]
  75. - write an archive of the device's data to <file>
  76. .
  77. If no -f option is supplied then the data is wr
  78. itten
  79. to "backup.ab" in the current directory.
  80. (-apk|-noapk enable/disable backup of the .apks
  81. themselves
  82. in the archive; the default is noapk.)
  83. (-shared|-noshared enable/disable backup of the
  84. device's
  85. shared storage / SD card contents; the defau
  86. lt is noshared.)
  87. (-all means to back up all installed applicatio
  88. ns)
  89. (-system|-nosystem toggles whether -all automat
  90. ically includes
  91. system applications; the default is to inclu
  92. de system apps)
  93. (<packages...> is the list of applications to b
  94. e backed up. If
  95. the -all or -shared flags are passed, then t
  96. he package
  97. list is optional. Applications explicitly g
  98. iven on the
  99. command line will be included even if -nosys
  100. tem would
  101. ordinarily cause them to be omitted.)
  102.  
  103. adb restore <file> - restore device contents from the <file> backup
  104. archive
  105.  
  106. adb help - show this help message
  107. adb version - show version num
  108.  
  109. scripting:
  110. adb wait-for-device - block until device is online
  111. adb start-server - ensure that there is a server running
  112. adb kill-server - kill the server if it is running
  113. adb get-state - prints: offline | bootloader | device
  114. adb get-serialno - prints: <serial-number>
  115. adb status-window - continuously print device status for a specifie
  116. d device
  117. adb remount - remounts the /system partition on the device re
  118. ad-write
  119. adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
  120. tloader or recovery program
  121. adb reboot-bootloader - reboots the device into the bootloader
  122. adb root - restarts the adbd daemon with root permissions
  123. adb usb - restarts the adbd daemon listening on USB
  124. adb tcpip <port> - restarts the adbd daemon listening on TCP on th
  125. e specified port
  126. networking:
  127. adb ppp <tty> [parameters] - Run PPP over USB.
  128. Note: you should not automatically start a PPP connection.
  129. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
  130. [parameters] - Eg. defaultroute debug dump local notty usepeerdns
  131.  
  132. adb sync notes: adb sync [ <directory> ]
  133. <localdir> can be interpreted in several ways:
  134.  
  135. - If <directory> is not specified, both /system and /data partitions will be u
  136. pdated.
  137.  
  138. - If it is "system" or "data", only the corresponding partition
  139. is updated.
  140.  
  141. environmental variables:
  142. ADB_TRACE - Print debug information. A comma separated list
  143. of the following values
  144. 1 or all, adb, sockets, packets, rwx, usb, sync
  145. , sysdeps, transport, jdwp
  146. ANDROID_SERIAL - The serial number to connect to. -s takes prior
  147. ity over this if given.
  148. ANDROID_LOG_TAGS - When used with the logcat option, only these de
  149. bug tags are printed.
  150.  
  151. C:\Users\Erfan>CD..
  152.  
  153. C:\Users>Cd..
  154.  
  155. C:\>Cd SDK\platform-tools
  156.  
  157. C:\SDK\platform-tools>adb shell strings /dev/mtd/mtd8
  158. FACT_RESET_3
  159.  
  160. C:\SDK\platform-tools>adb shell flash_eraseall /dev/mtd/mtd8
  161. /sbin/sh: flash_eraseall: not found
  162.  
  163. C:\SDK\platform-tools>adb reboot recovery
  164.  
  165. C:\SDK\platform-tools>adb shell mount /dev/block/mmcblk0p1 /sdcard
  166.  
  167. C:\SDK\platform-tools>adb push xionia_cwma_125186.img /sdcard/
  168. cannot stat 'xionia_cwma_125186.img': No such file or directory
  169.  
  170. C:\SDK\platform-tools>adb shell
  171. flash_image recovery /sdcard/xionia_cwma_125186.img
  172. exit~ # flash_image recovery /sdcard/xionia_cwma_125186.img
  173. failed with error: -1
  174. error opening /sdcard/xionia_cwma_125186.img~ #
  175. exit
  176.  
  177. C:\SDK\platform-tools>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement