Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (2023)

1

");

Tutorial para instalar y configurar ADB y Fastboot en Windows 10, Mac o Linux.


Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (1)

Uno de los sistemas operativos móviles más usados en la actualidad es Android el cual es desarrollado por Google y dentro de sus diferentes funcionalidades encontramos la versatilidad de configuración, seguridad, diseño y compatibilidad con cientos de dispositivos. Dentro del mundo de los sistemas móviles se encuentra una sección muy interesante, la cual tiene un impacto directo en la escalabilidad de Android, y es el desarrollo de aplicaciones, sabemos que es un mundo de caracteres, símbolo y signos donde el más mínimo error da como resultado que la ejecución del código no se lleva a cabo de forma correcta pero que si todo sale de la forma esperada podemos llegar a crear aplicaciones únicas con grandes prestaciones para miles de usuarios de Android, bien, con el fin de facilitar esta tarea de desarrollo, Android ha dispuesto de forma gratuita la utilidad ADB, la cual está disponible para los principales sistemas operativos usados hoy en día.

Solvetic explicara que es y cómo instalar ADB y fastboot en estos sistemas y así contar con una rama más de IT para hacer uso de Android.

Qué es ADB

ADB (Android Debug Bridge), se ha desarrollado como una herramienta de líneas de comandos que cuenta con grandes funcionalidades y gracias a la cual será posible establecer comunicación con una instancia de un emulador o un dispositivo Android que se conecta directamente en el equipo usado.

Gracias a ADB, será posible realizar diferentes y variadas acciones en dispositivos Android tales como la instalación y la depuración de apps, contra con acceso a una terminal shell de Unix en la cual será posible ejecutar varios comandos en el emulador o dispositivo conectado para ver como funcionaria en un ambiente productivo.

Características ADB

ADB está desarrollado como un programa cliente-servidor en el cual se incluyen tres componentes básicos para su uso que son:

  • Un cliente el cual se encarga de enviar los comandos, este cliente es ejecutado en el equipo de desarrollo, este cliente se puede invocar desde la terminal de línea de comandos gracias a un comando de ADB específico para ello.
  • Un daemon, el cual se encarga de ejecutar los comandos en el dispositivo. El daemon es ejecutado como un proceso en segundo plano en cada instancia del emulador o dispositivo a usar.
  • Un servidor que tiene como tarea administrar la comunicación entre el cliente y el Daemon este servidor se ejecuta como un proceso en segundo plano en la máquina de desarrollo.

La herramienta adb se encuentra en la ruta "android_sdk/platform-tools/".

Funcionamiento de ADB

En el momento en que se inicia algún cliente ADB, este cliente en primer lugar debe comprobar si hay un proceso del servidor de ADB en ejecución actualmente, en caso de que no sea así, se inicia el proceso del servidor. En el momento en que se inicia el servidor, este es vinculado con el puerto TCP local 5037 y a partir de allí busca comandos enviados por los clientes de ADB, es de anotar que todos los clientes de ADB usan el puerto 5037 para comunicarse con el servidor de ADB.

Una vez se complete el proceso de comunicación, el servidor establece conexiones con todas las instancias de emuladores o dispositivos que están siendo ejecutados y allí localiza las instancias de emuladores o dispositivos llevando a cabo tareas de escaneo de puertos con números impares usando el rango de 5555 a 5585, este rango es el usado por los emuladores y dispositivos.

Qué es Fastboot

Fastboot es una herramienta desarrollada por Android la cual es útil para flashear archivos y modificar algunos factores de software que están predeterminados en el equipo, no está de más indicar que el uso de esta utilidad es de cuidado ya que algo mal ejecutado tendrá un impacto negativo en todo el funcionamiento del sistema Android.
Una de las ventajas de usar Fastboot es que sera posible desbloquear el Bootloader con el fin de cambiar la ROM de la terminal.

Para entrar al Fastboot normalmente se usa el botón de encendido + la tecla de vol up (Arriba).


1. Instalar ADB con fastboot en Windows 10

