Android Debug Bridge (ADB) v1.0.31

这篇具有很好参考价值的文章主要介绍了Android Debug Bridge (ADB) v1.0.31。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Android SDK Platform Tools for Windows, Linux, Mac (all versions)
https://developer.android.google.cn/studio/releases/platform-tools

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
 
C:\Users\user>adb ?
Android Debug Bridge version 1.0.31
 
 -a                            - directs adb to listen on all interfaces for a connection
 -d                            - directs command to the only connected USB device
                                 returns an error if more than one USB device is present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is running.
 -s <specific device>          - directs command to the device or emulator with the given
                                 serial number or qualifier. Overrides ANDROID_SERIAL
                                 environment variable.
 -p <product name or path>     - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.
                                 If -p is not specified, the ANDROID_PRODUCT_OUT
                                 environment variable is used, which must
                                 be an absolute path.
 -H                            - Name of adb server host (default: localhost)
 -P                            - Port of adb server (default: 5037)
 devices [-l]                  - list all connected devices
                                 ('-l' will also list device qualifiers)
 connect <host>[:<port>]       - connect to a device via TCP/IP
                                 Port 5555 is used by default if no port number is specified.
 disconnect [<host>[:<port>]]  - disconnect from a TCP/IP device.
                                 Port 5555 is used by default if no port number is specified.
                                 Using this command with no additional arguments
                                 will disconnect from all connected TCP/IP devices.
