Windows 10 安装 ADB (Android Debug Bridge,Android 调试桥)

Android Debug Bridge (adb) is a command line tool that lets you communicate with an emulator or connected Android device.

Android 开发者网站
https://developer.android.google.cn/

Android Studio
https://developer.android.google.cn/studio

新变化
https://developer.android.google.cn/studio/features

SDK Platform Tools
https://developer.android.google.cn/studio/releases/platform-tools

Android Debug Bridge,Android 调试桥
https://developer.android.com/studio/command-line/adb

0. ADB 历史版本下载

Android SDK Platform Tools for Windows, Linux, Mac (all versions) - 历史版本下载
https://androidmtk.com/download-android-sdk-platform-tools

Android SDK Platform Tools are the elements of the Android SDK. It contains tools that alliance with the Android platform, such as ADB, fastboot, and systrace.

Android Debug Bridge,ADB:Android 调试桥

1. ADB Download

Download the latest version of ADB and fastboot.
http://adbdownload.com/

2. D:\Program Files\platform-tools\adb.exe

platform-tools_r30.0.4-windows.zip

D:\Program Files\platform-tools
D:\Program Files\platform-tools\adb.exe

此电脑 -> 高级系统设置 -> 高级 -> 环境变量

此电脑 -> 高级系统设置 -> 高级 -> 环境变量 -> 系统变量 -> 变量 Path

此电脑 -> 高级系统设置 -> 高级 -> 环境变量 -> 系统变量 -> 变量 Path -> 编辑环境变量

新建 -> 添加 D:\Program Files\platform-tools\

3. ADB

WIN + R (cmd)

adb version

adb help

