Guest User

Untitled

a guest
Feb 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.21 KB | None | 0 0
  1. Last login: Mon Oct 24 10:02:28 on ttys000
  2. Annamarie-Sperdutos-MacBook:~ banaynay001$ adb shell cat /dev/msm_rotator
  3. /dev/msm_rotator: invalid length
  4. Annamarie-Sperdutos-MacBook:~ banaynay001$ adb push fre3vo
  5. Android Debug Bridge version 1.0.29
  6.  
  7. -d - directs command to the only connected USB device
  8. returns an error if more than one USB device is present.
  9. -e - directs command to the only running emulator.
  10. returns an error if more than one emulator is running.
  11. -s <serial number> - directs command to the USB device or emulator with
  12. the given serial number. Overrides ANDROID_SERIAL
  13. environment variable.
  14. -p <product name or path> - simple product name like 'sooner', or
  15. a relative/absolute path to a product
  16. out directory like 'out/target/product/sooner'.
  17. If -p is not specified, the ANDROID_PRODUCT_OUT
  18. environment variable is used, which must
  19. be an absolute path.
  20. devices - list all connected devices
  21. connect <host>[:<port>] - connect to a device via TCP/IP
  22. Port 5555 is used by default if no port number is specified.
  23. disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
  24. Port 5555 is used by default if no port number is specified.
  25. Using this command with no additional arguments
  26. will disconnect from all connected TCP/IP devices.
  27.  
  28. device commands:
  29. adb push <local> <remote> - copy file/dir to device
  30. adb pull <remote> [<local>] - copy file/dir from device
  31. adb sync [ <directory> ] - copy host->device only if changed
  32. (-l means list but don't copy)
  33. (see 'adb help all')
  34. adb shell - run remote shell interactively
  35. adb shell <command> - run remote shell command
  36. adb emu <command> - run emulator console command
  37. adb logcat [ <filter-spec> ] - View device log
  38. adb forward <local> <remote> - forward socket connections
  39. forward specs are one of:
  40. tcp:<port>
  41. localabstract:<unix domain socket name>
  42. localreserved:<unix domain socket name>
  43. localfilesystem:<unix domain socket name>
  44. dev:<character device name>
  45. jdwp:<process pid> (remote only)
  46. adb jdwp - list PIDs of processes hosting a JDWP transport
  47. adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
  48. ('-l' means forward-lock the app)
  49. ('-r' means reinstall the app, keeping its data)
  50. ('-s' means install on SD card instead of internal storage)
  51. adb uninstall [-k] <package> - remove this app package from the device
  52. ('-k' means keep the data and cache directories)
  53. adb bugreport - return all information from the device
  54. that should be included in a bug report.
  55.  
  56. adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
  57. - write an archive of the device's data to <file>.
  58. If no -f option is supplied then the data is written
  59. to "backup.ab" in the current directory.
  60. (-apk|-noapk enable/disable backup of the .apks themselves
  61. in the archive; the default is noapk.)
  62. (-shared|-noshared enable/disable backup of the device's
  63. shared storage / SD card contents; the default is noshared.)
  64. (-all means to back up all installed applications)
  65. (-system|-nosystem toggles whether -all automatically includes
  66. system applications; the default is to include system apps)
  67. (<packages...> is the list of applications to be backed up. If
  68. the -all or -shared flags are passed, then the package
  69. list is optional. Applications explicitly given on the
  70. command line will be included even if -nosystem would
  71. ordinarily cause them to be omitted.)
  72.  
  73. adb restore <file> - restore device contents from the <file> backup archive
  74.  
  75. adb help - show this help message
  76. adb version - show version num
  77.  
  78. scripting:
  79. adb wait-for-device - block until device is online
  80. adb start-server - ensure that there is a server running
  81. adb kill-server - kill the server if it is running
  82. adb get-state - prints: offline | bootloader | device
  83. adb get-serialno - prints: <serial-number>
  84. adb status-window - continuously print device status for a specified device
  85. adb remount - remounts the /system partition on the device read-write
  86. adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
  87. adb reboot-bootloader - reboots the device into the bootloader
  88. adb root - restarts the adbd daemon with root permissions
  89. adb usb - restarts the adbd daemon listening on USB
  90. adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
  91. networking:
  92. adb ppp <tty> [parameters] - Run PPP over USB.
  93. Note: you should not automatically start a PPP connection.
  94. <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
  95. [parameters] - Eg. defaultroute debug dump local notty usepeerdns
  96.  
  97. adb sync notes: adb sync [ <directory> ]
  98. <localdir> can be interpreted in several ways:
  99.  
  100. - If <directory> is not specified, both /system and /data partitions will be updated.
  101.  
  102. - If it is "system" or "data", only the corresponding partition
  103. is updated.
  104.  
  105. environmental variables:
  106. ADB_TRACE - Print debug information. A comma separated list of the following values
  107. 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
  108. ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
  109. ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.
  110. Annamarie-Sperdutos-MacBook:~ banaynay001$ adb shell
  111. $ chmod 777
  112. Usage: chmod <MODE> <FILE>
  113. $ fre3vo -debug -start FAA90000 -end FFFFFFFF
  114. fre3vo: permission denied
  115. $
Add Comment
Please, Sign In to add comment