Antes de ver cómo podemos descargar ADB y usarlo, debemos llevar a cabo una serie de pasos previos en nuestro móvil Android para que todo funcione de forma correcta.

Paso 1

El primer paso a dar será ir a los ajustes del teléfono y allí pulsar en la línea “Acerca del teléfono” la cual está en la parte final de los ajustes como vemos:

Paso 2

En la nueva ventana ubicamos la sección “Versión kernel”:

Paso 3

Allí debemos pulsar 7 veces sobre esta sección para habilitar el modo de desarrollador de Android, después de esto, vamos a la sección “Opciones de desarrollador” y debemos pulsar en el interruptor de la línea “Depuración USB”, será desplegado el siguiente mensaje. Allí pulsamos en el botón “Aceptar” con el fin de habilitar este modo en Android. Te dejamos un tutorial de ejemplo para que puedas verlo más claramente.

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (4)

Cómo activar modo depuración Huawei P20 (USB Debuggin)

(Video) How to Install FASTBOOT and ADB on your MAC

Te explicamos cómo activar modo depuración Huawei P20 (USB Debuggin) habilitado el modo desarrollador. Incluye vídeo.

Paso 4

Ahora procedemos a la instalación en sí. Para sistemas operativos Windows debemos descargar en primer lugar la utilidad ADB en el siguiente enlace:

Paso 5

Procedemos a extraer el contenido de dicho archivo comprimido:

Paso 5

Allí encontramos toda la suite de ADB donde se incluye fastboot. Ahora extraemos este contenido en la ruta “C:\Windows”:

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (7)

AMPLIAR

Paso 6

Al ejecutar esto, tendremos el directorio platform tools en la unidad C y desde allí será posible ejecutar ADB. De forma alterna, será posible realizar la instalación de ADB en Windows 10 usando el siguiente método, allí debemos ir a la siguiente ruta:

  • Panel de control
  • Sistema y seguridad
  • Sistema

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (8)

AMPLIAR

Paso 7

Allí damos clic en la línea “Configuración avanzada del sistema” y en la ventana emergente iremos a la pestaña “Opciones avanzadas” y allí pulsamos en el botón “Variables de entorno” ubicada en la parte inferior:

Paso 8

Se desplegará lo siguiente:

Paso 9

Allí seleccionamos la línea “Path” y pulsamos en el boton “Editar”, se desplegará lo siguiente:

Paso 10

Allí pulsamos en el botón “Examinar” e ingresaremos la ruta donde se ha extraído el contenido de ADB descargado. Pulsamos en Aceptar para guardar los cambios. Otro método útil en Windows 10, es ir directamente al contenido descargado y en algún lugar libre pulsar la tecla Shift, dar clic derecho y seleccionar la opción “Abrir la ventana de PowerShell aquí”:

Paso 11

Ahora es hora de conectar nuestro equipo Android a Windows 10 y allí, en el modo de USB, seleccionar la opción “Archivos”:

Paso 12

Al seleccionar esta opción iremos a la consola de PowerShell que ha sido abierta y ejecutamos lo siguiente:

adb devices

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (14)

AMPLIAR

Paso 13

(Video) Install ADB & Fastboot on Windows & Mac [Easiest Way]

Como vemos allí se llevan a cabo dos acciones básicas que son:

  • Inicio del daemon de ABD usando el puerto 5037
  • Detección de los dispositivos Android conectados al equipo

Paso 14

En la primera vez que realizamos este proceso, aplica para Linux y macOS también, podemos ver que el equipo no está autorizado, por ello veremos el siguiente mensaje en el equipo Android:

Paso 15

Allí pulsamos en Aceptar para permitir la huella digital. Ahora podemos ver que el equipo está autorizado en ADB:

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (16)

AMPLIAR


2. Instalar ADB y fastboot en Linux

Para este caso usaremos Ubuntu 18.04, en el caso de Linux contamos con dos metodos para instalar ADB.

Nota

En caso de usar una edición de 64 bits será necesario instalar los paquetes glibc.i686,libstdc++.

Paso 1

