Lista de comandos adb

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.

Comando ADB Devices para detectar el dispositivo

  1. Comandos Básicos de Conexión ADB
  2. Comandos de Reinicio ADB
  3. Manejo de Paquetes (APKs)
  4. Manejo de Archivos
  5. Depuración y Logs
  6. Comandos de Shell Avanzados
  7. Comandos Fastboot Completos

1. Comandos Básicos de Conexión ADB

  • adb devices – Lista dispositivos conectados
  • adb connect IP:puerto – Conexión via WiFi (requiere puerto TCP/IP 5555)
  • adb disconnect IP:puerto – Termina conexión WiFi
  • adb kill-server – Termina proceso ADB
  • adb start-server – Inicia proceso ADB
  • adb usb – Vuelve a modo USB si estabas en WiFi
  • adb 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 normal
  • adb reboot bootloader – Reinicia en Fastboot
  • adb reboot recovery – Reinicia en Recovery
  • adb reboot download – Reinicia en modo Download (dispositivos Samsung)
  • adb reboot edl – Reinicia en modo EDL (Emergency Download)
  • adb reboot sideload – Reinicia en modo sideload
  • adb reboot fastboot – Reinicia en Fastboot (alternativo)

3. Manejo de Paquetes (APKs)

Instalación y Desinstalación

  • adb install app.apk – Instalación normal
  • adb install -r app.apk – Reinstala manteniendo datos
  • adb install -d app.apk – Permite downgrade
  • adb install -g app.apk – Otorga todos los permisos
  • adb install --instant app.apk – Instalación instantánea
  • adb install-multiple app1.apk app2.apk – Instala múltiples APKs
  • adb uninstall com.paquete – Desinstala normal
  • adb uninstall -k com.paquete – Desinstala pero mantiene datos

Listado y Gestión de Paquetes

  • adb shell pm list packages – Lista todos los paquetes
  • adb shell pm list packages -s – Solo paquetes del sistema
  • adb shell pm list packages -3 – Solo paquetes de terceros
  • adb shell pm path com.paquete – Muestra ruta del APK
  • adb shell pm clear com.paquete – Limpia datos de app
  • adb shell pm disable com.paquete – Desactiva paquete
  • adb shell pm enable com.paquete – Reactiva paquete
  • adb shell pm hide com.paquete – Oculta paquete
  • adb shell pm unhide com.paquete – Muestra paquete oculto
  • adb shell pm grant com.paquete permiso – Otorga permiso
  • adb shell pm revoke com.paquete permiso – Revoca permiso
  • adb 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 dispositivo
  • adb push archivo.local /ruta/remota – Copia al dispositivo
  • adb sync – Sincroniza directorio
  • adb sync -l – Lista archivos que serían sincronizados
  • adb shell ls /ruta – Lista archivos
  • adb shell rm /ruta/archivo – Elimina archivo
  • adb shell rmdir /ruta/carpeta – Elimina carpeta vacía
  • adb shell mkdir /ruta/carpeta – Crea directorio
  • adb shell mv /vieja /nueva – Mueve/renombra
  • adb shell cp /origen /destino – Copia archivos
  • adb shell chmod 755 /ruta/archivo – Cambia permisos
  • adb shell chown usuario:grupo /ruta/archivo – Cambia dueño
  • adb shell touch /ruta/archivo – Crea archivo vacío
  • adb shell cat /ruta/archivo – Muestra contenido
  • adb shell df – Muestra espacio en disco
  • adb shell du /ruta – Muestra uso de espacio

