- Download this Android.zip file to your Mac.; Extract the.zip and place the Android folder on your Desktop.; Open Terminal and type: cd Desktop/Android; Now install ADB and Fastboot:./ADB-Install-Mac.sh Allow the script to run and you'll be all set. Now the ADB and Fastboot files will be placed in /usr/bin/ on your Mac.
- 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.
Google; About Google; Privacy; Terms. ADB and Fastboot drivers will be automatically downloaded and installed on your Mac OS. Step 7: To confirm the installation, go to the extracted android-sdk-macosx directory and then open the platform-tools folder. Here you will see ADB and fastboot apps, along with several other tools in this directory.
Finally, while Xiaomi has not released the Mac and Linux version of its bootloader unlock tool, a third-party alternative is available. Download the unofficial version of MIUI bootloader unlocking tool from the mirror link below. This unofficial version is compatible on all computer running Windows 8/8.1/10, any Linux distros (Ubuntu, Debian, CentOS), or Apple Mac OS.
Thanks to Fransisco an XDA community member who develops the tool. He has managed to extract the core function of the official Mi Unlock Tool. He then modded the codes to make it work on Unix-based computers.
However, this does not mean you can bypass the official permission. You will still need to obtain the official permit from Xiaomi Dev Team prior using the tool.
Moreover, the Oracle Java package is also essential (JavaFX for GUI if not included in your JDK/JRE). The tool won’t work flawlessly without these dependencies.
Download Mi Unlock Tool
You can grab the file from its official link hosted on Mega.nz here. Alternatively, you may also use the mirror link below. The mirror direct link below is hosted on the US and EU servers for better redundancy. Even better, it is a direct link that supports resume-able connections. It means the process will run smoothly either on a computer or an Android device.
Version n/a | 20987 downloads | Size: 5 MB
Nerdy FYI
You don’t have to understand how the stuff behind the tool works. However, you may find it interesting once you knew and how this tool is made possible.
The developer who shares this tool learned the mechanism of MIUI bootloader unlocking process. He explained that the original Mi Flash Unlock tool (for Windows) acts as a bridge between Xioami server, fastboot, and you with your Mi Account credentials. The actual part that conducts the unlocking task is actually fastboot.
The Mi Flash Unlock tool needs to fetch your device information. Next, it sends the information to the Xiaomi server with the account login token. Once received, the server checks whether all requirements are fulfilled. The requirements include whether the account has been authorized, whether the account associated (Mi Account binding) with the device in the Developer Settings and so on.
Once the server feels all the requirements are satisfied, it will reply back with the unlock key for your device instance. This instance key always changes everytime you reboot the phone.
The Mi Flash Unlock tool will then send the key to the device with a custom build of fastboot. Here’s then the magic happens: If the key is correct, the device bootloader will be unlocked. Otherwise, it will reboot.
All such nerdy stuff has encouraged Fransisco to create such a tool. He realizes that if he can replicate the mechanism, there is a possibility to do the mechanism on a Unix-based computer.
Check also: Mi Account Authorization Tips: Check and Apply for it!
How to use
First thing first, you need to unzip/extract the actual tool. Moreover, make sure you have already had Java installed.
On Linux:
- Open a terminal window.
- Go to the extracted directory using cd command.
- Use this command “sudo ./MiUnlockTool.sh” for the GUI-based interface or “sudo ./MiUnlockTool.sh username password” for command-line interface.
On Apple Mac: Ftp client for mac os 9.2 download.
You just need to open (double click) the MiFlashUnlock.command file.
Alternatively, you can also do this on Terminal.
- Open the terminal window
- Go to the extracted directory using the cd command.
- Issue this command “./MiFlashUnlock.command username password“.
- Reboot your phone into the Fastboot mode.
- Connect your device with your Mac.
If you are using the command line version remember that there is no confirmation request before the unlocking process and there is no check if the bootloader is already unlocked.
Check also: How to unlock MIUI Bootloader on Windows.
Yeah, I know! It is not as simple as its Windows version. Since you are using Linux (or Mac), I assume you already understand the consequences, including the need to be a geek.
Here are some possible errors that might happen:
- Problem: A permission related error on Linux or Mac when launching the tool.
Workaround: Open the terminal and cd into the extracted directory. Next, use “chmod 777 MiUnlockTool.sh” on Linux or “chmod 777 MiUnlockTool.command” on Mac. This command is crucial to set the executable permission. - Problem: The device isn’t recognized properly by your computer.
Workaround: Simply try re-launching the tool with sudo (sudo ./MiUnlockTool.sh on Linux, or sudo ./MiUnlockTool.command on a Mac) - Problem: Other errors when launching the tool.
Workaround: Try issuing this command “java -jar bin/MiUnlockTool.jar“. - Problem: Errors with JavaFX class not found when you try to launch the GUI.
Workaround: You are missing the JavaFX library. See openjfx package on Linux.
Our Verdict
Despite some users found the tool quite messy, we think it is a useful tool still. At least it provides possibilities for Linux and Mac users to unlock the MIUI bootloader of their phones without the need to find a Windows PC.
Page Contents
This guide post will help you easily Install ADB and Fastboot and launch it on your Windows, Linux, or macOS machine.
Are are an android freak who always tries to do something with your Android phone?. We always find users who always love tweaking and modding with their Android devices. new software and new updates are daily features for and Android devices and people love to install new frameworks on their device and give a try. To try new frameworks on any Android device, the device won’t officially support to remove the inbuilt framework and install a new framework. To do this the user has to unlock the bootloader and then they have to install the new custom framework or Rom.
Do Check: Download Magisk To Customize Android OS Java download causing issues mac.
Moto Fastboot Drivers
For installing the custom ROM or to unlock the bootloader the user must have ADB and fastboot on their windows or mac device which is used to install the custom Rom. Following are the steps that are used to install ADB and Fastboot on windows and MAC devices.
Before beginning to know how to install these we need to know what these are and why they are required?
What is ADB?
ADB know and as Android Debug Bridge. By the name itself, we find that this is the software that is used for debug purpose of an Android device. It is basically available in Android development SDK. In short, it is used to execute command lines on the android device using your computer. It is the link between your Android device and the computer. By this device using the computer, you can control the Android device by connecting to a USB. We can also execute advances shell commands using this.
What is Fastboot?
Fastboot similar to the ADB is available in the Android SDK package. The main purpose of this is reflashing the partition using your computer.Using a fastboot, the file system images can be modified from a computer by using a USB connection.Like recovery, updates and zip files can also be installed from fastboot.
Setup ADB and Fastboot
ADB and Fastboot as mentioned previously are available in the Android SDK package. These can be easily found. You can easily download these files from the official site and then just install them using the instructions provided which are quite easy. After the installation just setup the environment variables and then that’s it. But if you want to install ADB and Fastboot you can follow the following steps which are clearly explained in detail.
We have explained each step in detail and just follow the steps in serial and you will not go anywhere wrong. One thing we must mention at the beginning that your android device must be in debug mode otherwise the system might not recognize the android device. So keep your Android device in debug mode from the settings.
Excited to Install ADB and FastBoot on your preferred system which includes Windows, Mac OS and Linux. Here below we have shared separate methods and installation file for all different platforms. That makes easy to install without any confusion. Let’s get started!
Install ADB and Fastboot on Windows OS
There are many possible ways that are available to install ADB and Fastboot but we have done our research and find out the two best possible methods that are easy and flexible. The two methods are
- Using 15 Second ADB installer
- Using Minimal ADB and Fastboot
So in the two methods, let’s see the first method
Steps to Install with 15 second ADB Installer [ Method #1 ]
First, download the drives of ADB and Fastboot from above link. Then follow the following steps
- First as mentioned download the ADB and Fastboot drives from above link. These files not only contain ADB but also Fastboot and USB driver within a short span of 15 seconds
- After downloading run the .exe file in the package
- You will get a command window. Observe, the command window and you have to type”Y” without quotes if you want to install ADB and Fastboot.
- And as you typed Y and given permission to install ADB and Fastboot, the setup will install them both and also copy all the files required into the directory.
- Once again type ‘Y’ to install the device driver. This may take few seconds to install the device drivers and after that, the command window will automatically close.
- That’s it! You have installed ADB and fastboot on your Windows PC Successfully.
If you are still facing issues, then do check the video tutorial below. Hope that would help you install the ADB & Fastboot drivers on your Windows PC soon.
Steps to Install with Minimal ADB and Fastboot [ Method #2 ]
- Here in this method also you need to download the minimal ADB software which is provided by XDA developer member with username @shimp208.
- The software contains only one .exe file. just run the .exe file that is downloaded.
- After that, the software will ask for the installation path. Provide the installation path and follow the installation steps carefully.
- After that select the file location and follow the next steps as shown in the software interface. It will install the software.
- Finally, after all the steps, you have successfully installed the software on your computer and you are ready to roll on
- After installation, you need to check whether the ADB and fastboot are installed properly. For this go to the installation directory abd by holding on your Shift Key & press the right button of your mouse. It will open the command prompt.
- Now type adb devices and it will list the list of adb devices available.
You have now been able to install ADB on Windows system. Hope everything went normally without any issues. From now you have established a connection between your PC and device which let you do further customization in Android OS.
Do Check:
Install ADB and Fastboot on Mac
Mfastboot Download
If you are using MAC OS, then no problem. In order to install both these tools on your Mac, you need to follow the below steps.
Steps to Install ADB and Fastboot on MAC OS
- Download and extract the file from above link.
- Once you extract the zip file, move the folder from the extracted data to your desktop.
- Start a new Terminal Window.
- Enter the below command,
- Again enter the following commands as mentioned below,
- Now you will be able to run ADB and Fastboot commands from the same Terminal window. That’s it!
- You have been successful to install ADB on macOS.
Install ADB and Fastboot on Linux
To Install ADB and Fastboot on Linux platform you have to do some command stuff. Ubuntu users can skip the repository step and directly step on to the install command. But for others, they have to follow it.
- Download the platform tools package for Linux: Link
- Extract the ZIP and move it to the desktop.
- Now Open the Terminal window.
- Enter the following command:
- This will change the directory to where you extracted the ADB files.
- So for example:
- Connect your device & Change the mode to “file transfer (MTP)” mode.
- Enter the below command again,
- Allow USB debugging and re-enter the command adb devices.
- If everything was successful, you should now see your device’s serial number in the Terminal window output.
- Congrats! You have now been able to install ADB on Linux.
Linux Command to Install ADB and Fastboot on Linux
The repositories, you must enter the following command prior to the install command:
Fastboot Adb Mac Os
That’s it. These above commands allow you to send commands to your Android device or tablet from any terminal window.
Download ADB and Fastboot Binary
Google is allowing users to download the binaries without having to download the entirety of Android Studio. Users download several hundred megabytes worth of data if they simply wanted access to ADB and Fastboot. But with the ADB & Fastboot Binary, you don’t have to download entire files.
You can download the latest ADB and Fastboot binaries from below links. These download links will remain static, but Google will periodically update the referenced file with the latest binaries as they go live.
To Conclude
Installed ADB and Fastboot on your Windows system? Mac? Linux?
Hope you followed the above-mentioned guides to Install ADB and Fastboot Driver on your system without any issues. If you are facing any issues do let us know in comments below! Make sure you check How to Download SuperSU Zip and Install it.
Cheers!
Motorola Fastboot Download
Source – XDA