En Linux debemos descargar en primer lugar ADB en el siguiente enlace:

Paso 2

Procedemos a extraer el contenido descargado, luego de esto, abrimos una consola de terminal y vamos al directorio home donde ejecutamos la siguiente línea:

sudo nano .bashrc

Paso 2

En el archivo desplegado ingresaremos la siguiente sintaxis al final de este:

export PATH=${PATH}:/home/”usuario”/Ruta a ADB

Paso 3

Guardamos los cambios usando la combinación de teclas siguiente:

Ctrl + O

Salimos del editor usando:

Ctrl + X

Paso 4

Después de esto ejecutamos adb para acceder a los dispositivos conectados. Ahora, otro método a usar en Linux es instalarlo directamente en la consola, para ello ejecutamos en primer lugar lo siguiente:

sudo apt install adb

Paso 5

Ingresamos la letra S para confirmar la descarga e instalación de ADB.

Nota

En el caso de usar CentOS o fedora ejecutamos lo siguiente:

sudo yum install android-tools

Paso 6

Ahora ejecutaremos lo siguiente:

adb devices

Paso 7

Como vemos, en primer lugar, se habilita el daemon de ADB. Nuevamente ejeuctamos adb devices, cuando se haya conectado el equipo, para que sea listado los dispositivos activos:


3. Instalar ADB y fastboot en macOS Mojave

Paso 1

Para el caso de macOS Mojave debemos descargar en primer lugar, la utilidad en el siguiente enlace.

ADB macOS Mojave

(Video) How to install ADB and FASTBOOT driver on Windows 10/8/7 PC

Paso 2

Luego de esto, extraemos el contenido, abrimos una taemrinal y ejecutamos la siguiente sintaxis:

cd /ruta ADB

Paso 3

una vez accedamos alli basta con ejecutar adb devices para listar los equipos conectados. Ahora, en caso de que este metodo genere error, podemos usar HomeBrew para la instalacion de ADb, este es un gestor de paquetes para macOS.
En primer lugar, instalamos HomeBrew con el siguiente comando:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (21)

AMPLIAR

Paso 4

Allí pulsamos la tecla Enter para iniciar el proceso de instalación. Ahora vamos a instalar ADB ejecutando lo siguiente:

brew cask install android-platform-tools

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (22)

AMPLIAR

Paso 5

Podemos ver que se inicia el proceso de descarga de ADB:

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (23)

AMPLIAR

Paso 6

Una vez finalice este proceso veremos lo siguiente:

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (24)

AMPLIAR

Paso 7

Activamos el servicio ejecutando adb devices:

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (25)

AMPLIAR

Paso 8

Ahora conectamos el equipo a macOS Mojave y de nuevo ejecutamos adb devices para que este sea listado:

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (26)

AMPLIAR

Paso 9

A partir de este punto estamos en capacidad de usar ADB junto a fastboot en Android y así explorar un universo de nuevas posibilidades de desarrollo. El estado de la conexión de ADB, en todos los sistemas, puede ser alguna de las siguientes:

  • offline: indica que la instancia no está conectada a ADB o no responde.
  • device: esta opción indica que la instancia está conectada al servidor de ADB.
  • no device: no hay un emulador o dispositivo conectado.

Paso 10

Algunos comandos útiles que podemos usar con fastboot son:

Comprobar que el móvil está conectado

fastboot devices

Flashear una ROM

(Video) Instalar drivers ADB y Fastboot en Mac OS

fastboot flash (nombre de la rom).zip

Flashear un recovery

fastboot flash recovery recovery.img

Flashear un kernel

fastboot flash boot boot.img

Arrancar en modo recovery

fastboot boot recovery.img

Desbloquear el bootloader

fastboot oem unlock

Bloquear el bootloader

fastboot oem lock

Paso 11

Algunos comandos básicos de ADB son:

Listar los dispositivos conectados

adb devices

Copiar un archivo desde el móvil al ordenador

adb pull <fichero>

Enviar un archivo a nuestro dispositivo móvil

adb push <fichero> <ruta>