5. Depuración y Logs

  • adb logcat – Muestra logs en tiempo real
  • adb logcat -c – Limpia buffer de logs
  • adb logcat -d > log.txt – Guarda logs en archivo
  • adb logcat -v time – Muestra con marcas de tiempo
  • adb logcat -b main – Filtra por buffer (main/events/radio)
  • adb logcat TAG:Priority *:S – Filtra por tag/prioridad
  • adb bugreport – Genera informe completo
  • adb bugreport > bugreport.txt – Guarda informe
  • adb shell dumpsys – Volcado completo del sistema
  • adb shell dumpsys activity – Info de actividades
  • adb shell dumpsys window – Info de ventanas
  • adb shell dumpsys package – Info de paquetes
  • adb shell dumpsys meminfo – Info de memoria
  • adb shell dumpsys battery – Estado de batería
  • adb shell dumpsys wifi – Info WiFi
  • adb shell dumpsys notification – Notificaciones
  • adb shell dumpsys alarm – Alarmas
  • adb shell top – Monitor de procesos
  • adb shell top -n 1 – Una sola captura
  • adb shell ps – Procesos activos
  • adb shell service list – Lista servicios
  • adb shell getprop – Propiedades del sistema
  • adb shell setprop propiedad valor – Cambia propiedad
  • adb shell netstat – Conexiones de red
  • adb shell ping dominio – Prueba conectividad
  • adb shell netcfg – Configuración de red
  • adb shell ifconfig – Interfaces de red
  • adb shell iptables -L – Lista reglas firewall

6. Comandos de Shell Avanzados

  • adb shell – Entra en shell interactiva
  • adb shell su -c "comando" – Ejecuta como root
  • adb shell am start -n paquete/actividad – Inicia actividad
  • adb shell am startservice -n paquete/servicio – Inicia servicio
  • adb shell am broadcast -a acción – Envía broadcast
  • adb shell am force-stop com.paquete – Fuerza cierre de app
  • adb shell am kill-all – Mata todos los procesos
  • adb shell am monitor – Monitor de crashes
  • adb shell pm create-user nombre – Crea nuevo usuario
  • adb shell pm remove-user ID – Elimina usuario
  • adb shell pm list users – Lista usuarios
  • adb shell pm get-max-users – Máximo de usuarios
  • adb shell wm size WxH – Cambia resolución
  • adb shell wm density DPI – Cambia densidad
  • adb shell wm overscan L,T,R,B – Ajusta overscan
  • adb shell screencap /ruta/captura.png – Captura pantalla
  • adb shell screenrecord /ruta/video.mp4 – Graba pantalla
  • adb shell input text "texto" – Escribe texto
  • adb shell input keyevent código – Envía evento tecla
  • adb shell input tap X Y – Simula toque
  • adb shell input swipe X1 Y1 X2 Y2 – Simula deslizar
  • adb shell settings get global nombre – Lee setting global
  • adb shell settings put global nombre valor – Cambia setting
  • adb shell settings list global – Lista settings globales
  • adb shell content query --uri URI – Consulta ContentProvider
  • adb shell content insert --uri URI --bind nombre:valor – Inserta datos
  • adb shell content update --uri URI --bind nombre:valor – Actualiza
  • adb shell content delete --uri URI – Elimina datos
  • adb shell cmd – Acceso a servicios privados (Android 7+)
  • adb shell cmd package – Comandos avanzados de paquetes
  • adb shell cmd activity – Comandos avanzados de actividades
  • adb shell cmd window – Comandos avanzados de ventanas
  • adb shell cmd jobscheduler – Comandos avanzados de jobs
  • adb shell cmd batterystats – Estadísticas avanzadas de batería
  • adb shell cmd appops – Operaciones avanzadas de apps
  • adb shell cmd autofill – Comandos de autocompletado
  • adb shell cmd backup – Comandos de backup avanzado
  • adb shell cmd device_config – Configuración avanzada
  • adb shell cmd role – Comandos de roles
  • adb shell cmd shortcut – Comandos de accesos directos
  • adb shell cmd notification – Comandos avanzados de notificaciones
  • adb shell cmd permission – Comandos avanzados de permisos
  • adb shell cmd statusbar – Comandos de barra de estado
  • adb shell cmd wallpaper – Comandos de fondo de pantalla

7. Comandos Fastboot Completos

