android:adb

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
android:adb [2024/04/17 12:38] – [Fedora] ともやんandroid:adb [2024/04/17 12:42] (現在) – [ヘルプ [help]] ともやん
行 82: 行 82:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<b class=GRN>$</b> <b class=HIY>adb</b> help+<font color="#FF8700"><b>$</b></font> <font color="#26A269">adb</font> help
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result_long><html><pre> <WRAP color_result_long><html><pre>
 Android Debug Bridge version 1.0.41 Android Debug Bridge version 1.0.41
-Version 31.0.2-android-tools+Version 34.0.4-android-tools
 Installed as /usr/bin/adb Installed as /usr/bin/adb
 +Running on Linux 6.8.5-201.fc39.x86_64 (x86_64)
  
 global options: global options:
- -a         listen on all network interfaces, not just localhost + -a                       listen on all network interfaces, not just localhost 
- -d         use USB device (error if multiple devices connected) + -d                       use USB device (error if multiple devices connected) 
- -e         use TCP/IP device (error if multiple TCP/IP devices available) + -e                       use TCP/IP device (error if multiple TCP/IP devices available) 
- -s SERIAL  use device with given serial (overrides $ANDROID_SERIAL) + -s SERIAL                use device with given serial (overrides $ANDROID_SERIAL) 
- -t ID      use device with given transport id + -t ID                    use device with given transport id 
- -H         name of adb server host [default=localhost] + -H                       name of adb server host [default=localhost] 
- -P         port of adb server [default=5037] + -P                       port of adb server [default=5037] 
- -L SOCKET  listen on given socket for adb server [default=tcp:localhost:5037]+ -L SOCKET                listen on given socket for adb server [default=tcp:localhost:5037] 
 + --one-device SERIAL|USB  only allowed with &apos;start-server&apos; or &apos;server nodaemon&apos;, server will only connect to one USB device, specified by a serial number or USB device address. 
 + --exit-on-write-error    exit if stdout is closed
  
 general commands: general commands:
行 113: 行 116:
  forward [--no-rebind] LOCAL REMOTE  forward [--no-rebind] LOCAL REMOTE
      forward socket connection using:      forward socket connection using:
-       tcp:<port(<localmay be "tcp:0to pick any open port) +       tcp:&lt;port&gt; (&lt;local&gt; may be &quot;tcp:0&quot; to pick any open port) 
-       localabstract:<unix domain socket name> +       localabstract:&lt;unix domain socket name&gt; 
-       localreserved:<unix domain socket name> +       localreserved:&lt;unix domain socket name&gt; 
-       localfilesystem:<unix domain socket name> +       localfilesystem:&lt;unix domain socket name&gt; 
-       dev:<character device name> +       dev:&lt;character device name&gt; 
-       jdwp:<process pid(remote only) +       jdwp:&lt;process pid&gt; (remote only) 
-       vsock:<CID>:<port(remote only) +       vsock:&lt;CID&gt;:&lt;port&gt; (remote only) 
-       acceptfd:<fd(listen only)+       acceptfd:&lt;fd&gt; (listen only)
  forward --remove LOCAL   remove specific forward socket connection  forward --remove LOCAL   remove specific forward socket connection
  forward --remove-all     remove all forward socket connections  forward --remove-all     remove all forward socket connections
- ppp TTY [PARAMETER...]   run PPP over USB 
  reverse --list           list all reverse socket connections from device  reverse --list           list all reverse socket connections from device
  reverse [--no-rebind] REMOTE LOCAL  reverse [--no-rebind] REMOTE LOCAL
      reverse socket connection using:      reverse socket connection using:
-       tcp:<port(<remotemay be "tcp:0to pick any open port) +       tcp:&lt;port&gt; (&lt;remote&gt; may be &quot;tcp:0&quot; to pick any open port) 
-       localabstract:<unix domain socket name> +       localabstract:&lt;unix domain socket name&gt; 
-       localreserved:<unix domain socket name> +       localreserved:&lt;unix domain socket name&gt; 
-       localfilesystem:<unix domain socket name>+       localfilesystem:&lt;unix domain socket name&gt;
  reverse --remove REMOTE  remove specific reverse socket connection  reverse --remove REMOTE  remove specific reverse socket connection
  reverse --remove-all     remove all reverse socket connections from device  reverse --remove-all     remove all reverse socket connections from device
行 141: 行 143:
      --sync: only push files that are newer on the host than the device      --sync: only push files that are newer on the host than the device
      -n: dry run: push files to device without storing to the filesystem      -n: dry run: push files to device without storing to the filesystem
-     -z: enable compression with a specified algorithm (anynonebrotli)+     -z: enable compression with a specified algorithm (any/none/brotli/lz4/zstd)
      -Z: disable compression      -Z: disable compression
  pull [-a] [-z ALGORITHM] [-Z] REMOTE... LOCAL  pull [-a] [-z ALGORITHM] [-Z] REMOTE... LOCAL
      copy files/dirs from device      copy files/dirs from device
      -a: preserve file timestamp and mode      -a: preserve file timestamp and mode
-     -z: enable compression with a specified algorithm (anynonebrotli)+     -z: enable compression with a specified algorithm (any/none/brotli/lz4/zstd)
      -Z: disable compression      -Z: disable compression
  sync [-l] [-z ALGORITHM] [-Z] [all|data|odm|oem|product|system|system_ext|vendor]  sync [-l] [-z ALGORITHM] [-Z] [all|data|odm|oem|product|system|system_ext|vendor]
      sync a local build from $ANDROID_PRODUCT_OUT to the device (default all)      sync a local build from $ANDROID_PRODUCT_OUT to the device (default all)
      -n: dry run: push files to device without storing to the filesystem      -n: dry run: push files to device without storing to the filesystem
-     -l: list files that would be copied, but don't copy them +     -l: list files that would be copied, but don&apos;t copy them 
-     -z: enable compression with a specified algorithm (anynonebrotli)+     -z: enable compression with a specified algorithm (any/none/brotli/lz4/zstd)
      -Z: disable compression      -Z: disable compression
  
行 158: 行 160:
  shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND...]  shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND...]
      run remote shell command (interactive shell if no command given)      run remote shell command (interactive shell if no command given)
