Advertisement
thomas1310

logcat cm10

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