Original URL: http://www.jeffjade.com/2015/03/21/2015-03-21-android-adb/
Before the beginning of a macpro, the position also shifted to here. But the Mac by default can not use the ADB this need to solve their own, search, and Linux below the use of the same approach; need to use the Android SDK of the ADB Toolkit (fortunately, the last few days toss Android Studio installed SDK)
If you don't want to install the huge Android SDK (address: http://developer.android.com/sdk/index.html), download the ADB toolkit here: Http://dl.dbank.com/c001bzfxoe
Then unzip to any location.
Next, create a new. profile file under the current user root directory
The following commands can be typed in the terminal
cd ~touch .profile
Create a new file, and then edit the file
vim .profile
Paste as follows:
PATH=${PATH}:/Users/yunjeff/Documents/platform-tools
Where the red part is the path of the ADB tool just after decompression, replace it with your, save, restart the terminal
If you enter ADB return in the terminal, you can detect if the ADB is installed successfully. Mac is so elegant.
Of course, you can also enter the command lineopen -e .bash_profile
When this command line is finished, the edit window for the. bash_profile file is automatically ejected.
"Go" mac using adb tools