-     -e: choose escape character, or "none"; default '~' +     -e: choose escape character, or &quot;none&quot;; default &apos;~&apos; 
-     -n: don't read from stdin+     -n: don&apos;t read from stdin
      -T: disable pty allocation      -T: disable pty allocation
      -t: allocate a pty if on a tty (-tt: force pty allocation)      -t: allocate a pty if on a tty (-tt: force pty allocation)
行 177: 行 179:
      -p: partial application install (install-multiple only)      -p: partial application install (install-multiple only)
      -g: grant all runtime permissions      -g: grant all runtime permissions
-     --abi ABI: override platform's default ABI+     --abi ABI: override platform&apos;s default ABI
      --instant: cause the app to be installed as an ephemeral install app      --instant: cause the app to be installed as an ephemeral install app
      --no-streaming: always push APK to device and invoke Package Manager as separate steps      --no-streaming: always push APK to device and invoke Package Manager as separate steps
行 190: 行 192:
  uninstall [-k] PACKAGE  uninstall [-k] PACKAGE
      remove this app package from the device      remove this app package from the device
-     '-k': keep the data and cache directories+     &apos;-k&apos;: keep the data and cache directories
  
 debugging: debugging:
行 196: 行 198:
      write bugreport to given PATH [default=bugreport.zip];      write bugreport to given PATH [default=bugreport.zip];
      if PATH is a directory, the bug report is saved in that directory.      if PATH is a directory, the bug report is saved in that directory.
-     devices that don't support zipped bug reports output to stdout.+     devices that don&apos;t support zipped bug reports output to stdout.
  jdwp                     list pids of processes hosting a JDWP transport  jdwp                     list pids of processes hosting a JDWP transport
  logcat                   show device log (logcat --help for more)  logcat                   show device log (logcat --help for more)
行 212: 行 214:
      TRANSPORT: usb, local, or any [default=any]      TRANSPORT: usb, local, or any [default=any]
  get-state                print offline | bootloader | device  get-state                print offline | bootloader | device
- get-serialno             print <serial-number> + get-serialno             print &lt;serial-number&gt; 
- get-devpath              print <device-path>+ get-devpath              print &lt;device-path&gt;
  remount [-R]  remount [-R]
       remount partitions read-write. if a reboot is required, -R will       remount partitions read-write. if a reboot is required, -R will
行 235: 行 237:
  reconnect offline        reset offline/unauthorized devices to force reconnect  reconnect offline        reset offline/unauthorized devices to force reconnect
  
 +usb:
 + attach                   attach a detached USB device
 + detach                   detach from a USB device to allow use by other processes
 environment variables: environment variables:
  $ADB_TRACE  $ADB_TRACE
行 244: 行 249:
  $ADB_LOCAL_TRANSPORT_MAX_PORT max emulator scan port (default 5585, 16 emus)  $ADB_LOCAL_TRANSPORT_MAX_PORT max emulator scan port (default 5585, 16 emus)
  $ADB_MDNS_AUTO_CONNECT   comma-separated list of mdns services to allow auto-connect (default adb-tls-connect)  $ADB_MDNS_AUTO_CONNECT   comma-separated list of mdns services to allow auto-connect (default adb-tls-connect)
 +
 +Online documentation: https://android.googlesource.com/platform/packages/modules/adb/+/refs/heads/master/docs/user/adb.1.md
 +
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
  • android/adb.txt
  • 最終更新: 2024/04/17 12:42
  • by ともやん