ADB:
If you are not aware of ADB, ADB stands for Android Debug Bridge which is a google’s tool. It appears similar to windows command prompt.
Let’s see how to setup ADB in your PC.
- Open settings in your device
- click the About phone Options, In Android O its hidden under system options
- click on build number options 5-7 times to enable developer mode- You will get a message its enabled.
- Now in main settings screen we can see Developer options menu as below
- Click on Developer Options and enable USB Debugging mode option.
You are partially completed and for the remaining steps you need your PC.
In Windows PC:
Install process:
- Click here to down and install the ADB app and it’s drivers. (mirror link)
1. Run the downloaded application (Require administrator privileges)
2. Press Y/Yes to install ADB and Fastboot
3. Press Y/Yes to install ADB system-wide
4. Press Y/Yes to install Drivers
5. Continue Driver installation
Once installation is completed
- Connect your device to your PC with the standard USB cable and Change the USB connection mode to “file transfer (MTP)” mode
- Open the command prompt and move to the location where you downloaded the files. using CD command. For example if you downloded the files in the C: directory the command will be
cd C:/
- Now execute the following command to launch the ADB daemon:
adb devices
At the same time you may see a pop asks “Allow USB debugging?” , click Ok
- Now re-enter the command “
adb devices"
, You can now see your device’s serial number in the command prompt.
That is it , we’ve completed the ADB driver installtion.
In Mac:
- Download and save the ADB ZIP file for macOS
- Extract the ZIP to your desktop
- Open Terminal in your MAC
- Browse to the folder where you extracted ADB by enter the following command:
cd /path/to/extracted/folder/
- Now connect your device to your Mac with the USB cable and Change the USB connection mode to “file transfer (MTP)” mode
- Now execute the following command to launch the ADB daemon:
adb devices
- You’ll see a pop asks “Allow USB debugging?” , click Ok
- Now re-enter the command “
adb devices"
, You can now see your device’s serial number in macOS’s Terminal.
That is it, you have set up ADB in your Mac book.
Note: If you are stuck, check here for the detailed instructions.