Back to Articles

The Ultimate Encyclopedia of ADB, Dumpsys & Android Internals

Android Internals Team
2026-02-08
5 min read

The Ultimate Encyclopedia of ADB, Dumpsys & Android Internals

Verified on Android 14 AOSP; Pixel Tablet (Tangorpro), AAOS build. Commands vary by OEM and Android version.

Introduction

The Android Debug Bridge (ADB) is the single most critical tool for anyone working seriously with the Android platform. It's the command-line interface that provides a direct line into the heart of the Android system.

This encyclopedia merges essential ADB commands with system-level dumpsys and service commands. It is designed for system engineers and app developers alike.

Key Features

  • Automotive verified commands for AAOS (car_service).
  • Modern internals: cmd is preferred over legacy service call.
  • Root-capable workflows for deep introspection on userdebug/eng builds.

Index

  1. Fundamentals and Server Management
  2. Device Management and Properties
  3. Logging and Diagnostics
  4. Boot and Partition Analysis
  5. Audio and Media Debugging
  6. App and File Management
  7. Permissions and Privacy
  8. Network and Power Tools
  9. Automation and Stress Testing
  10. Modern Service Interface (cmd)
  11. Visual and HMI Automation
  12. Android Automotive (AAOS) Deep Dive
  13. Dumpsys Encyclopedia
  14. System Performance and Resource Analysis
  15. Expert: Native and HAL Debugging
  16. Android Process Model (Internals)
  17. ART and Runtime (JIT/AOT)
  18. Kernel and Low-Level Debugging
  19. Package Manager Internals
  20. System Service Architecture
  21. Storage and Media Deep Dive
  22. OTA and System Updates
  23. Fastboot and Recovery
  24. Runtime Properties and SELinux

Build Capability Matrix

FeatureUser (Production)Userdebug (Dev)Eng (Platform)
Root AccessNoYes (adb root)Yes (Default)
VerityEnforcedCan DisableDisabled
SELinuxEnforcingEnforcing (permissive avail)Permissive
DumpsysLimitedFullFull
Debuggable011

Reference Packages Used In This Guide

All package names below are installed on the connected Pixel Tablet AAOS build.

  • com.android.car.settings (System Settings, safe for safe app-level commands)
  • com.android.car.carlauncher (Home screen)
  • com.android.systemui (System UI, always running)
  • com.android.music (AOSP music app)

Fundamentals and Server Management

Manage the ADB daemon itself and establish device connections.

Core ADB Mechanics

Wireless Debugging (Android 11+)

Privileged Access (Rooting)

[!CAUTION] Commands like remount, disable-verity, and setenforce 0 reduce device security.


Device Management and Properties

Current User & Profile State (AAOS)


Logging & Diagnostics


Boot and Partition Analysis

Init & Boot Services


Audio and Media Debugging


App and File Management


Permissions & Privacy


Network and Power Tools

Port Forwarding

Force Connectivity (svc)

Network Traffic Analysis (tcpdump)

Power Simulation (Doze & Battery)

Wakeup Analysis (Alarms)

Tethering & NetworkStack


Automation and Stress Testing

JobScheduler & Background Limits


Modern Service Interface (cmd)

cmd is the preferred interface for system services on Android 10+.

Troubleshooting Overlays (RROs)

Deep dive into why an overlay isn't applying provided by idmap2.


Visual and HMI Automation

Screen Capture (High Speed)

Visual Mode Toggles

UI Performance Profiling (gfxinfo)

Screen, Density & Resolution

Immersive Mode

Font Scale

Input Simulation (input)


Android Automotive (AAOS) Deep Dive

Android Automotive adds the Car Service, a specialized system service for vehicle functions.

Car Service Interaction (cmd car_service)

Rotary & Input Injection

Automotive Dumpsys


Dumpsys Encyclopedia

dumpsys dumps the internal state of system services.

The Most-Used Dumpsys Map

ServiceCommandPurpose
Status Baradb shell dumpsys statusbarQS Tiles, Notifications
Notificationsadb shell dumpsys notificationActive notifications, channels
Poweradb shell dumpsys powerWake locks, screen state
Displayadb shell dumpsys displayPhysical display configs
Inputadb shell dumpsys inputTouch events, focus target
Packageadb shell dumpsys package com.android.car.settingsPermissions, signatures
JobScheduleradb shell dumpsys jobschedulerBackground jobs status
UsageStatsadb shell dumpsys usagestatsApp usage history
NetPolicyadb shell dumpsys netpolicyData saver, background restrictions

Core Lifecycle (activity)

Window Manager (window)

Input & Focus

Power & Battery

Thermal Debugging


System Performance and Resource Analysis

CPU & Process Monitoring (top)

CPU Stats Summary

Memory Analysis (vmstat & meminfo)

Thermal Monitoring & Sensors


Expert: Native and HAL Debugging

HAL Introspection (lshal)

Native Crashes

Performance Tracing (perfetto)

Quick Tracing Templates

SurfaceFlinger & Rendering

IPC & Binder Monitoring


Android Process Model (Internals)

Zygote & Process State

LMKD (Low Memory Killer Daemon)

ANR & Watchdog Debugging


ART and Runtime (JIT/AOT)


Kernel and Low-Level Debugging


Package Manager Internals


System Service Architecture


Storage and Media Deep Dive


OTA and Updates


Fastboot, Recovery and Updates

[!WARNING] These low-level modes modify firmware. Improper use can brick your device.


Runtime Properties and SELinux


Conclusion

This guide covers the full stack:

  1. Application Layer: pm, install, monkey.
  2. Framework Layer: cmd, dumpsys activity, dumpsys window.
  3. Native/HAL Layer: lshal, perfetto, tombstones.
  4. Automotive Vertical: car_service, vhal injection.

Mastering these commands gives you complete observability into the Android OS.