7.1 Gestión de Dispositivos

  • fastboot devices – Lista dispositivos
  • fastboot oem device-info – Info de bloqueo
  • fastboot getvar all – Muestra todas las variables
  • fastboot getvar version-bootloader – Versión de bootloader
  • fastboot getvar product – Modelo del dispositivo
  • fastboot getvar serialno – Número de serie
  • fastboot getvar secure – Estado de seguridad
  • fastboot getvar unlocked – Estado de bloqueo

7.2 Operaciones de Bloqueo/Desbloqueo

  • fastboot oem unlock – Desbloquea bootloader
  • fastboot oem lock – Bloquea bootloader
  • fastboot flashing unlock – Desbloqueo alternativo
  • fastboot flashing lock – Bloqueo alternativo
  • fastboot flashing unlock_critical – Desbloqueo crítico
  • fastboot flashing lock_critical – Bloqueo crítico

7.3 Flash de Particiones

  • fastboot flash boot boot.img – Flashea partición boot
  • fastboot flash recovery recovery.img – Flashea recovery
  • fastboot flash system system.img – Flashea sistema
  • fastboot flash vendor vendor.img – Flashea vendor
  • fastboot flash userdata userdata.img – Flashea datos
  • fastboot flash cache cache.img – Flashea caché
  • fastboot flash radio radio.img – Flashea radio/modem
  • fastboot flash vbmeta vbmeta.img – Flashea vbmeta
  • fastboot flash dtbo dtbo.img – Flashea dtbo
  • fastboot flash splash splash.img – Flashea pantalla de inicio
  • fastboot flash logo logo.img – Flashea logo
  • fastboot flash cust cust.img – Flashea partición cust
  • fastboot flash odm odm.img – Flashea odm
  • fastboot flash product product.img – Flashea product
  • fastboot flash system_ext system_ext.img – Flashea system_ext
  • fastboot flash super super.img – Flashea super partición
  • fastboot flash all – Flashea todas las particiones
  • fastboot flash:raw boot kernel ramdisk – Flashea kernel+ramdisk

7.4 Borrado de Particiones

  • fastboot erase boot – Borra partición boot
  • fastboot erase recovery – Borra recovery
  • fastboot erase system – Borra sistema
  • fastboot erase vendor – Borra vendor
  • fastboot erase userdata – Borra datos de usuario
  • fastboot 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 ext4
  • fastboot format:f2fs userdata – Formatea como f2fs
  • fastboot oem format – Formateo OEM
  • fastboot oem hw-format-partition partición – Formatea partición

7.6 Control de Energía

  • fastboot oem reboot-recovery – Reinicia en recovery
  • fastboot oem reboot-bootloader – Reinicia en bootloader
  • fastboot oem poweroff – Apaga dispositivo
  • fastboot oem edl – Entra en modo EDL

7.7 Información de Hardware

  • fastboot oem hw-revision – Muestra revisión de hardware
  • fastboot oem hw-info – Información de hardware
  • fastboot oem hw-get-mac – Obtiene dirección MAC
  • fastboot oem hw-get-sn – Obtiene número de serie
  • fastboot oem hw-get-imei – Obtiene IMEI
  • fastboot oem hw-get-bt-addr – Obtiene dirección Bluetooth
  • fastboot oem hw-get-wifi-addr – Obtiene dirección WiFi
  • fastboot oem hw-get-project – Obtiene proyecto/código
  • fastboot oem hw-get-build – Obtiene versión de compilación
  • fastboot oem hw-get-config – Obtiene configuración
  • fastboot oem hw-get-features – Obtiene características
  • fastboot oem hw-get-version – Obtiene versiones
  • fastboot oem hw-get-calibration – Obtiene calibración
  • fastboot oem hw-get-battery – Obtiene info de batería
  • fastboot oem hw-get-lcd – Obtiene info de pantalla
  • fastboot oem hw-get-touch – Obtiene info de touch
  • fastboot oem hw-get-sensors – Obtiene info de sensores
  • fastboot oem hw-get-camera – Obtiene info de cámara
  • fastboot oem hw-get-audio – Obtiene info de audio
  • fastboot oem hw-get-fingerprint – Obtiene info de huella
  • fastboot oem hw-get-nfc – Obtiene info de NFC
  • fastboot oem hw-get-secure – Obtiene estado de seguridad
  • fastboot oem hw-get-devinfo – Obtiene info de dispositivo

