admin

mac安装adb
安装homebrew• 参考地址: https://zhuanlan.zhihu.com/p/111014448•...
扫描右侧二维码阅读全文
01
2021/03

mac安装adb

安装homebrew

• 参考地址: https://zhuanlan.zhihu.com/p/111014448
• 安装脚本

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

• 卸载脚本

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"

安装adb

• 脚本

brew install android-platform-tools
==> Satisfying dependencies
==> Downloading https://dl.google.com/android/repository/platform-tools_r29.0.2-
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'android-platform-tools'.
==> Installing Cask android-platform-tools
==> Linking Binary 'adb' to '/usr/local/bin/adb'.
==> Linking Binary 'dmtracedump' to '/usr/local/bin/dmtracedump'.
==> Linking Binary 'etc1tool' to '/usr/local/bin/etc1tool'.
==> Linking Binary 'fastboot' to '/usr/local/bin/fastboot'.
==> Linking Binary 'hprof-conv' to '/usr/local/bin/hprof-conv'.
==> Linking Binary 'mke2fs' to '/usr/local/bin/mke2fs'.
android-platform-tools was successfully installed!

• 设置环境变量

echo 'export PATH=$PATH:~/.android-sdk-macosx/platform-tools/' >> ~/.bash_profile

• 更新配置

source ~/.bash_profile

• 检查adb安装

adb devices
Last modification:March 1st, 2021 at 11:48 am

Leave a Comment