| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
| android:adb [2024/04/17 12:37] – [Fedora] ともやん | android:adb [2024/04/17 12:42] (現在) – [ヘルプ [help]] ともやん |
|---|
| <font color="#FF8700"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:single">sudo</u></font> <font color="#26A269">dnf</font> install android-tools | <font color="#FF8700"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:single">sudo</u></font> <font color="#26A269">dnf</font> install android-tools |
| </pre></html></WRAP> | </pre></html></WRAP> |
| <WRAP color_result><html><pre>メタデータの期限切れの最終確認: 4:50:25 前の 2024年04月17日 07時44分58秒 に実施しました。 | <WRAP color_result_hlong><html><pre>メタデータの期限切れの最終確認: 4:50:25 前の 2024年04月17日 07時44分58秒 に実施しました。 |
| 依存関係が解決しました。 | 依存関係が解決しました。 |
| ============================================================================================================== | ============================================================================================================== |
| <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 'start-server' or 'server nodaemon', 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: |
| forward [--no-rebind] LOCAL REMOTE | forward [--no-rebind] LOCAL REMOTE |
| forward socket connection using: | forward socket connection using: |
| tcp:<port> (<local> may be "tcp:0" to pick any open port) | tcp:<port> (<local> may be "tcp:0" to pick any open port) |
| localabstract:<unix domain socket name> | localabstract:<unix domain socket name> |
| localreserved:<unix domain socket name> | localreserved:<unix domain socket name> |
| localfilesystem:<unix domain socket name> | localfilesystem:<unix domain socket name> |
| dev:<character device name> | dev:<character device name> |
| jdwp:<process pid> (remote only) | jdwp:<process pid> (remote only) |
| vsock:<CID>:<port> (remote only) | vsock:<CID>:<port> (remote only) |
| acceptfd:<fd> (listen only) | acceptfd:<fd> (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> (<remote> may be "tcp:0" to pick any open port) | tcp:<port> (<remote> may be "tcp:0" to pick any open port) |
| localabstract:<unix domain socket name> | localabstract:<unix domain socket name> |
| localreserved:<unix domain socket name> | localreserved:<unix domain socket name> |
| localfilesystem:<unix domain socket name> | localfilesystem:<unix domain socket name> |
| 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 |
| --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 (any, none, brotli) | -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 (any, none, brotli) | -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't copy them |
| -z: enable compression with a specified algorithm (any, none, brotli) | -z: enable compression with a specified algorithm (any/none/brotli/lz4/zstd) |
| -Z: disable compression | -Z: disable compression |
| |
| 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 "none"; default '~' |
| -n: don't read from stdin | -n: don'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) |
| -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'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 |
| 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 | '-k': keep the data and cache directories |
| |
| debugging: | debugging: |
| 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'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) |
| 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 <serial-number> |
| get-devpath print <device-path> | get-devpath print <device-path> |
| 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 |
| 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 |
| $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> |