
Special case: How to set up ADB on Windows Subsystem for Linux and ChromeOS However, it is always better to opt for the latest binary from the Android SDK Platform Tools release, since the distro-specific packages often contain outdated builds. Fedora/SUSE-based Linux users can type the following command to install ADB: sudo dnf install android-tools.Debian/Ubuntu-based Linux users can type the following command to install ADB: sudo apt- get install android-sdk-platform-tools.The guide above will certainly work for you, but those who own a mainstream Debian/Ubuntu or Fedora/SUSE-based distro of Linux can skip steps 1 and 2 of the guide above and use one of the following commands: Linux users should know that there is an easier way to install ADB on their computers. Go ahead and grant it.Ĭongrats! You can now run any ADB command on your device! Back on your smartphone or tablet device, you'll see a prompt asking you to allow USB debugging.This is not always necessary for every device, but it's recommended so you don't run into any issues. Change the connection mode to “file transfer (MTP)” mode. Connect your device to your Linux machine with your USB cable.Example: cd /home/XDA/Desktop/platform-tools/.This will change the directory to where you extracted the ADB files.Enter the following command: cd /path/to/extracted/folder/.


This is not always required for every device, but it's best to just leave it in this mode so you don't run into any issues.

Change the USB connection mode to “file transfer (MTP)” mode.

Connect your device to your Mac with a compatible USB cable.For example, you can place the contents on your desktop: cd /Users/XDA/Desktop/platform-tools/.To browse to the folder you extracted ADB into, enter the following command: cd /path/to/extracted/folder/.Extract the ZIP to an easily-accessible location (like the Desktop for example).Download the Android SDK Platform Tools ZIP file for macOS.You can now run any ADB command on your device! Now go forth and start modding your phone by following our extensive list of tutorials! How to set up ADB on macOS
