- Как скачать и установить в MacOS ADB и Fastboot
- Скачать ADB и Fastboot для macOS
- Подготовка ADB и Fastboot к работе в MacOS
- P.S Если не охота каждый раз писать ./
- Install and Use ADB and Fastboot on Mac
- ADB and Fastboot Platform-Tools for Mac
- ADB or Fastboot Not Found on Mac Error
- Installing ADB and Fastboot on Mac
- Method 1: Drag ‘Platform-tools’ Folder to Terminal
- Method 2: Type or Paste Folder Path in Terminal
- Using ADB and Fastboot Commands in Mac Terminal
- Minimal adb and fastboot mac os
- About
- Installing ADB on macOS [duplicate]
- 5 Answers 5
- Option 1 — Using Homebrew
- Option 2 — Manually (just the platform tools)
- Option 3 — Manually (with SDK Manager)
- Option 3 — Using MacPorts
Как скачать и установить в MacOS ADB и Fastboot
вкл. 08 Февраль 2019 . Опубликовано в Android — Общее
Как скачать и установить в MacOS ADB и Fastboot. В данной статье рассмотрим как на ваш 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 например в Документы.
Далее переходим в Launchpad и находим и запускаем программу Terminal.
В Terminal-e вам необходимо перейти в папку platform-tools, в которой находятся ADB и Fastboot, выполнить это возможно с помощью команды для перемещения cd , но для того чтобы узнать в какой именно сейчас вы папке находитесь можно с помощью команды ls .
После того как вы окажитесь в папке platform-tools проверяем работу утилит ADB и Fastboot, для это пишем команды следующим образом ./adb или ./fastboot
Если ниже появился вывод информации по использованию утилит, значит все работает правильно.
Теперь вам необходимо включить « отладку по USB » на Android и подключить к маку, чтобы проверить окончательно, все ли работает нормально, а также видит adb или fastboot ваше устройство.
Если ваше смартфон или планшет Android включен в обычном режиме пишем ADB команду:
Если после List of devices attached появился набор букв и цифр и рядом написано device, значит вы сделали все правильно.
Если устройство в режиме Fastboot , то вводим команду:
Все готово, теперь вы можете использовать ADB и Fastboot также как делали это в Windows.
Более подробно о командах ADB вы можете узнать в статье:
Подробно как прошивать Android устройства с помощью Fastboot:
P.S Если не охота каждый раз писать ./
Если вам не охота писать каждый раз ./ перед командами adb или fastboot, тогда нужно выполнить еще пару небольших манипуляций:
- Откройте Terminal и введите команду
- После чего введите вставьте в окно
- После внесения, нажать комбинацию клавиш для того чтобы сохранить, жмем CTRL+X, после чего нажимаем Y, а после Enter.
Проверяем работу adb или fastboot, вводим данный команды без ./
Либо же скопируйте файл adb и fastboot в папку bin!
Источник
Install and Use ADB and Fastboot on Mac
ADB and Fastboot are multi-purpose command-line tools for Android that can be used via Windows, Mac, and Linux. If you try to use ADB commands in the Mac terminal without setting up ADB and Fastboot platform tools, you’ll get errors like “adb command not found”, and “fastboot command not found” on Mac. In this tutorial, I’ll be showing you how you can install and use Android SDK Platform-tools on Mac.
Whether you want to backup your Android device, debug it, sideload an APK, unlock the bootloader, install an OTA update zip, uninstall system apps, root, and flash TWRP recovery, tweak device settings, or gather key information about your device, ADB and Fastboot are essential tools. If you own an Android smartphone or tablet and don’t have any clue as to how you can install and use ADB and Fastboot on your Mac, this tutorial is just for you.
ADB and Fastboot Platform-Tools for Mac
In order to install ADB and Fastboot for Mac, there first thing you need to do it to download the latest Android SDK Platform-tools for Mac.
Having downloaded the SDK Platform-tools for Mac, you’ll need to extract the zip file.
Please be informed that ADB or Fastboot tools can’t be installed as a program or app on macOS. If you double-click the ‘adb‘ executable file, you’ll get the following error in the Mac Terminal.
“adb” cannot be opened because the identity of the developer cannot be verified or confirmed.
You’ll get the same error if you or try to run ‘fastboot‘ on Mac. Therefore, it’s important that you set up ADB and Fastboot correctly.
ADB or Fastboot Not Found on Mac Error
There is another scenario where you may get one of the following errors in the Mac Terminal.
adb: command not found
fastboot: command not found
adb devices not found
Whether you get the “adb command not found mac” or “fastboot command not found mac” error, it’s because you aren’t executing the ADB commands in the Mac Terminal the way you’re supposed to. I have already written a guide to fix ADB or Fastboot is not recognized error on Windows, and in this guide, we’ll see how to solve this issue on Mac.
Installing ADB and Fastboot on Mac
Being a lifelong Windows user, I didn’t know how to use ADB commands in Mac Terminal. I had to google about it after getting my Macbook Pro. At first, one may think that doing certain things are more complicated on Mac than Windows but once you get familiar with it, things become easy.
If you having a hard time using ADB or Fastboot commands on your Mac, follow the steps below to learn the correct way to set up and use them.
Method 1: Drag ‘Platform-tools’ Folder to Terminal
- Download the latest SDK Platform-tools.zip file for Mac from above.
- Extract the Zip file using Mac’s default Archive Utility app. you’ll have a new folder called ‘platform-tools‘ on your desktop.
- Now, click on the Go option on the Mac Finder and select Utilities.
- You’ll find Terminal among the list of Mac Utilities. Double-click it to launch the Mac terminal window.
- When the Terminal is launched, click on the ‘platform-tools‘ folder icon, hold the Command button and drag it to the terminal window.
- Doing so will CD (change directory) or set the Terminal’s path to the ADB and Fastboot files on your Mac.
You can now execute any ADB or Fastboot command without any error.
Method 2: Type or Paste Folder Path in Terminal
As you saw above. you must add the ‘platform-tools’ folder path to the Mac Terminal to run ADB and Fastboot commands. You can also do that by either manually typing the path to the folder containing ADB and Fastboot files or just by copying and pasting the folder path in the terminal. You can read my tutorial describing 5 ways to copy file and folder path on Mac OS X.
- Launch the Terminal by navigating to Go > Utilities on your Mac.
- Now type the path of the ‘platform-tools‘ folder and press the Enter key.
- Alternatively, you can press the Option key and right-click on the folder icon and select Copy “platform-tools” as Pathname in the context menu and then paste the path in the Terminal.
You are all set to issue ADB commands in the Mac Terminal and you won’t get the ‘adb command not found‘ error. To verify that you have done everything properly, type the following command, and press the Enter key.
If you want an easier way to install and use ADB and Fastboot, read my detailed tutorial on adding ADB to a path on Mac to enjoy global ADB access.
Using ADB and Fastboot Commands in Mac Terminal
Now that you have properly set up ADB and Fastboot on your Mac, let’s see how we can run commands.
- Go to the Developer Options on your Android device and enable USB debugging.
- Now, connect your Android device to your Mac. You should also extend the screen lock time out from display settings on your phone or tablet.
- Open the Mac Terminal using any of the 3 methods I described above and issue the following command.
- Keep an eye on your Android phone’s display as you run the above command and authorize ADB or USB debugging on your device by selecting Allow when prompted.
- You’ll see your devices listed in the Mac terminal window. It means that ADB daemon is ready to communicate with your device.
Are you aware of the powerful features of ADB and Fastboot and the tasks you can perform using commands? Don’t forget to check out my huge list of commands with an explanation.
Источник
Minimal adb and fastboot mac os
Quick ADB / Fastboot installer for OS X and Linux (minimal_adb_fastboot)
Last updated: 5.9.2016 | adb version: 1.0.36 Revision 8f855a3d9b35-android
Installs the adb and fastboot binaries for OS X and Linux.
If you need the aapt as well, please switch to branch aapt or download the zip here.
Do the following steps:
- Download the zip
- unzip it
- Start the shell script with ./install.sh
- Finished
There are a few arguments you can use with the script:
- uninstall : Deletes the adb and fastboot binaries from /usr/local/bin
- 1.0 | 15.11.2014 Initial release
- 1.1 | 16.11.2014 Script can now be called from everywhere
- 1.1.1 | 23.11.2014 Name change due to name confict with other adb installer.
- 1.2 | 10.03.2015 Updated adb and fastboot binaries to platform-tools v22, adjusted script because binaries change without version number incremention.
- 1.2.1 | 13.03.2015 Improved version check by adding a hash-check to compare installed and delivered bin.
- 2.0.0 | 14.03.2015 Added Linux support! (experimental, feedback very welcome!)
- 3.0.0 | 31.05.2015 Improved code quality and readability a lot by rewriting the whole script and using functions. Added the arguments uninstall, adb and fastboot. Changed the installation path on OS X to /usr/local/bin !
- 3.1.0 | 05.10.2015 Updated to newest v23 binaries. Required for Android Marshmallow on flounder.
- 3.2.0 | 01.03.2016 Checks if installation directory exists before running the script
- 3.2.1 | 01.03.2016 new branch with aapt-binaries, added aapt-unnstaller
- 3.3.0 | 05.09.2016 Updated to newest v24.0.2 binaries (adb 1.0.36 rev. 8f855a3d9b35)
- Click Install Packages , accept licenses, click Install . Close the SDK Manager window.
- uninstall-old: For OS X users who installed adb from this script with version
Official support thread on xda: http://forum.xda-developers.com/android/general/adb-fastboot-binaries-os-x-inclusive-t2941205 Please open an issue if you experience any problems and feel free to fork and improve this script, I would be happy if you made a push request with your improvements!
This repository is using software from the Android Open Source Project licensed as follows: ‘Copyright (c) 2014 Google Inc.
Licensed under the Apache License, Version 2.0 (copy included)’
About
Installs the adb and fastboot binaries for OS X and Linux.
Источник
Installing ADB on macOS [duplicate]
I had issues finding a good solid tutorial on how to setup ADB for Mac.
How can I add ADB to macOS in such a way that it can be used in the terminal?
UPDATE
For those reading this post. Yes, as the edited response says. I was at the time looking for a tutorial with all steps as a beginner level guide.
Unlike Set up adb on Mac OS X, the intention of this question is to have a tutorial with all of the required installation steps to get ADB on macOS.
5 Answers 5
Note for zsh users: replace all references to
Option 1 — Using Homebrew
This is the easiest way and will provide automatic updates.
Install the homebrew package manager
Start using adb
Option 2 — Manually (just the platform tools)
This is the easiest way to get a manual installation of ADB and Fastboot.
Delete your old installation (optional)
Go to your Downloads folder
Unzip the tools you downloaded
Move them somewhere you won’t accidentally delete them
Add platform-tools to your path
Refresh your bash profile (or restart your terminal app)
Start using adb
Option 3 — Manually (with SDK Manager)
Delete your old installation (optional)
Download the Mac SDK Tools from the Android developer site under «Get just the command line tools». Make sure you save them to your Downloads folder.
Go to your Downloads folder
Unzip the tools you downloaded
Move them somewhere you won’t accidentally delete them
Run the SDK Manager
Uncheck everything but Android SDK Platform-tools (optional)
Add platform-tools to your path
Refresh your bash profile (or restart your terminal app)
Start using adb
If you’ve already installed Android Studio —
Add the following lines to the end of
/.zshrc (if using Oh My ZSH):
Restart Terminal and you’re good to go. 👍
/.bash_profile and it worked!
Note that if you use Android Studio and download through its SDK Manager, the SDK is downloaded to
/Library/Android/sdk by default, not
I would rather add this as a comment to @brismuth’s excellent answer, but it seems I don’t have enough reputation points yet.
Option 3 — Using MacPorts
Analoguously to the two options (homebrew / manual) posted by @brismuth, here’s the MacPorts way:
Install the Android SDK:
Run the SDK manager:
As @brismuth suggested, uncheck everything but Android SDK Platform-tools (optional)
Install the packages, accepting licenses. Close the SDK Manager.
Add platform-tools to your path; in MacPorts, they’re in /opt/local/share/java/android-sdk-macosx/platform-tools . E.g., for bash:
Refresh your bash profile (or restart your terminal/shell):
Start using adb:
You must download Android SDK from this link.
You can really put it anywhere, but the best place at least for me was right in the YOUR USERNAME folder root.
Then you need to set the path by copying the below text, but edit your username into the path, copy the text into Terminal by hitting command + spacebar type terminal. export PATH = $
Verify ADB works by hitting command + spacebar and type terminal, and type ADB.
There you go. You have ADB setup on MAC OS X. It works on latest MAC OS X 10.10.3.
Источник