Step-by-step instructions for installing ADB on the PC and using it in PowerShell


What is ADB?

ADB (Android Debug Bridge) is a command line tool that makes it possible to communicate with an Android device. It is mainly used for development and debugging purposes.



Step 1: Download and install ADB

 Download the Android SKD Platform Tools Visit the official Android developer page and download the "SDK Platform Tools" for Windows., https://developer.android.com/studio/releases/platform-tools .
 Unpacking the downloaded file The downloaded file is a ZIP file. Unzip this file to a location of your choice on your PC (e.g. C:\platform-tools).



Step 2: Setting up the environment


     Add ADB folder to PATH

 Open the Start menu and search for "Edit environment variables".
 Klicke auf "Umgebungsvariablen".
 In the "User variables" section, select the "Path" entry and click on "Edit".
 Click on "New" and add the path of the platform-tools folder (e.g. C:\platform-tools).
 Click on "OK" to close all windows.



Step 3: Use ADB in PowerShell

 

Open PowerShell

Open the Start menu, search for "PowerShell" and open the programme.

 Checking the ADB installation 
Enter the command adb version in PowerShell and press Enter. If everything is set up correctly, you will see the ADB version.



Step 4: ADB-Gerät verbinden und Befehle ausführen


Activate USB debugging on the Android device

 Go to the "Settings" on your Android device.
 Scroll to "About the phone" (or "About the tablet") and tap "Build number" several times until the developer options are activated.
 Go back to "Settings", open "Developer options" and activate "USB debugging".

Connect the Android device to the PC
 Connect your Android device to the PC using a USB cable.

Check connection
 Enter the command adb devices in PowerShell to check whether your device is recognised.

 Your device should appear in the list of connected devices.


Now you can use ADB commands in PowerShell to communicate with your Android device.



Example of a simple ADB command

 Start the shell on the Android device: