Skip to main content

Overview

ADB (Android Debug Bridge) is the primary interface for interacting with Android devices and emulators. For pentesters, it enables shell access, APK extraction, log capture, port forwarding, and app manipulation. Requires USB Debugging enabled on the device (Settings → Developer Options → USB Debugging).

Connect

USB:
TCP/IP (Wi-Fi):
Emulator:

Shell


App Management

List packages:
Get APK path:
Pull APK from device:
Install / uninstall:
Start / stop app:

File Transfer

Common paths:

Logs


Port Forwarding

Forward traffic from host to device, useful for connecting Burp Suite to the emulator proxy or accessing services on the device:
Reverse forward (device → host):

Traffic Interception Setup (Burp Suite)

Step 1: Push Burp CA to device:
Step 2: Set proxy on device: Settings → Wi-Fi → Long press network → Modify Network → Advanced → Proxy Manual → set Burp host/port. Or via ADB:

Filesystem / App Data


Broadcast / Intent Injection

Send intents to test exported components:

Dumpsys


Useful One-Liners