document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.  
  2.  
  3.  
  4. C:\\android-sdk-windows\\tools>Adb logcat
  5. - waiting for device -
  6.  
  7. C:\\android-sdk-windows\\tools>Adb logcat
  8.  
  9. C:\\android-sdk-windows\\tools>Adb logcatAdb logcat
  10. Android Debug Bridge version 1.0.26
  11.  
  12. -d - directs command to the only connected USB devic
  13. e
  14. returns an error if more than one USB device is
  15. present.
  16. -e - directs command to the only running emulator.
  17. returns an error if more than one emulator is r
  18. unning.
  19. -s <serial number> - directs command to the USB device or emulator w
  20. ith
  21. the given serial number. Overrides ANDROID_SERI
  22. AL
  23. environment variable.
  24. -p <product name or path> - simple product name like 'sooner', or
  25. a relative/absolute path to a product
  26. out directory like 'out/target/product/sooner'.
  27.  
  28. If -p is not specified, the ANDROID_PRODUCT_OUT
  29.  
  30. environment variable is used, which must
  31. be an absolute path.
  32. devices - list all connected devices
  33. connect <host>:<port> - connect to a device via TCP/IP
  34. disconnect <host>:<port> - disconnect from a TCP/IP device
  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. (see 'adb help all')
  41. adb shell - run remote shell interactively
  42. adb shell <command> - run remote shell command
  43. adb emu <command> - run emulator console command
  44. adb logcat [ <filter-spec> ] - View device log
  45. adb forward <local> <remote> - forward socket connections
  46. forward specs are one of:
  47. tcp:<port>
  48. localabstract:<unix domain socket name>
  49. localreserved:<unix domain socket name>
  50. localfilesystem:<unix domain socket name>
  51. dev:<character device name>
  52. jdwp:<process pid> (remote only)
  53. adb jdwp - list PIDs of processes hosting a JDWP transport
  54.  
  55. adb install [-l] [-r] [-s] <file> - push this package file to the device and i
  56. nstall it
  57. ('-l' means forward-lock the app)
  58. ('-r' means reinstall the app, keeping its data
  59. )
  60. ('-s' means install on SD card instead of inter
  61. nal storage)
  62. adb uninstall [-k] <package> - remove this app package from the device
  63. ('-k' means keep the data and cache directories
  64. )
  65. adb bugreport - return all information from the device
  66. that should be included in a bug report.
  67.  
  68. adb help - show this help message
  69. adb version - show version num
  70.  
  71. DATAOPTS:
  72. (no option) - don't touch the data partition
  73. -w - wipe the data partition
  74. -d - flash the data partition
  75.  
  76. scripting:
  77. adb wait-for-device - block until device is online
  78. adb start-server - ensure that there is a server running
  79. adb kill-server - kill the server if it is running
  80. adb get-state - prints: offline | bootloader | device
  81. adb get-serialno - prints: <serial-number>
  82. adb status-window - continuously print device status for a specifie
  83. d device
  84. adb remount - remounts the /system partition on the device re
  85. ad-write
  86. adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
  87. tloader or recovery program
  88. adb reboot-bootloader - reboots the device into the bootloader
  89. adb root - restarts the adbd daemon with root permissions
  90. adb usb - restarts the adbd daemon listening on USB
  91. adb tcpip <port> - restarts the adbd daemon listening on TCP on th
  92. e specified port
  93. networking:
  94. adb ppp <tty> [parameters] - Run PPP over USB.
  95. Note: you should not automatically start a PPP connection.
  96. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
  97. [parameters] - Eg. defaultroute debug dump local notty usepeerdns
  98.  
  99. adb sync notes: adb sync [ <directory> ]
  100. <localdir> can be interpreted in several ways:
  101.  
  102. - If <directory> is not specified, both /system and /data partitions will be u
  103. pdated.
  104.  
  105. - If it is "system" or "data", only the corresponding partition
  106. is updated.
  107.  
  108. C:\\android-sdk-windows\\tools>Adb logcat
  109.  
  110. C:\\android-sdk-windows\\tools>
');