Read logcat
adb_logcatRead recent Android logcat lines without waiting for new entries to diagnose app crashes or filter by tag or substring when shell access is disabled.
Instructions
Read recent logcat lines without waiting for new ones, e.g. to see why an app crashed; unlike adb_shell it works with allow_shell off. filter: either a logcat filterspec like "ActivityManager:I :S" (contains ":" or ""; *:S is auto-appended if missing so unmatched tags are silenced) or a plain substring grepped case-insensitively across the whole line. lines limits the result (default 200). Filtering runs on the device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | How many lines to return, default 200, at most 2000. | |
| filter | No | A filterspec such as "ActivityManager:I *:S" (has ":" or "*"), or a plain substring matched case-insensitively. Omit for the last lines unfiltered. | |
| serial | No | Device serial from adb_devices. Optional when exactly one device is connected. |