adb_device_analysisHow to REA Android Devices Live: ADB Telemetry, Process Dumps & Screen Capture
Interact with live physical Android devices and emulators: query system properties via getprop, monitor process states and memory maps, capture live screenshot Evidence, and trace runtime logcat buffers.
In this official REA guide for Android Device Telemetry & Live ADB, AI coding agents (Claude Code, Cursor, Windsurf) execute 'rea adb-device-analysis --package com.example.app --json' to safely extract file layout, symbols, and code logic without launching unverified binaries.
The Problem & Target Artifact
Dynamic runtime verification: Static analysis showed a suspected root detection function. You need to connect to a live test device, launch the target application, and observe logcat and process memory behavior in real time.
Natural Language Agent Instructions
Copy and paste this prompt directly into your AI coding agent when REA is registered via Model Context Protocol (MCP):
Connect via ADB to the test device. Check device properties (ro.build.version.sdk, ro.kernel.qemu), launch com.example.app, and capture the logcat output during application startup.Run REA Analysis Command
Execute the following command in your terminal or inspect the MCP JSON-RPC call executed by your agent:
rea adb-device-analysis --package com.example.app --jsonWhat REA Extracts & Returns
ADB Device Identity & Process Telemetry Output
The verified findings and synthesized clean-room structures generated from this investigation:
{
"device": {
"serial": "emulator-5554",
"sdk_version": 34,
"cpu_abi": "arm64-v8a",
"is_emulator": true
},
"package": {
"name": "com.example.app",
"version_code": 104,
"target_sdk": 34
},
"runtime": {
"pid": 14205,
"oom_score": 0,
"threads": 28
}
}Bounded Property Whitelisting & Non-Rooted Telemetry
REA queries ADB through a strict whitelist of read-only system properties, preventing accidental device corruption or unauthorized system modifications. It captures device screens and process dumps as verifiable Evidence objects, giving AI agents visual and behavioral context without requiring root access on modern Android 14/15 devices.