【转载】How to Install & Setup ADB on Mac OS X
时间:2022-03-14 02:53
文章转载自:https://seo-michael.co.uk/how-to-setup-adb-on-os-x/
Here is an easy to follow guide for setting up (ADB) on your Mac.
- Create a new directory on your Mac called
android
and place it somewhere easy to find - Download (300+MB Download)
- Unzip adt-bundle-mac-x86_64-20140702.zip
- Rename unzipped directory to Android-SDK
- Move the renamed directory Android-SDK to the android directory created in step 1
- Open the Android-SDK directory
- Navigate to
/sdk/tools
- Double click (you may need to right click and select open) the android file
- Paste adb into the root of the original android directory created in step 1
This is pretty much completed. Now we need to test to make sure it is working correctly.
Connect your android device to your Mac. You must ensure that you have Android Debugging enabled on your device. This is done via Developer Options (a hidden setting) which is activated by pressing Build Number 7 times in Settings > About Phone on your device.
Once Android Debugging is enabled:
- Open Terminal
- Type cd followed by the path to the original android directory in step 1. In my case this would be
cd ~/Documents/android
- Press Return
- Press CTRL+X
- Press Y to confirm
- Press Return
- Quit Terminal
You can now confirm this works by opening Terminal again and typing adb devices
and you should see your device listed under attached devices without having to change directories.