explaingit

mzlogin/awesome-adb

12,304Audience · developerComplexity · 1/5Setup · easy

TLDR

A comprehensive guide to Android Debug Bridge commands organized by category, covering app management, device info, simulated input, wireless connection, and more, with example output for each command.

Mindmap

mindmap
  root((awesome-adb))
    Connection
      USB setup
      Wireless ADB
      Multi-device
    App Management
      Install APK
      Clear data
      Enable disable
    Device Info
      Battery status
      Screen resolution
      Android version
    Simulated Input
      Touches and swipes
      Key presses
      Text input
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Install, uninstall, and manage apps on an Android device from the command line without a GUI tool.

USE CASE 2

Simulate screen touches and swipes for automated Android testing or scripting repetitive device interactions.

USE CASE 3

Read device information like battery status, screen resolution, and Android version from the terminal.

USE CASE 4

Connect to an Android device wirelessly using ADB over Wi-Fi without a USB cable on Android 11 and above.

Tech stack

ADBAndroid

Getting it running

Difficulty · easy Time to first run · 5min

In plain English

ADB stands for Android Debug Bridge, a command-line tool that lets your computer communicate with an Android device or emulator. This repository is a comprehensive Chinese-language guide (with an English translation available) to ADB commands and their practical uses, organized by category. The guide starts with the basics: how to connect a device via USB or wirelessly, how to target a specific device when multiple are connected at once, and how to verify the connection is working. For Android 11 and above, it covers the newer wireless pairing method that avoids USB cables entirely. For app management, the guide covers commands to list installed apps, install and uninstall APK files, clear app data and caches, see which app is currently in the foreground, and enable or disable individual apps without uninstalling them. A dedicated section covers simulated input: you can send button presses (power, home, back, volume controls, media keys), simulate screen touches and swipes, and type text from the command line. This is useful for automated testing or scripting repetitive device interactions. The device information section documents commands to read the screen resolution, battery status, device model, Android version, IP address, CPU details, and memory usage. The settings section explains how to change screen resolution and density from the command line. Separate sections cover viewing Android system logs filtered by level or tag, using the Monkey tool for stress testing, flashing-related commands for recovery and fastboot modes, and security toggles for SELinux. This is a documentation guide, not a software package. It contains shell commands with example output rather than code to install. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Give me the ADB commands to install an APK, clear its data cache, and then uninstall it from my Android device.
Prompt 2
Show me how to simulate a swipe and tap gesture on an Android device using ADB shell input commands.
Prompt 3
How do I connect to my Android 11 device wirelessly using ADB without a USB cable?
Prompt 4
Write a shell script using ADB that captures the screen, reads the battery level, and logs the currently active foreground app.
Open on GitHub → Explain another repo

← mzlogin on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.