Desinstalar una aplicación

adb uninstall <aplicación.apk>

Instalar una aplicación .apk en el móvil

adb install <aplicación.apk>

Reiniciar el móvil en modo normal

adb reboot

Reiniciar el teléfono en el modo bootloader o en el modo recovery

adb reboot-bootloader / reboot recovery

Con ADB y fastboot tenemos a mano una serie de utilidades completas y funcionales para aumentar la capacidad de uso de Android de forma total.

Cómo instalar ADB y Fastboot en Windows 10, Mac o Linux (27)

Mejores emuladores Android para Windows 10 PC o macOS

Recopilación con los mejores emuladores de Android para descargar en PC o en Mac (algunos gratis) y poder descargar las aplicaciones del sistema operativo.

FAQs

How to setup ADB and fastboot on Windows 10? ›

Installing adb and fastboot
  1. Open the Start menu, and type “advanced system settings”
  2. Select “View advanced system settings”
  3. Click on the Advanced tab.
  4. Open the “Environment Variables” window.
  5. Select the Path variable under “System Variables” and click the “Edit” button.
  6. Click the “New” button.

How to install ADB and fastboot Mac? ›

So you can install ADB and Fastboot on Mac

Enter the folder tools and double click on the file named android. It is an executable that will open a command window. When it finishes opening, select the “Android SDK Tools” and “Android SDK Platform-tools” files from the folder tools and click on Install.

How to install ADB in Windows 10? ›

Check if you already have the ADB driver installed on your PC. Get the ADB driver file. Activate USB Debugging on your Android device. Open Device Manager and install the ADB driver.

How to install fastboot Linux? ›

Installing ADB and Fastboot on Linux

Click on the Download SDK Platform-Tools for Linux link to download the latest version of ADB and fastboot as a ZIP file. Extract the downloaded ZIP file to a desired location and open a new terminal instance inside the platform-tools folder.

How to install adb and Fastboot drivers in Windows PC or laptop? ›

How to set up ADB and Fastboot
  1. Method 1: Install the latest versions manually.
  2. Method 2: 15 Second automatic installer.
  3. Method 1: Open the CMD/PowerShell window in platform tools folder.
  4. Method 2: Use the path of adb.exe or fastboot.exe as required anywhere.
  5. Method 3: Use the path of the file on your PC.
Feb 25, 2020

How to install adb in Windows using Command Prompt? ›

Step 1: Open Terminal and execute the command - ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" to install Homebrew. Step 2: Install ADB via the command - brew cask install android-platform-tools. Step 3: Enable USB debugging and start using ADB via the adb devices command.

How do I run adb command in Windows? ›

Follow these steps to debug using ADB commands:
  1. Find your emulator device ID. Run C:\>adb devices . ...
  2. Find the package you want to debug. Run adb shell pm list packages . ...
  3. Set the app to debug at startup (note the -w) ...
  4. Start the app in the emulator. ...
  5. Connect Android Studio Debugger. ...
  6. Point to source code and set breakpoints.
Oct 26, 2022

How do I install and use adb? ›

How to use ADB
  1. Connect the Android device -> USB cable -> USB dongle -> Mac and activate “Developer mode” on the Android device.
  2. Mark the option “Enabling USB Debugging”.
  3. Allow USB Debugging to be performed in the security panel.
  4. Make sure that the device is successfully connected by running: adb devices.
Jul 22, 2022

How do I install adb mode? ›

To use adb with a device connected over USB, you must enable USB debugging in the device system settings, under Developer options. On Android 4.2 and higher, the Developer options screen is hidden by default. To make it visible, enable Developer options. You can now connect your device with USB.

How to install via adb? ›

INSTALL AN APK FILE
  1. Connect your VR device to your computer using a USB cable.
  2. Wear your VR headset and confirm if a question is shown to allow the connection.
  3. Check if ADB recognizes the device: adb devices. ...
  4. Run the installation command: adb install -r /path/to/your-filename.apk.

How do I run ADB commands in Windows 10? ›

