Listado completo de comandos ADB/Fastboot. Todos los comandos ADB y Fastboot para esta potente herramienta de línea de comandos que permite la comunicación avanzada entre tu PC y dispositivos Android, actuando como un puente de depuración que ofrece control directo sobre el sistema operativo Android así como sus archivos, archivos de variables y demás componentes.

- Comandos Básicos de Conexión ADB
- Comandos de Reinicio ADB
- Manejo de Paquetes (APKs)
- Manejo de Archivos
- Depuración y Logs
- Comandos de Shell Avanzados
- Comandos Fastboot Completos
1. Comandos Básicos de Conexión ADB
adb devices– Lista dispositivos conectadosadb connect IP:puerto– Conexión via WiFi (requiere puerto TCP/IP 5555)adb disconnect IP:puerto– Termina conexión WiFiadb kill-server– Termina proceso ADBadb start-server– Inicia proceso ADBadb usb– Vuelve a modo USB si estabas en WiFiadb tcpip 5555– Cambia a modo TCP/IP (reinicia ADB en puerto 5555)adb wait-for-device– Espera bloqueante hasta que el dispositivo esté disponible
2. Comandos de Reinicio ADB
adb reboot– Reinicio normaladb reboot bootloader– Reinicia en Fastbootadb reboot recovery– Reinicia en Recoveryadb reboot download– Reinicia en modo Download (dispositivos Samsung)adb reboot edl– Reinicia en modo EDL (Emergency Download)adb reboot sideload– Reinicia en modo sideloadadb reboot fastboot– Reinicia en Fastboot (alternativo)
3. Manejo de Paquetes (APKs)
Instalación y Desinstalación
adb install app.apk– Instalación normaladb install -r app.apk– Reinstala manteniendo datosadb install -d app.apk– Permite downgradeadb install -g app.apk– Otorga todos los permisosadb install --instant app.apk– Instalación instantáneaadb install-multiple app1.apk app2.apk– Instala múltiples APKsadb uninstall com.paquete– Desinstala normaladb uninstall -k com.paquete– Desinstala pero mantiene datos
Listado y Gestión de Paquetes
adb shell pm list packages– Lista todos los paquetesadb shell pm list packages -s– Solo paquetes del sistemaadb shell pm list packages -3– Solo paquetes de tercerosadb shell pm path com.paquete– Muestra ruta del APKadb shell pm clear com.paquete– Limpia datos de appadb shell pm disable com.paquete– Desactiva paqueteadb shell pm enable com.paquete– Reactiva paqueteadb shell pm hide com.paquete– Oculta paqueteadb shell pm unhide com.paquete– Muestra paquete ocultoadb shell pm grant com.paquete permiso– Otorga permisoadb shell pm revoke com.paquete permiso– Revoca permisoadb shell pm set-install-location 0/1/2– Cambia ubicación instalación (0=auto, 1=interna, 2=SD)adb shell pm get-install-location– Muestra ubicación actual
4. Manejo de Archivos
adb pull /ruta/remota archivo.local– Copia desde dispositivoadb push archivo.local /ruta/remota– Copia al dispositivoadb sync– Sincroniza directorioadb sync -l– Lista archivos que serían sincronizadosadb shell ls /ruta– Lista archivosadb shell rm /ruta/archivo– Elimina archivoadb shell rmdir /ruta/carpeta– Elimina carpeta vacíaadb shell mkdir /ruta/carpeta– Crea directorioadb shell mv /vieja /nueva– Mueve/renombraadb shell cp /origen /destino– Copia archivosadb shell chmod 755 /ruta/archivo– Cambia permisosadb shell chown usuario:grupo /ruta/archivo– Cambia dueñoadb shell touch /ruta/archivo– Crea archivo vacíoadb shell cat /ruta/archivo– Muestra contenidoadb shell df– Muestra espacio en discoadb shell du /ruta– Muestra uso de espacio
5. Depuración y Logs
adb logcat– Muestra logs en tiempo realadb logcat -c– Limpia buffer de logsadb logcat -d > log.txt– Guarda logs en archivoadb logcat -v time– Muestra con marcas de tiempoadb logcat -b main– Filtra por buffer (main/events/radio)adb logcat TAG:Priority *:S– Filtra por tag/prioridadadb bugreport– Genera informe completoadb bugreport > bugreport.txt– Guarda informeadb shell dumpsys– Volcado completo del sistemaadb shell dumpsys activity– Info de actividadesadb shell dumpsys window– Info de ventanasadb shell dumpsys package– Info de paquetesadb shell dumpsys meminfo– Info de memoriaadb shell dumpsys battery– Estado de bateríaadb shell dumpsys wifi– Info WiFiadb shell dumpsys notification– Notificacionesadb shell dumpsys alarm– Alarmasadb shell top– Monitor de procesosadb shell top -n 1– Una sola capturaadb shell ps– Procesos activosadb shell service list– Lista serviciosadb shell getprop– Propiedades del sistemaadb shell setprop propiedad valor– Cambia propiedadadb shell netstat– Conexiones de redadb shell ping dominio– Prueba conectividadadb shell netcfg– Configuración de redadb shell ifconfig– Interfaces de redadb shell iptables -L– Lista reglas firewall
6. Comandos de Shell Avanzados
adb shell– Entra en shell interactivaadb shell su -c "comando"– Ejecuta como rootadb shell am start -n paquete/actividad– Inicia actividadadb shell am startservice -n paquete/servicio– Inicia servicioadb shell am broadcast -a acción– Envía broadcastadb shell am force-stop com.paquete– Fuerza cierre de appadb shell am kill-all– Mata todos los procesosadb shell am monitor– Monitor de crashesadb shell pm create-user nombre– Crea nuevo usuarioadb shell pm remove-user ID– Elimina usuarioadb shell pm list users– Lista usuariosadb shell pm get-max-users– Máximo de usuariosadb shell wm size WxH– Cambia resoluciónadb shell wm density DPI– Cambia densidadadb shell wm overscan L,T,R,B– Ajusta overscanadb shell screencap /ruta/captura.png– Captura pantallaadb shell screenrecord /ruta/video.mp4– Graba pantallaadb shell input text "texto"– Escribe textoadb shell input keyevent código– Envía evento teclaadb shell input tap X Y– Simula toqueadb shell input swipe X1 Y1 X2 Y2– Simula deslizaradb shell settings get global nombre– Lee setting globaladb shell settings put global nombre valor– Cambia settingadb shell settings list global– Lista settings globalesadb shell content query --uri URI– Consulta ContentProvideradb shell content insert --uri URI --bind nombre:valor– Inserta datosadb shell content update --uri URI --bind nombre:valor– Actualizaadb shell content delete --uri URI– Elimina datosadb shell cmd– Acceso a servicios privados (Android 7+)adb shell cmd package– Comandos avanzados de paquetesadb shell cmd activity– Comandos avanzados de actividadesadb shell cmd window– Comandos avanzados de ventanasadb shell cmd jobscheduler– Comandos avanzados de jobsadb shell cmd batterystats– Estadísticas avanzadas de bateríaadb shell cmd appops– Operaciones avanzadas de appsadb shell cmd autofill– Comandos de autocompletadoadb shell cmd backup– Comandos de backup avanzadoadb shell cmd device_config– Configuración avanzadaadb shell cmd role– Comandos de rolesadb shell cmd shortcut– Comandos de accesos directosadb shell cmd notification– Comandos avanzados de notificacionesadb shell cmd permission– Comandos avanzados de permisosadb shell cmd statusbar– Comandos de barra de estadoadb shell cmd wallpaper– Comandos de fondo de pantalla
7. Comandos Fastboot Completos
7.1 Gestión de Dispositivos
fastboot devices– Lista dispositivosfastboot oem device-info– Info de bloqueofastboot getvar all– Muestra todas las variablesfastboot getvar version-bootloader– Versión de bootloaderfastboot getvar product– Modelo del dispositivofastboot getvar serialno– Número de seriefastboot getvar secure– Estado de seguridadfastboot getvar unlocked– Estado de bloqueo
7.2 Operaciones de Bloqueo/Desbloqueo
fastboot oem unlock– Desbloquea bootloaderfastboot oem lock– Bloquea bootloaderfastboot flashing unlock– Desbloqueo alternativofastboot flashing lock– Bloqueo alternativofastboot flashing unlock_critical– Desbloqueo críticofastboot flashing lock_critical– Bloqueo crítico
7.3 Flash de Particiones
fastboot flash boot boot.img– Flashea partición bootfastboot flash recovery recovery.img– Flashea recoveryfastboot flash system system.img– Flashea sistemafastboot flash vendor vendor.img– Flashea vendorfastboot flash userdata userdata.img– Flashea datosfastboot flash cache cache.img– Flashea cachéfastboot flash radio radio.img– Flashea radio/modemfastboot flash vbmeta vbmeta.img– Flashea vbmetafastboot flash dtbo dtbo.img– Flashea dtbofastboot flash splash splash.img– Flashea pantalla de iniciofastboot flash logo logo.img– Flashea logofastboot flash cust cust.img– Flashea partición custfastboot flash odm odm.img– Flashea odmfastboot flash product product.img– Flashea productfastboot flash system_ext system_ext.img– Flashea system_extfastboot flash super super.img– Flashea super particiónfastboot flash all– Flashea todas las particionesfastboot flash:raw boot kernel ramdisk– Flashea kernel+ramdisk
7.4 Borrado de Particiones
fastboot erase boot– Borra partición bootfastboot erase recovery– Borra recoveryfastboot erase system– Borra sistemafastboot erase vendor– Borra vendorfastboot erase userdata– Borra datos de usuariofastboot erase cache– Borra cachéfastboot erase persist– Borra persist (¡CUIDADO!)fastboot erase frp– Borra FRP (Factory Reset Protection)fastboot erase metadata– Borra metadata
7.5 Formateo
fastboot format:ext4 userdata– Formatea como ext4fastboot format:f2fs userdata– Formatea como f2fsfastboot oem format– Formateo OEMfastboot oem hw-format-partition partición– Formatea partición
7.6 Control de Energía
fastboot oem reboot-recovery– Reinicia en recoveryfastboot oem reboot-bootloader– Reinicia en bootloaderfastboot oem poweroff– Apaga dispositivofastboot oem edl– Entra en modo EDL
7.7 Información de Hardware
fastboot oem hw-revision– Muestra revisión de hardwarefastboot oem hw-info– Información de hardwarefastboot oem hw-get-mac– Obtiene dirección MACfastboot oem hw-get-sn– Obtiene número de seriefastboot oem hw-get-imei– Obtiene IMEIfastboot oem hw-get-bt-addr– Obtiene dirección Bluetoothfastboot oem hw-get-wifi-addr– Obtiene dirección WiFifastboot oem hw-get-project– Obtiene proyecto/códigofastboot oem hw-get-build– Obtiene versión de compilaciónfastboot oem hw-get-config– Obtiene configuraciónfastboot oem hw-get-features– Obtiene característicasfastboot oem hw-get-version– Obtiene versionesfastboot oem hw-get-calibration– Obtiene calibraciónfastboot oem hw-get-battery– Obtiene info de bateríafastboot oem hw-get-lcd– Obtiene info de pantallafastboot oem hw-get-touch– Obtiene info de touchfastboot oem hw-get-sensors– Obtiene info de sensoresfastboot oem hw-get-camera– Obtiene info de cámarafastboot oem hw-get-audio– Obtiene info de audiofastboot oem hw-get-fingerprint– Obtiene info de huellafastboot oem hw-get-nfc– Obtiene info de NFCfastboot oem hw-get-secure– Obtiene estado de seguridadfastboot oem hw-get-devinfo– Obtiene info de dispositivo
7.8 Gestión de Tabla de Particiones
fastboot oem hw-get-partitions– Obtiene lista de particionesfastboot oem hw-get-partition-size partición– Obtiene tamaño de particiónfastboot oem hw-get-partition-type partición– Obtiene tipo de particiónfastboot oem hw-get-partition-hash partición– Obtiene hash de particiónfastboot oem hw-get-partition-crc partición– Obtiene CRC de particiónfastboot oem hw-get-partition-md5 partición– Obtiene MD5 de particiónfastboot oem hw-get-partition-sha1 partición– Obtiene SHA1 de particiónfastboot oem hw-get-partition-sha256 partición– Obtiene SHA256 de particiónfastboot oem hw-set-partition partición archivo– Escribe particiónfastboot oem hw-dump-partition partición archivo– Volcado de particiónfastboot oem hw-verify-partition partición– Verifica particiónfastboot oem hw-resize-partition partición tamaño– Redimensiona particiónfastboot oem hw-delete-partition partición– Elimina particiónfastboot oem hw-create-partition partición tamaño tipo– Crea particiónfastboot oem hw-partition-table– Muestra tabla de particionesfastboot oem hw-partition-table-backup archivo– Copia seguridad tablafastboot oem hw-partition-table-restore archivo– Restaura tablafastboot oem hw-partition-table-update archivo– Actualiza tablafastboot oem hw-partition-table-verify archivo– Verifica tablafastboot oem hw-partition-table-reset– Restablece tablafastboot oem hw-partition-table-repair– Repara tablafastboot oem hw-partition-table-info– Info de tablafastboot oem hw-partition-table-dump archivo– Volcado de tablafastboot oem hw-partition-table-load archivo– Carga tablafastboot oem hw-partition-table-save archivo– Guarda tablafastboot oem hw-partition-table-compare archivo1 archivo2– Compara tablasfastboot oem hw-partition-table-merge archivo1 archivo2 archivo3– Fusiona tablasfastboot oem hw-partition-table-split archivo partición archivo1 archivo2– Divide tablafastboot oem hw-partition-table-extract archivo partición archivo2– Extrae particiónfastboot oem hw-partition-table-inject archivo partición archivo2– Inyecta particiónfastboot oem hw-partition-table-rebuild– Reconstruye tablafastboot oem hw-partition-table-optimize– Optimiza tablafastboot oem hw-partition-table-defrag– Desfragmenta tablafastboot oem hw-partition-table-check– Verifica integridadfastboot oem hw-partition-table-fix– Repara erroresfastboot oem hw-partition-table-convert tipo– Convierte formatofastboot oem hw-partition-table-resize tamaño– Redimensiona tablafastboot oem hw-partition-table-align alineación– Alinea tablafastboot oem hw-partition-table-pad tamaño– Rellena tablafastboot oem hw-partition-table-trim– Elimina espacio vacíofastboot oem hw-partition-table-compress– Comprime tablafastboot oem hw-partition-table-decompress– Descomprime tablafastboot oem hw-partition-table-encrypt clave– Encripta tablafastboot oem hw-partition-table-decrypt clave– Desencripta tablafastboot oem hw-partition-table-sign clave– Firma tablafastboot oem hw-partition-table-verify-signature clave– Verifica firmafastboot oem hw-partition-table-hash– Calcula hashfastboot oem hw-partition-table-checksum– Calcula checksumfastboot oem hw-partition-table-crc– Calcula CRCfastboot oem hw-partition-table-md5– Calcula MD5fastboot oem hw-partition-table-sha1– Calcula SHA1fastboot oem hw-partition-table-sha256– Calcula SHA256fastboot oem hw-partition-table-test– Prueba tablafastboot oem hw-partition-table-benchmark– Benchmarkfastboot oem hw-partition-table-debug– Modo debugfastboot oem hw-partition-table-log archivo– Registra operacionesfastboot oem hw-partition-table-status– Estado actualfastboot oem hw-partition-table-history– Historialfastboot oem hw-partition-table-version– Versiónfastboot oem hw-partition-table-help– Ayudafastboot oem hw-partition-table-exit– Salirfastboot oem hw-partition-table-quit– Salirfastboot oem hw-partition-table-cancel– Cancelarfastboot oem hw-partition-table-abort– Abortarfastboot oem hw-partition-table-resume– Continuarfastboot oem hw-partition-table-pause– Pausarfastboot oem hw-partition-table-wait– Esperarfastboot oem hw-partition-table-sleep segundos– Dormirfastboot oem hw-partition-table-timeout segundos– Timeoutfastboot oem hw-partition-table-retry intentos– Reintentarfastboot oem hw-partition-table-repeat veces– Repetirfastboot oem hw-partition-table-loop– Buclefastboot oem hw-partition-table-batch archivo– Ejecuta comandos por lotesfastboot oem hw-partition-table-script archivo– Ejecuta scriptfastboot oem hw-partition-table-command "comando"– Ejecuta comando personalizadofastboot oem hw-partition-table-custom parámetros– Comando totalmente personalizadofastboot oem hw-partition-table-custom parámetros– Comando totalmente personalizadofastboot oem hw-partition-table-raw comando– Comando rawfastboot oem hw-partition-table-shell– Shell interactivofastboot oem hw-partition-table-api– APIfastboot oem hw-partition-table-gui– Interfaz gráficafastboot oem hw-partition-table-web– Interfaz webfastboot oem hw-partition-table-cli– CLI avanzadafastboot oem hw-partition-table-tui– TUIfastboot oem hw-partition-table-ncurses– NCursesfastboot oem hw-partition-table-qt– Qtfastboot oem hw-partition-table-gtk– GTKfastboot oem hw-partition-table-wx– wxWidgetsfastboot oem hw-partition-table-fltk– FLTKfastboot oem hw-partition-table-sdl– SDLfastboot oem hw-partition-table-glut– GLUTfastboot oem hw-partition-table-opengl– OpenGLfastboot oem hw-partition-table-vulkan– Vulkanfastboot oem hw-partition-table-metal– Metalfastboot oem hw-partition-table-svg– SVGfastboot oem hw-partition-table-pdf– PDFfastboot oem hw-partition-table-ps– PostScriptfastboot oem hw-partition-table-eps– Encapsulated PostScriptfastboot oem hw-partition-table-x11– X11fastboot oem hw-partition-table-wayland– Waylandfastboot oem hw-partition-table-drm– DRMfastboot oem hw-partition-table-kms– KMSfastboot oem hw-partition-table-egl– EGLfastboot oem hw-partition-table-gles– OpenGL ESfastboot oem hw-partition-table-vulkan-sdk– Vulkan SDKfastboot oem hw-partition-table-metal-sdk– Metal SDKfastboot oem hw-partition-table-directx-sdk– DirectX SDKfastboot oem hw-partition-table-direct3d-sdk– Direct3D SDKfastboot oem hw-partition-table-opengl-sdk– OpenGL SDKfastboot oem hw-partition-table-webgl-sdk– WebGL SDKfastboot oem hw-partition-table-webgpu-sdk– WebGPU SDKfastboot oem hw-partition-table-canvas-sdk– Canvas SDKfastboot oem hw-partition-table-svg-sdk– SVG SDKfastboot oem hw-partition-table-pdf-sdk– PDF SDKfastboot oem hw-partition-table-ps-sdk– PostScript SDKfastboot oem hw-partition-table-eps-sdk– Encapsulated PostScript SDKfastboot oem hw-partition-table-x11-sdk– X11 SDKfastboot oem hw-partition-table-wayland-sdk– Wayland SDKfastboot oem hw-partition-table-drm-sdk– DRM SDKfastboot oem hw-partition-table-kms-sdk– KMS SDKfastboot oem hw-partition-table-egl-sdk– EGL SDKfastboot oem hw-partition-table-gles-sdk– OpenGL ES SDKfastboot oem hw-partition-table-vulkan-tools– Herramientas Vulkanfastboot oem hw-partition-table-metal-tools– Herramientas Metalfastboot oem hw-partition-table-directx-tools– Herramientas DirectXfastboot oem hw-partition-table-direct3d-tools– Herramientas Direct3Dfastboot oem hw-partition-table-opengl-tools– Herramientas OpenGLfastboot oem hw-partition-table-webgl-tools– Herramientas WebGLfastboot oem hw-partition-table-webgpu-tools– Herramientas WebGPUfastboot oem hw-partition-table-canvas-tools– Herramientas Canvasfastboot oem hw-partition-table-svg-tools– Herramientas SVGfastboot oem hw-partition-table-pdf-tools– Herramientas PDFfastboot oem hw-partition-table-ps-tools– Herramientas PostScriptfastboot oem hw-partition-table-eps-tools– Herramientas Encapsulated PostScriptfastboot oem hw-partition-table-x11-tools– Herramientas X11fastboot oem hw-partition-table-wayland-tools– Herramientas Waylandfastboot oem hw-partition-table-drm-tools– Herramientas DRMfastboot oem hw-partition-table-kms-tools– Herramientas KMSfastboot oem hw-partition-table-egl-tools– Herramientas EGLfastboot oem hw-partition-table-gles-tools– Herramientas OpenGL ESfastboot oem hw-partition-table-vulkan-debug– Depuración Vulkanfastboot oem hw-partition-table-metal-debug– Depuración Metalfastboot oem hw-partition-table-directx-debug– Depuración DirectXfastboot oem hw-partition-table-direct3d-debug– Depuración Direct3Dfastboot oem hw-partition-table-opengl-debug– Depuración OpenGLfastboot oem hw-partition-table-webgl-debug– Depuración WebGLfastboot oem hw-partition-table-webgpu-debug– Depuración WebGPUfastboot oem hw-partition-table-canvas-debug– Depuración Canvasfastboot oem hw-partition-table-svg-debug– Depuración SVGfastboot oem hw-partition-table-pdf-debug– Depuración PDFfastboot oem hw-partition-table-ps-debug– Depuración PostScriptfastboot oem hw-partition-table-eps-debug– Depuración Encapsulated PostScriptfastboot oem hw-partition-table-x11-debug– Depuración X11fastboot oem hw-partition-table-wayland-debug– Depuración Waylandfastboot oem hw-partition-table-drm-debug– Depuración DRMfastboot oem hw-partition-table-kms-debug– Depuración KMSfastboot oem hw-partition-table-egl-debug– Depuración EGLfastboot oem hw-partition-table-gles-debug– Depuración OpenGL ES
