The Android Debug Bridge (ADB) is a command-line tool that can be used to install, uninstall and debug apps, transfer files and access the device's shell.
測試必備神器
那麼如何在mac下安裝adb呢?最簡單的辦法就是通過homebrew
1.安裝homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
這個過程稍微有點長,耐心等待一會,安裝成功後如下顯示:
2. 安裝adb
brew cask install android-platform-tools
3.檢查啓動adb
adb devices
adb shell