Open a command window in the folder by holding shift and right-clicking in an empty spot in the folder and selecting "Open command prompt/PowerShell here" in the menu. Then you can start using ADB — connect your phone and try . ADB devices to see if it's working. A list with attached devices should show up.

How do I get ADB to recognize my device? ›

ADB Can't Find Your Device? Here's the Fix
  1. Connect your Android device to your PC via USB and remove the ADB drivers. Then disconnect your device.
  2. Run a USB driver eliminating utility, such as USBDeview, to kill all unnecessary Android drivers.
  3. Install Universal ADB Drivers.
Nov 2, 2022

Where do I install ADB drivers? ›

In the Device Manager locate your Android device. Then right-click on it and select "Update Driver Software". Select "Browse my computer for driver software". Select "Let me pick from a list of device drivers on my computer".

What is fastboot mode in Linux? ›

Fastboot is a protocol and a tool of the same name. It is included with the Android SDK package used primarily to modify the flash filesystem via a USB connection from a host computer. It requires that the device be started in Fastboot mode.

How do I put fastboot mode in adb? ›

To flash a device:
  1. Place the device in fastboot mode by holding the appropriate key combination at boot or using the following command: adb reboot bootloader.
  2. After the device is in fastboot mode, run: fastboot flashall -w.
Nov 16, 2022

What is fast boot Linux? ›

Fastboot is a diagnostic protocol, primarily used to modify the filesystems on the flash device via USB or UDP. It requires that the device is started in a boot loader or Secondary Boot Loader mode. This document currently walks through an installation with a device with eMMC storage.

How do I manually install a driver in Windows? ›

In the search box on the taskbar, enter device manager, then select Device Manager. Right-click (or press and hold) the name of the device, and then select Uninstall. Restart your PC. Windows will attempt to reinstall the driver.

How can I fix fastboot mode without a computer? ›

When your phone is stuck in Fastboot mode or faces Android phone frozen issues, remove the back cover of your device and pull the battery out. This will power down your device. Wait for about a minute and then put the battery back in your phone. Turn on your phone and it should now be in normal mode.

How do you run install using CMD? ›

How to install MSI from command line with administrator
  1. Right click on Windows Start , choose Command Prompt (Admin)
  2. In the command prompt, input. msiexec /i “path\setup.msi“
  3. Press Enter to start the install process.
Dec 11, 2022

How do I connect to adb devices? ›

How to Connect Android Device with ADB (Android Debug Bridge) Enable USB debugging option from 'Developer Option' in Android phone. Now, connect your Android device to the computer using USB cable. Inside folder hold Shift + Right click menu >> Select 'Open command window here' option.

What are the adb commands? ›

Device Basics
CommandDescription
adb rootRestarts adbd with root permissions
adb start-serverStarts the adb server
adb kill-serverKills the adb server
adb remountRemounts file system with read/write access
5 more rows

How to run adb commands in CMD? ›

To run the command just type adb reboot-bootloader in the command line and to boot the device in recovery just type adb reboot recovery.

How do I find my adb path in Windows? ›

Firstly check if the adb is present in the SDK folder.

For this, open C:\Users\Username\AppData\Local\Android\Sdk\platform-tools and check if adb.exe is present.

How do I use fastboot command on Mac? ›

Open a terminal window—on a Mac you can do this from the desktop by going to Go > Utilities > Terminal. Next you need to change the working directory to the folder which contains the fastboot software. Do this by typing the command cd followed by the full path to the platform-tools folder from your SDK download.

How do I update adb on Windows? ›

3 Answers
  1. Run android update adb.
  2. Run adb kill-server.
  3. Run adb start-server At this point, calling adb devices started returning devices again. Now run or debug your project to test it on your device.
  4. If you use Windows.
Oct 31, 2015

How do I get Windows bootloader for Mac? ›

In the Startup Disk, choose the "Windows on BOOTCAMP" partition, and click "Restart." Then, confirm your choice to reboot to Windows. If the Mac was powered off, you can choose which partition to boot before the Mac selects for you. To do this, press the Option key on the Mac while it's on the blank white boot screen.

