First of all, you need to install the Platform Tools by visiting this site and downloading the zip file for your platform
Then, you must extract the zip somewhere in your computer
For continue, you must activate the developer mode in your device. If you already done this, you're fine. Otherwise go here and follow the steps number 2 and 3
Now, you must open a terminal in the Platform Tools folder you extracted earlier. For doing this, you can do it in 2 ways:
- Manually changing directory by using the
cd
command. - Using system's shortcuts:
OS Shortcut Windows Shift + Right Click -> Open Powershell window here Linux Right Click -> Open in Terminal MacOS Go to System Preferences and select Keyboard
>Shortcuts
>Services
.
FindNew Terminal at Folder
in the settings and click the box.
Then simply: Right Click -> Open in Terminal
Plug your device in the computer and allow usb debugging.
Now, run this command on your terminal:
# Windows
adb devices
# Linux & MacOS
./adb devices
The output contains a list of attached devices, if you see your device, you have correctly set ADB and you can continue to the installation.
Otherwise you did something wrong, check better and repeat the previous steps