ADB工具的安装

 

1.Windows

ADB工具下载地址:

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

ADB工具官网教程:

https://developer.android.com/studio/command-line/adb

  • 下载ADB工具后解压缩
  • 在解压出来的目录中按住 <Shift> 再单击 <右键>,<在命令行中打开>
  • 查看设备: adb devices

2.Linux

  • Ubuntu系安装命令: sudo apt install android-tools-adb android-tools-fastboot 
  • 更多其他的Linux发行版版本可以参照各个发行版的WiKi

3.macOS

  • 如果安装了 brew 。打开终端->键入 brew cask install android-platform-tools 
  • 下载压缩包解压。打开终端->进入到解压出来的目录。

4.常用的adb命令

    • 查看已连接设备    adb devices 
    • 进入recovery模式   adb reboot recovery
    • 重启         adb reboot
    • 安装软件       adb install [file name] 

猜你喜欢

转载自www.cnblogs.com/wangtiaoke/p/9259674.html