How do I update adb drivers in Windows 10? ›

Right-click on Computer from your desktop or Windows Explorer, and select Manage. Select Device Manager in the left pane of the Computer Management window. Locate and expand Android Phone in the right pane. Right-click on Android Composite ADB Interface and select Update Driver.

How do I find fastboot devices? ›

If Fastboot is still not detecting your Android phone, right-click on “Android” and choose “Update Driver” -> “Browse my computer for drivers” -> “Let me pick from a list of available drivers on my computer”.

How to install APK file in Linux? ›

Now You Can Run Android APKs on Linux
  1. Confirm your distro supports snap packages.
  2. Install or update the snapd service.
  3. Install Anbox.
  4. Launch Anbox from your Linux desktop.
  5. Download APK files and run them.
  6. Wait as the APK file installs.
  7. Click to run Android apps on your Linux desktop.

How do I manually install an app? ›

Download apps to your Android device
  1. Open Google Play. On your phone, use the Play Store app . ...
  2. Find an app you want.
  3. To check that the app is reliable, find out what other people say about it. ...
  4. When you pick an app, tap Install (for no-charge apps) or the app's price.

How do I run adb locally? ›

Run ADB Commands on Android Without a Computer (2021)
  1. To run ADB commands on Android without a computer, you need to install the LADB app ($2.99) from the Play Store. ...
  2. Next, you need to enable Wireless debugging. ...
  3. Under Developer Options, scroll down and enable “Wireless debugging“.
Apr 1, 2021

What are all the run commands in Windows 10? ›

Windows Run Commands Cheat Sheet
  • msconfig - System Settings.
  • msinfo32 - System Information.
  • resmon - Resource Monitor.
  • main. cpl – Mouse Settings.
  • mstsc - Remote Desktop Service.
  • cmd - The Command Prompt.
  • explorer – Windows Explorer.
  • taskmgr – Task Manager.
Sep 2, 2021

How do I enable ADB debugging on my computer? ›

Enable USB debugging on your Android phone
  1. Open the Settings app.
  2. Select System.
  3. Scroll to the bottom and select About phone.
  4. Scroll to the bottom and tap Build number 7 times.
  5. Return to the previous screen to find Developer options near the bottom.
  6. Scroll down and enable USB debugging.

How do I add a device with adb in recovery mode? ›

Connect the device to Mac or PC in recovery mode. Now open terminal/CMD in computer and go to platform-tools/. type and enter adb devices to check if the device is connected in recovery mode. Now type adb shell mount data and adb shell mount system to mount the respective directories.

How do I get my device detected by adb on Linux? ›

Connecting the device

So simply issue adb shell now – which will be quit with an error: device unauthorized. Please check the confirmation dialog on your device. Follow that advice (optionally mark the check-box to permanently authorize your computer), and you're done: Now you can use adb to access your device.

How do I grant permission for adb? ›

How to Grant Permissions Over ADB
  1. Download the SDK Tool. ...
  2. Extract the ZIP. ...
  3. Open PowerShell or the Terminal. ...
  4. Enable Developer Options. ...
  5. Enable USB Debugging and Connect Your Phone. ...
  6. Confirm the Device Connection. ...
  7. Allow USB Debugging. ...
  8. Enter the ADB Commands.
Jan 10, 2022

What is adb and fastboot drivers? ›

What Are ADB and Fastboot? ADB and Fastboot are utilities that unlock access to the Android system while your phone is connected to a desktop computer via a USB cable. The computer and cable are integral to this—there's no app version, and while you can use ADB wirelessly, it's much more complicated to set up.

How do I manually install a USB driver? ›

Attach the USB device to your computer. Open Device Manager to install the driver. Follow the instructions on the Update Driver Software wizard and choose manual installation. You will need to provide the location of the driver package folder to complete the installation.

How do I use adb and Fastboot tool? ›

Boot your phone into Android, then connect it to your desktop computer with a USB cable. On your computer, launch the Command Prompt and change the directory to point to the platform-tools folder. Type adb devices and hit Enter. You should now see a list of attached devices, with a serial number.

