Скачать и установить Fastboot и ADB на Mac
В данной статье рассмотрим как на ваш MacBook или iMac (MacOS), установить утилиты ADB и Fastboot для работы с Android.
Несмотря на то, что операционная система macOS является №2 по распространенности, но вот доступных инструкций как в ней работать с Android очень мало, если быть точнее управление устройством с помощью ADB и прошивка смартфонов и планшетов с помощью Fastboot.
Скачать ADB и Fastboot для macOS
Для того чтобы скачать и установить самую свежую версию утилит ADB и Fastboot для Android, вам необходимо перейти на официальный сайт разработки Android developer.android.com и скачать архив для MACOS.
Подготовка ADB и Fastboot к работе в MacOS
- После того как архив будет загружен переходим в Finder и извлекаем содержимое, после чего, можете переместить папку platform-tools например в Документы.
- В Terminal-e вам необходимо перейти в папку platform-tools, где уже находятся ADB и Fastboot. Выполнить это возможно с помощью команды для перемещения cd , но для того чтобы понять в какой именно сейчас вы папке находитесь, используйте команду ls .
- После того как вы окажитесь в папке platform-tools проверяем работу утилит ADB и Fastboot, для это пишем команды следующим образом ./adb или ./fastboot
Если ниже появился вывод информации по использованию утилит, значит все работает правильно.
Включаем отладку по USB на Android
- Теперь вам необходимо включить «отладку по USB» на Android и подключить к маку, чтобы проверить окончательно, все ли работает нормально, а также видит adb или fastboot ваше устройство.
- Если ваш смартфон или планшет Android включен в обычном режиме пишем ADB команду:
Если после List of devices attached появился набор букв и цифр и рядом написано device, значит вы сделали все правильно.
Если устройство в режиме Fastboot, то вводим команду:
Для работы с ADB и Fastboot в MacOS в начале нужно всегда указывать ./ :
./adb devices
./adb reboot
./fastboot erase recovery
Все готово, теперь вы можете использовать ADB и Fastboot также как делали это в Windows.
Более подробно о командах ADB вы можете узнать в статье:
Подробно как прошивать Android устройства с помощью Fastboot:
P.S Если не охота каждый раз писать ./
Откройте Finder и нажмите комбинацию клавиш CMD + Shift + G, появиться окно перейти, вставьте путь /bin и нажмите OK.
Скопируйте файл adb и fastboot в папку bin!
Вот и все! Больше статей и инструкций читайте в разделе Статьи и Хаки Android. Оставайтесь вместе с сайтом Android +1, дальше будет еще интересней!
How to Install ADB & Fastboot on Linux or MAC OS X
ADB and Fastboot are the basic utilities if you want to ROOT, Unlock bootloader or install a custom Recovery like TWRP on any Android device. So, if you are a developer or you want to learn how you can get most out of your Android as a Developer or an advanced user then you must need ADB and Fastboot which are the basic building blocks for your Android.
Here is 15 Seconds ADB Installer or Minimal ADB and Fastboot for Windows if you are not comfortable with Linux or MAC.
Here I have brought you an Easy to Install ADB and Fasboot on Linux and MAC OS X. Just one command execution to install ADB and Fastboot on Linux and MAC. The scripts are provided in the DOWNLOADS section followed by the Step By Step ADB & Fastboot Installation Guide for Linux and MAC.
ADB & FASTBOOT INSTALLATION SCRIPTS DOWNLOAD LINK:
INSTALLING ADB & FASTBOOT UTILITIES ON LINUX AND MAC:
Step By Step Guide
How to Install ADB and Fastboot on Linux
- Download and extract the Android.zip to a directory.
- Go to the downloaded directory and then enter into Android directory where all the scripts are kept.
- Execute the following command on a console or Terminal with ROOT privilege on your Linux machine:
Or enter the absoulute path to the script to execute:
NOTE: This command will move the ADB and Fastboot binaries to /usr/bin location and move the Android udev rules file to /etc/udev/rules.d/ location also this script will install JDK if it is not installed.
How to Install ADB & Fastboot on MAC
- Download and extract the Android.zip to a directory.
- Go to the downloaded directory and then enter into Android directory where all the scripts are kept.
- Execute the following command on the Terminal with ROOT privilege on your MAC OS:
Or enter the absoulute path to the script to execute:
MAC supports drag-n-drop of the command script to execute the command and some Linux distros also support the same. So, to execute the script just drag the script from a file explorer window and then drop it on an Terminal Window.
ADB and Fastboot is now installed on your machine. If you have any concerns or doubt then login and leave a reply and you will be replied back instantly.
[GUIDE] Set up ADB and Fastboot on a Mac easily (With Screenshots!)
First, make a folder named «android» (no quotes of course ) You can place it anywhere on your hard drive, it doesn’t really matter. Put it somewhere you’ll easily remember, because you’re going to be using it a LOT. I placed mine on my desktop.
Next, you’ll want to download the android SDK from Here. (you won’t need to install Java first like you would on a Windows PC, though I would recommend it anyway)
(As pointed out by Wlmeng11, you could skip this step just download a zip that I will have attached at the bottom of the page containing the adb and fastboot files instead of downloading the whole SDK)
When the SDK finishes downloading, Unzip it and the contents of the «android-sdk-mac_x86» folder into your android folder.
Once you have done that, open your android folder. Go into the tools folder inside of it. Double click on the file called «android» (possibly called android sdk) This file is a UNIX executable and will open within a Terminal window.
When it finishes opening, check the folder called tools. Make sure both «Android SDK Tools» and «Android SDK Platform-tools» are selected within the tools folder. Click install and wait for them to download.
When they finish downloading, go into the platform-tools folder inside your android folder, then copy adb and fastboot and paste them into the root of your android folder.
Now that you have adb and fastboot installed, we’re going to want to test them to make sure they work.
Go ahead and plug in your android device at this time. Make sure android debugging is enabled in settings. Go into Settings > Apps > Developer and check it there (for Gingerbread 2.3 and lower) or go into Settings > Developer Options and check it there for Ice Cream Sandwich or Jellybean. As of now, there are two ways to access adb and fastboot.
Open a Terminal window (look in Applications > Utilities if you can’t find it). Type «cd» followed by the path you saved your android folder to (I’m going to use the Desktop for this demonstration) it should look like this
Press enter.
Now you need to actually execute an adb or fastboot command. To do this, you’ll need to type «./adb (or fastboot) » For this tutorial, we will use «ADB devices» since it doesn’t actually do anything to the phone. (we won’t use fastboot since it requires rebooting to the boot loader which is different for every device)
In the same terminal window as before type the following:
then hit enter. It should turn up your device’s serial number. If it does, proceed to the next step, if not recheck your steps, then leave a post in this thread.
(if it says * daemon not running. starting it now on port 5037 *
* daemon started successfully * that is perfectly normal)
Now, at this moment, ADB and Fastboot are both completely useable. However, it’s very annoying to have to CD into the directory and use ./ in front of every terminal command. I’ll show you how to add it to your path so you don’t have to do any of that.
Open a new Terminal window and type
it will open a window that looks like this:
(Yours will probably be blank, because I’ve added a lot of stuff to mine over the years)
Add a line to it that contains the path to your android folder. (again, I’m using Desktop) It should look like this
Once you have added that, press CTRL+X to exit, then Y to confirm the save then press enter. It will close the nano editor. You can close the Terminal window now.
Now we need to verify that it works. Open a new Terminal window and type
If it shows the serial number, then you have set it up successfully and are good to go!
If you have any questions or issues let me know in the thread below.
If this has helped, please press thanks!
Awesome! This made the front page of XDA Thanks guys!