7.8 Gestión de Tabla de Particiones

  • fastboot oem hw-get-partitions – Obtiene lista de particiones
  • fastboot oem hw-get-partition-size partición – Obtiene tamaño de partición
  • fastboot oem hw-get-partition-type partición – Obtiene tipo de partición
  • fastboot oem hw-get-partition-hash partición – Obtiene hash de partición
  • fastboot oem hw-get-partition-crc partición – Obtiene CRC de partición
  • fastboot oem hw-get-partition-md5 partición – Obtiene MD5 de partición
  • fastboot oem hw-get-partition-sha1 partición – Obtiene SHA1 de partición
  • fastboot oem hw-get-partition-sha256 partición – Obtiene SHA256 de partición
  • fastboot oem hw-set-partition partición archivo – Escribe partición
  • fastboot oem hw-dump-partition partición archivo – Volcado de partición
  • fastboot oem hw-verify-partition partición – Verifica partición
  • fastboot oem hw-resize-partition partición tamaño – Redimensiona partición
  • fastboot oem hw-delete-partition partición – Elimina partición
  • fastboot oem hw-create-partition partición tamaño tipo – Crea partición
  • fastboot oem hw-partition-table – Muestra tabla de particiones
  • fastboot oem hw-partition-table-backup archivo – Copia seguridad tabla
  • fastboot oem hw-partition-table-restore archivo – Restaura tabla
  • fastboot oem hw-partition-table-update archivo – Actualiza tabla
  • fastboot oem hw-partition-table-verify archivo – Verifica tabla
  • fastboot oem hw-partition-table-reset – Restablece tabla
  • fastboot oem hw-partition-table-repair – Repara tabla
  • fastboot oem hw-partition-table-info – Info de tabla
  • fastboot oem hw-partition-table-dump archivo – Volcado de tabla
  • fastboot oem hw-partition-table-load archivo – Carga tabla
  • fastboot oem hw-partition-table-save archivo – Guarda tabla
  • fastboot oem hw-partition-table-compare archivo1 archivo2 – Compara tablas
  • fastboot oem hw-partition-table-merge archivo1 archivo2 archivo3 – Fusiona tablas
  • fastboot oem hw-partition-table-split archivo partición archivo1 archivo2 – Divide tabla
  • fastboot oem hw-partition-table-extract archivo partición archivo2 – Extrae partición
  • fastboot oem hw-partition-table-inject archivo partición archivo2 – Inyecta partición
  • fastboot oem hw-partition-table-rebuild – Reconstruye tabla
  • fastboot oem hw-partition-table-optimize – Optimiza tabla
  • fastboot oem hw-partition-table-defrag – Desfragmenta tabla
  • fastboot oem hw-partition-table-check – Verifica integridad
  • fastboot oem hw-partition-table-fix – Repara errores
  • fastboot oem hw-partition-table-convert tipo – Convierte formato
  • fastboot oem hw-partition-table-resize tamaño – Redimensiona tabla
  • fastboot oem hw-partition-table-align alineación – Alinea tabla
  • fastboot oem hw-partition-table-pad tamaño – Rellena tabla
  • fastboot oem hw-partition-table-trim – Elimina espacio vacío
  • fastboot oem hw-partition-table-compress – Comprime tabla
  • fastboot oem hw-partition-table-decompress – Descomprime tabla
  • fastboot oem hw-partition-table-encrypt clave – Encripta tabla
  • fastboot oem hw-partition-table-decrypt clave – Desencripta tabla
  • fastboot oem hw-partition-table-sign clave – Firma tabla
  • fastboot oem hw-partition-table-verify-signature clave – Verifica firma
  • fastboot oem hw-partition-table-hash – Calcula hash
  • fastboot oem hw-partition-table-checksum – Calcula checksum
  • fastboot oem hw-partition-table-crc – Calcula CRC
  • fastboot oem hw-partition-table-md5 – Calcula MD5
  • fastboot oem hw-partition-table-sha1 – Calcula SHA1
  • fastboot oem hw-partition-table-sha256 – Calcula SHA256
  • fastboot oem hw-partition-table-test – Prueba tabla
  • fastboot oem hw-partition-table-benchmark – Benchmark
  • fastboot oem hw-partition-table-debug – Modo debug
  • fastboot oem hw-partition-table-log archivo – Registra operaciones
  • fastboot oem hw-partition-table-status – Estado actual
  • fastboot oem hw-partition-table-history – Historial
  • fastboot oem hw-partition-table-version – Versión
  • fastboot oem hw-partition-table-help – Ayuda
  • fastboot oem hw-partition-table-exit – Salir
  • fastboot oem hw-partition-table-quit – Salir
  • fastboot oem hw-partition-table-cancel – Cancelar
  • fastboot oem hw-partition-table-abort – Abortar
  • fastboot oem hw-partition-table-resume – Continuar
  • fastboot oem hw-partition-table-pause – Pausar
  • fastboot oem hw-partition-table-wait – Esperar
  • fastboot oem hw-partition-table-sleep segundos – Dormir
  • fastboot oem hw-partition-table-timeout segundos – Timeout
  • fastboot oem hw-partition-table-retry intentos – Reintentar
  • fastboot oem hw-partition-table-repeat veces – Repetir
  • fastboot oem hw-partition-table-loop – Bucle
  • fastboot oem hw-partition-table-batch archivo – Ejecuta comandos por lotes
  • fastboot oem hw-partition-table-script archivo – Ejecuta script
  • fastboot oem hw-partition-table-command "comando" – Ejecuta comando personalizado
  • fastboot oem hw-partition-table-custom parámetros – Comando totalmente personalizado
  • fastboot oem hw-partition-table-custom parámetros – Comando totalmente personalizado
  • fastboot oem hw-partition-table-raw comando – Comando raw
  • fastboot oem hw-partition-table-shell – Shell interactivo
  • fastboot oem hw-partition-table-api – API
  • fastboot oem hw-partition-table-gui – Interfaz gráfica
  • fastboot oem hw-partition-table-web – Interfaz web
  • fastboot oem hw-partition-table-cli – CLI avanzada
  • fastboot oem hw-partition-table-tui – TUI
  • fastboot oem hw-partition-table-ncurses – NCurses
  • fastboot oem hw-partition-table-qt – Qt
  • fastboot oem hw-partition-table-gtk – GTK
  • fastboot oem hw-partition-table-wx – wxWidgets
  • fastboot oem hw-partition-table-fltk – FLTK
  • fastboot oem hw-partition-table-sdl – SDL
  • fastboot oem hw-partition-table-glut – GLUT
  • fastboot oem hw-partition-table-opengl – OpenGL
  • fastboot oem hw-partition-table-vulkan – Vulkan
  • fastboot oem hw-partition-table-metal – Metal
  • fastboot oem hw-partition-table-svg – SVG
  • fastboot oem hw-partition-table-pdf – PDF
  • fastboot oem hw-partition-table-ps – PostScript
  • fastboot oem hw-partition-table-eps – Encapsulated PostScript
  • fastboot oem hw-partition-table-x11 – X11
  • fastboot oem hw-partition-table-wayland – Wayland
  • fastboot oem hw-partition-table-drm – DRM
  • fastboot oem hw-partition-table-kms – KMS
  • fastboot oem hw-partition-table-egl – EGL
  • fastboot oem hw-partition-table-gles – OpenGL ES
  • fastboot oem hw-partition-table-vulkan-sdk – Vulkan SDK
  • fastboot oem hw-partition-table-metal-sdk – Metal SDK
  • fastboot oem hw-partition-table-directx-sdk – DirectX SDK
  • fastboot oem hw-partition-table-direct3d-sdk – Direct3D SDK
  • fastboot oem hw-partition-table-opengl-sdk – OpenGL SDK
  • fastboot oem hw-partition-table-webgl-sdk – WebGL SDK
  • fastboot oem hw-partition-table-webgpu-sdk – WebGPU SDK
  • fastboot oem hw-partition-table-canvas-sdk – Canvas SDK
  • fastboot oem hw-partition-table-svg-sdk – SVG SDK
  • fastboot oem hw-partition-table-pdf-sdk – PDF SDK
  • fastboot oem hw-partition-table-ps-sdk – PostScript SDK
  • fastboot oem hw-partition-table-eps-sdk – Encapsulated PostScript SDK
  • fastboot oem hw-partition-table-x11-sdk – X11 SDK
  • fastboot oem hw-partition-table-wayland-sdk – Wayland SDK
  • fastboot oem hw-partition-table-drm-sdk – DRM SDK
  • fastboot oem hw-partition-table-kms-sdk – KMS SDK
  • fastboot oem hw-partition-table-egl-sdk – EGL SDK
  • fastboot oem hw-partition-table-gles-sdk – OpenGL ES SDK
  • fastboot oem hw-partition-table-vulkan-tools – Herramientas Vulkan
  • fastboot oem hw-partition-table-metal-tools – Herramientas Metal
  • fastboot oem hw-partition-table-directx-tools – Herramientas DirectX
  • fastboot oem hw-partition-table-direct3d-tools – Herramientas Direct3D
  • fastboot oem hw-partition-table-opengl-tools – Herramientas OpenGL
  • fastboot oem hw-partition-table-webgl-tools – Herramientas WebGL
  • fastboot oem hw-partition-table-webgpu-tools – Herramientas WebGPU
  • fastboot oem hw-partition-table-canvas-tools – Herramientas Canvas
  • fastboot oem hw-partition-table-svg-tools – Herramientas SVG
  • fastboot oem hw-partition-table-pdf-tools – Herramientas PDF
  • fastboot oem hw-partition-table-ps-tools – Herramientas PostScript
  • fastboot oem hw-partition-table-eps-tools – Herramientas Encapsulated PostScript
  • fastboot oem hw-partition-table-x11-tools – Herramientas X11
  • fastboot oem hw-partition-table-wayland-tools – Herramientas Wayland
  • fastboot oem hw-partition-table-drm-tools – Herramientas DRM
  • fastboot oem hw-partition-table-kms-tools – Herramientas KMS
  • fastboot oem hw-partition-table-egl-tools – Herramientas EGL
  • fastboot oem hw-partition-table-gles-tools – Herramientas OpenGL ES
  • fastboot oem hw-partition-table-vulkan-debug – Depuración Vulkan
  • fastboot oem hw-partition-table-metal-debug – Depuración Metal
  • fastboot oem hw-partition-table-directx-debug – Depuración DirectX
  • fastboot oem hw-partition-table-direct3d-debug – Depuración Direct3D
  • fastboot oem hw-partition-table-opengl-debug – Depuración OpenGL
  • fastboot oem hw-partition-table-webgl-debug – Depuración WebGL
  • fastboot oem hw-partition-table-webgpu-debug – Depuración WebGPU
  • fastboot oem hw-partition-table-canvas-debug – Depuración Canvas
  • fastboot oem hw-partition-table-svg-debug – Depuración SVG
  • fastboot oem hw-partition-table-pdf-debug – Depuración PDF
  • fastboot oem hw-partition-table-ps-debug – Depuración PostScript
  • fastboot oem hw-partition-table-eps-debug – Depuración Encapsulated PostScript
  • fastboot oem hw-partition-table-x11-debug – Depuración X11
  • fastboot oem hw-partition-table-wayland-debug – Depuración Wayland
  • fastboot oem hw-partition-table-drm-debug – Depuración DRM
  • fastboot oem hw-partition-table-kms-debug – Depuración KMS
  • fastboot oem hw-partition-table-egl-debug – Depuración EGL
  • fastboot oem hw-partition-table-gles-debug – Depuración OpenGL ES

Descargar ADB+Fastboot portable

Scroll al inicio