Microsoft Windows [版本 10.0.19041.450]
(c) 2020 Microsoft Corporation. 保留所有权利。C:\Users\cheng>adb help
Android Debug Bridge version 1.0.41
Version 30.0.4-6686687
Installed as D:\Program Files\platform-tools\adb.exeglobal options:-a         listen on all network interfaces, not just localhost-d         use USB device (error if multiple devices connected)-e         use TCP/IP device (error if multiple TCP/IP devices available)-s SERIAL  use device with given serial (overrides $ANDROID_SERIAL)-t ID      use device with given transport id-H         name of adb server host [default=localhost]-P         port of adb server [default=5037]-L SOCKET  listen on given socket for adb server [default=tcp:localhost:5037]general commands:devices [-l]             list connected devices (-l for long output)help                     show this help messageversion                  show version numnetworking:connect HOST[:PORT]      connect to a device via TCP/IP [default port=5555]disconnect [HOST[:PORT]]disconnect from given TCP/IP device [default port=5555], or allpair HOST[:PORT] [PAIRING CODE]pair with a device for secure TCP/IP communicationforward --list           list all forward socket connectionsforward [--no-rebind] LOCAL REMOTEforward socket connection using:tcp:<port> (<local> may be "tcp:0" to pick any open 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)acceptfd:<fd> (listen only)forward --remove LOCAL   remove specific forward socket connectionforward --remove-all     remove all forward socket connectionsppp TTY [PARAMETER...]   run PPP over USBreverse --list           list all reverse socket connections from devicereverse [--no-rebind] REMOTE LOCALreverse socket connection using:tcp:<port> (<remote> may be "tcp:0" to pick any open port)localabstract:<unix domain socket name>localreserved:<unix domain socket name>localfilesystem:<unix domain socket name>reverse --remove REMOTE  remove specific reverse socket connectionreverse --remove-all     remove all reverse socket connections from devicemdns check               check if mdns discovery is availablemdns services            list all discovered servicesfile transfer:push [--sync] [-z ALGORITHM] [-Z] LOCAL... REMOTEcopy local files/directories to 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-z: enable compression with a specified algorithm (any, none, brotli)-Z: disable compressionpull [-a] [-z ALGORITHM] [-Z] REMOTE... LOCALcopy files/dirs from device-a: preserve file timestamp and mode-z: enable compression with a specified algorithm (any, none, brotli)-Z: disable compressionsync [-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)-n: dry run: push files to device without storing to the filesystem-l: list files that would be copied, but don't copy them-z: enable compression with a specified algorithm (any, none, brotli)-Z: disable compressionshell:shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND...]run remote shell command (interactive shell if no command given)-e: choose escape character, or "none"; default '~'-n: don't read from stdin-T: disable pty allocation-t: allocate a pty if on a tty (-tt: force pty allocation)-x: disable remote exit codes and stdout/stderr separationemu COMMAND              run emulator console commandapp installation (see also `adb shell cmd package help`):install [-lrtsdg] [--instant] PACKAGEpush a single package to the device and install itinstall-multiple [-lrtsdpg] [--instant] PACKAGE...push multiple APKs to the device for a single package and install theminstall-multi-package [-lrtsdpg] [--instant] PACKAGE...push one or more packages to the device and install them atomically-r: replace existing application-t: allow test packages-d: allow version code downgrade (debuggable packages only)-p: partial application install (install-multiple only)-g: grant all runtime permissions--abi ABI: override platform's default ABI--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--streaming: force streaming APK directly into Package Manager--fastdeploy: use fast deploy--no-fastdeploy: prevent use of fast deploy--force-agent: force update of deployment agent when using fast deploy--date-check-agent: update deployment agent when local version is newer and using fast deploy--version-check-agent: update deployment agent when local version has different version code and using fast deploy(See also `adb shell pm help` for more options.)uninstall [-k] PACKAGEremove this app package from the device'-k': keep the data and cache directoriesdebugging:bugreport [PATH]write bugreport to given PATH [default=bugreport.zip];if PATH is a directory, the bug report is saved in that directory.devices that don't support zipped bug reports output to stdout.jdwp                     list pids of processes hosting a JDWP transportlogcat                   show device log (logcat --help for more)security:disable-verity           disable dm-verity checking on userdebug buildsenable-verity            re-enable dm-verity checking on userdebug buildskeygen FILEgenerate adb public/private key; private key stored in FILE,scripting:wait-for[-TRANSPORT]-STATE...wait for device to be in a given stateSTATE: device, recovery, rescue, sideload, bootloader, or disconnectTRANSPORT: usb, local, or any [default=any]get-state                print offline | bootloader | deviceget-serialno             print <serial-number>get-devpath              print <device-path>remount [-R]remount partitions read-write. if a reboot is required, -R willwill automatically reboot the device.reboot [bootloader|recovery|sideload|sideload-auto-reboot]reboot the device; defaults to booting system image butsupports bootloader and recovery too. sideload rebootsinto recovery and automatically starts sideload mode,sideload-auto-reboot is the same but reboots after sideloading.sideload OTAPACKAGE      sideload the given full OTA packageroot                     restart adbd with root permissionsunroot                   restart adbd without root permissionsusb                      restart adbd listening on USBtcpip PORT               restart adbd listening on TCP on PORTinternal debugging:start-server             ensure that there is a server runningkill-server              kill the server if it is runningreconnect                kick connection from host side to force reconnectreconnect device         kick connection from device side to force reconnectreconnect offline        reset offline/unauthorized devices to force reconnectenvironment variables:$ADB_TRACEcomma-separated list of debug info to log:all,adb,sockets,packets,rwx,usb,sync,sysdeps,transport,jdwp$ADB_VENDOR_KEYS         colon-separated list of keys (files or directories)$ANDROID_SERIAL          serial number to connect to (see -s)$ANDROID_LOG_TAGS        tags to be used by logcat (see logcat --help)$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)C:\Users\cheng>

adb kill-server - adb start-server

Microsoft Windows [版本 10.0.19041.450]
(c) 2020 Microsoft Corporation. 保留所有权利。C:\Users\cheng>adb kill-serverC:\Users\cheng>adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfullyC:\Users\cheng>

References

https://yongqiang.blog.csdn.net/
https://adbshell.com/