How do I get Fastboot mode in adb? ›

To flash a device:
  1. Place the device in fastboot mode by holding the appropriate key combination at boot or using the following command: adb reboot bootloader.
  2. After the device is in fastboot mode, run: fastboot flashall -w.
Nov 16, 2022

How to use adb or Fastboot from any directory on your Windows? ›

Adding adb and Fastboot to the Windows PATH (Method 2)
  1. Open Windows Explorer and right click "My PC". ...
  2. Select "Advanced System Settings".
  3. Select "Environment Variables"
  4. Look for the variable named "Path" and double click it.
  5. Click "Browse" and navigate to the folder where you extracted your adb files.
Aug 27, 2017

How do I enable adb on my computer? ›

Enable adb debugging on your device

To use adb with a device connected over USB, you must enable USB debugging in the device system settings, under Developer options. On Android 4.2 and higher, the Developer options screen is hidden by default. To make it visible, enable Developer options.

How do I run ADB command in Windows? ›

Follow these steps to debug using ADB commands:
  1. Find your emulator device ID. Run C:\>adb devices . ...
  2. Find the package you want to debug. Run adb shell pm list packages . ...
  3. Set the app to debug at startup (note the -w) ...
  4. Start the app in the emulator. ...
  5. Connect Android Studio Debugger. ...
  6. Point to source code and set breakpoints.
Oct 26, 2022

How do I fix fastboot mode not working? ›

If Fastboot is still not detecting your Android phone, right-click on “Android” and choose “Update Driver” -> “Browse my computer for drivers” -> “Let me pick from a list of available drivers on my computer”. 6.

How to restart Android phone using adb? ›

Type adb reboot and press Enter. It will soon restart the phone.

What is adb and fastboot? ›

ADB is required to communicate your Android device through a USB cable from your personal computers. PC sends the commands from your PC to Android through the ADB command line. Similarly, the Fastboot tool is used for updating the Android filesystem.

How do I add ADB path to Mac? ›

The simplest way to use adb command on your Mac systems would be to add the path to the platform-tools (where adb lives) into your bash_profile. This opens up the bash_profile in an editor. Check if the path is saved by typing: echo $PATH : You should be able to find the entire path displayed in the output.

How to use ADB in Command Prompt? ›

Open a command window in the folder by holding shift and right-clicking in an empty spot in the folder and selecting "Open command prompt/PowerShell here" in the menu. Then you can start using ADB — connect your phone and try . ADB devices to see if it's working. A list with attached devices should show up.

How do I enter fastboot in Command Prompt? ›

To boot fastboot mode, press Volume Down + Power Buttons concurrently for 3-4 seconds. Turn on the fastboot mode by pressing the volume up key only. ADB fastboot commands will let you restart your Android device into Bootloader mode or fastboot.

How to install via ADB? ›

INSTALL AN APK FILE
  1. Connect your VR device to your computer using a USB cable.
  2. Wear your VR headset and confirm if a question is shown to allow the connection.
  3. Check if ADB recognizes the device: adb devices. ...
  4. Run the installation command: adb install -r /path/to/your-filename.apk.

Can ADB work without USB debugging? ›

You can run ADB in Wireless Mode. means no USB-cable connection is required.

Videos

1. Install ADB in Mac
(8KB)
2. How to Install ADB on Mac
(Tony Teaches Tech)
3. How To Install ADB & Fastboot in Mac OS X & Linux in Under 2 Minutes
(BTChannel)
4. Minimal ADB and Fastboot Tutorial and Download For PC/MAC/Linux
(Technolaty)
5. How to Install Fastboot and ADB | Windows and OSX
(Steve Wright Android At Night)
6. HOW TO ANDROID: Install ADB & Fastboot on Your Mac - The EASIEST & SAFEST Way - Permanent Method
(How To Tech)
Top Articles
Latest Posts
Article information

Author: Nathanial Hackett

Last Updated: 01/07/2023

Views: 5907

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.