device commands:
  adb push <local> <remote>    - copy file/dir to device
  adb pull <remote> [<local>]  - copy file/dir from device
  adb sync [ <directory> ]     - copy host->device only if changed
                                 (-l means list but don't copy)
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell <command>          - run remote shell command
  adb emu <command>            - run emulator console command
  adb logcat [ <filter-spec> ] - View device log
  adb forward --list           - list all forward socket connections.
                                 the format is a list of lines with the following format:
                                    <serial> " " <local> " " <remote> "\n"
  adb forward <local> <remote> - forward socket connections
                                 forward specs are one of:
                                   tcp:<port>
                                   localabstract:<unix domain socket name>
                                   localreserved:<unix domain socket name>
                                   localfilesystem:<unix domain socket name>
                                   dev:<character device name>
                                   jdwp:<process pid> (remote only)
  adb forward --no-rebind <local> <remote>
                               - same as 'adb forward <local> <remote>' but fails
                                 if <local> is already forwarded
  adb forward --remove <local> - remove a specific forward socket connection
  adb forward --remove-all     - remove all forward socket connections
  adb jdwp                     - list PIDs of processes hosting a JDWP transport
  adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>
                               - push this package file to the device and install it
                                 ('-l' means forward-lock the app)
                                 ('-r' means reinstall the app, keeping its data)
                                 ('-s' means install on SD card instead of internal storage)
                                 ('--algo', '--key', and '--iv' mean the file is encrypted already)
  adb uninstall [-k] <package> - remove this app package from the device
                                 ('-k' means keep the data and cache directories)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.
  adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
                               - write an archive of the device's data to <file>.
                                 If no -f option is supplied then the data is written
                                 to "backup.ab" in the current directory.
                                 (-apk|-noapk enable/disable backup of the .apks themselves
                                    in the archive; the default is noapk.)
                                 (-obb|-noobb enable/disable backup of any installed apk expansion
                                    (aka .obb) files associated with each application; the default
                                    is noobb.)
                                 (-shared|-noshared enable/disable backup of the device's
                                    shared storage / SD card contents; the default is noshared.)
                                 (-all means to back up all installed applications)
                                 (-system|-nosystem toggles whether -all automatically includes
                                    system applications; the default is to include system apps)
                                 (<packages...> is the list of applications to be backed up.  If
                                    the -all or -shared flags are passed, then the package
                                    list is optional.  Applications explicitly given on the
                                    command line will be included even if -nosystem would
                                    ordinarily cause them to be omitted.)
 
  adb restore <file>           - restore device contents from the <file> backup archive
 
  adb help                     - show this help message
  adb version                  - show version num
 
scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb get-devpath              - prints: <device-path>
  adb status-window            - continuously print device status for a specified device
  adb remount                  - remounts the /system partition on the device read-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
  adb reboot-bootloader        - reboots the device into the bootloader
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB
  adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
networking:
  adb ppp <tty> [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
 <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns
 
adb sync notes: adb sync [ <directory> ]
  <localdir> can be interpreted in several ways:
 
  - If <directory> is not specified, both /system and /data partitions will be updated.
 
  - If it is "system" or "data", only the corresponding partition
    is updated.
 
environmental variables:
  ADB_TRACE                    - Print debug information. A comma separated list of the following values
                                 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
  ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
  ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.
 
C:\Users\user>

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/文章来源地址https://www.toymoban.com/news/detail-836232.html

到了这里,关于Android Debug Bridge (ADB) v1.0.31的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 【Android】ADB无线连接Android设备

    Android Debug Bridge ,简称 adb ,是一种功能多样的命令行工具,可让您与设备进行通信。adb 命令可用于执行各种设备操作(例如安装和调试应用),并提供对 Unix shell(可用来在设备上运行各种命令)的访问权限。它是一种客户端-服务器程序,包括以下三个组件: 客户端 :用

    2023年04月08日
    浏览(52)
  • Android adb 常用命令

    1.坐标点击:在 100 100位置点击 2.长按:在 100 100 位置长按 1000毫秒 3.滑动:在屏幕上做划屏操作,前四个数为坐标点,后面是滑动的时间(单位毫秒) 4.截图:   推送设备图片到电脑E盘   删除设备图片 4.1截取副屏(双屏设备)   点击副屏 5.输入字符abc 6.常用命令

    2024年02月11日
    浏览(51)
  • Android--刷机与adb

    目录 一、Android设备启动流程 二、刷机模式介绍 三、Windows命令行 四、adb介绍与配置 五、常用的adb命令 Android就是Linux内核(Kernel)+Java虚拟机(JVM) Android设备启动就分为两个阶段: Linux启动 1.启动电源以及系统启动: 当电源键按下时引导芯片代码从预定义的地方(固化在ROM)开始执

    2024年02月09日
    浏览(45)
  • android adb卸载软件

    要通过Android Debug Bridge(ADB)卸载应用程序,请使用以下步骤: 1.在计算机上启动终端或命令提示符,并将其连接到设备,确保您已启用Android Developer选项。 2.运行以下命令来列出已安装的应用程序: 找到要卸载的应用程序名称,并运行以下命令卸载该应用程序: 其中, pa

    2024年02月16日
    浏览(34)
  • Android adb wifi调试

    0、需要先配置adb的环境变量。打开电脑的环境变量的设置,增加Path的路径,输入sdk下的这个位置(D:androidsdkplatform-tools),如果能在windows上使用adb命令,但是Android Studio中不行,重启as也不行的情况下,那就得重启电脑(cmd 中能用adb,terminal中就不能用,两字:重启电脑)配

    2024年02月06日
    浏览(48)
  • Android代码执行ADB指令

    要在Android代码中执行ADB指令,你可以使用Java的ProcessBuilder类来创建一个子进程来执行命令。以下是一个示例代码: 在上面的示例代码中,我们执行了一个简单的ADB命令 adb devices ,并将结果打印到控制台上。你可以根据自己的需求修改ADB命令和处理结果的方式。请注意,你需

    2024年02月10日
    浏览(33)
  • Android adb使用超级大全

    ADB,即Android Debug Bridge,是一款强大的工具,对于Android开发/测试人员来说是不可或缺的,同时也是Android设备玩家的好玩具。本文将详细介绍ADB的使用方法。 ADB的基本用法如下: 命令语法: 如果只有一个设备/模拟器连接时,可以省略 [-d|-e|-s serialNumber] 这一部分,直接使用

    2024年02月19日
    浏览(35)
  • Android adb说明与详解

    Android adb 说明与详解 Android Debug Bridge(ADB)是一个非常有用的工具,它可以帮助开发人员在Android设备和计算机之间进行通信,以便在设备上进行调试、测试和安装应用程序。 在使用ADB之前,您需要安装Android SDK。安装完SDK后,您可以在SDK目录的platform-tools目录中找到ADB。 现在

    2024年02月16日
    浏览(33)
  • android 通过adb shell命令旋转Android屏幕朝向

    注意: 默认0有的为横向,有的为纵向 纵向返回结果: cur 的值 宽 短 x 高 长 init=1080x1920 420dpi cur=1080x1920 app=1080x1794 rng=1080x1017-1794x1731 横向返回结果: cur 的值 宽 长 x 高 短 init=1080x1920 420dpi cur=1920x1080 app=1794x1080 rng=1080x1017-1794x1731

    2024年02月11日
    浏览(113)
  • Android adb命令发送广播介绍

    Android 广播除了代码中发送,还可以使用命令模拟发送,只要应用代码中进行了监听,都可以正常接收到的。 掌握手动发送广播命令,可以方便某些代码的调试。 所以学习一下Android adb方式 发送广播命令是有用的。有需要的可以收藏使用。 1、发送广播命令格式 adb shell 发送

    2024年04月15日
    浏览(55)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包