Windows 10 安装 ADB (Android Debug Bridge,Android 调试桥)相关推荐

  1. Android Debug Bridge(ADB)学习总结

    Android Debug Bridge Android调试桥(ADB)是一种多用途的命令行工具.通过它我们可以和模拟器或者设备通信.ADB是一个客户端-服务器程序,包括三个组成部分: 客户端(Cli ...

  2. Linux / Windows Subsystem for Linux (WSL) 安装 ADB (Android Debug Bridge,Android 调试桥)

    Linux / Windows Subsystem for Linux (WSL) 安装 ADB (Android Debug Bridge,Android 调试桥) Android 开发者网站 ht ...

  3. adb(Android debug bridge)命令

    From:https://www.cnblogs.com/huanyou/p/5133737.html ADB 用法大全: github 地址:https://github.com/mzlogin/a ...

  4. Android Debug Bridge(adb)

    Adb google官方文档翻译,源文档地址如下 https://developer.android.google.cn/studio/command-line/adb Android Debug B ...

  5. Android Debug Bridge (ADB) v1.0.31

    Android Debug Bridge (ADB) v1.0.31 Android SDK Platform Tools for Windows, Linux, Mac (all versions) ...

  6. Android开发者指南(1) —— Android Debug Bridge(adb)

    Android Debug Bridge Android调试桥接器,简称adb,是用于管理模拟器或真机状态的万能工具,采用了客户端-服务器模型,包括三个部分: * 客户端部分,运行在开发用的电脑上,可 ...

  7. Android开发工具——ADB(Android Debug Bridge) 一概览

    Android Debug Bridge (adb) 是一个android开发人员必会的多功能的调试工具,确实它的名字一样,它在开发者和目标机器之间,架起了一座bridge. adb的用法很简单,只要 ...

  8. [ADB]ADB(Android Debug Bridge)简介及基础(不包含命令)

    "Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an ...

  9. mac android usb驱动 win10,如何从Mac OS X创建Windows 10安装程序USB驱动器 | MOS86

    Windows 10能够在双引导环境中运行在所有现代的Mac硬件,由于Boot Camp.如果您打算在同一台Mac上与OS X一起运行Windows,您将需要从USB驱动器创建一个可引导的Window ...

最新文章

  1. android加载html
  2. CRC24循环冗余校验码的FPGA实现
  3. 在.c文件中调用cuda函数
  4. 智能客户端(SmartClient)
  5. 土木转计算机 但计算机学院不好,土木妹子转计算机,较高三维水科研,求指导!...
  6. FCKeidtor的toolbarset的设置
  7. 如何及时还原被删除的活动目录对象
  8. 关于sql的执行顺序
  9. linux编译多个函数,Swift on Linux —— 多文件协同编译
  10. 火狐浏览器插件(XPI 文件)签名指南
  11. java 加密压缩文件
  12. 数字人轻松学习Blender系列之八:建模-1
  13. 基于transformer的车辆识别
  14. Window环境下MQTT安装
  15. 反向传播不香了?解读 Hinton 大佬的 Forward-Forward 算法
  16. 收藏:学做美食--欢乐年夜饭之神七年糕火焰虾
  17. 如何解决苹果电脑(Macbook Pro)没有声音?
  18. 第三章 matlab学习入门之编程基础
  19. 模糊控制初学入门之概念认知
  20. m基于K-means聚类算法和神经网络的模糊控制器设计matlab仿真

热门文章

  1. tf1.x迁移到tf2.x contrib的方法和思路
  2. POJ - 1579 Function Run Fun
  3. LeeCode 1579 并查集
  4. 微软应用商店_微软应用商店将开发者分成比例提高至95%
  5. 【PPT】《挑战用chatgpt完成流水线操作的ppt,再也不用担心每周肝组会报告ppt了#人工智能 #chatgpt应用领域 快学起来!!!》- 知识点目录
  6. 第一部分 思科九年 一(1)
  7. 如何在SQL中处理层次型数据
  8. 从程序员角度看ELF----__do_global_dtors_aux and __do_global_ctors_aux
  9. 基于FFmpeg实现简单的视频解码器
  10. 中国制造创意配件 - iPad 三合一读卡接口