Inspect HTTP traffic (Ktor + OkHttp/Retrofit, via logcat)
devilge_get_network_callsCapture and inspect recent HTTP request/response pairs from an Android app by parsing Ktor or OkHttp logcat output. Automatically redacts sensitive headers.
Instructions
Returns recent HTTP request/response pairs captured from the running Android app. Parses two formats from logcat: Ktor Logging plugin (tag "HttpClient" by default) and OkHttp HttpLoggingInterceptor (tag "OkHttp" by default — used by Retrofit). The format is auto-detected by content; configure via DEVILGE_HTTP_LOG_FORMAT if needed. Requires the app's HTTP logger to be active (Ktor LogLevel.HEADERS+ / OkHttp Level.HEADERS+; BODY/ALL recommended to capture bodies). Sensitive headers (Authorization, Cookie, Set-Cookie, X-API-Key, etc.) are redacted automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Logcat tag the HTTP-client logger writes under. "HttpClient" (Ktor default), "OkHttp" (Retrofit/OkHttp default), or your custom logger's tag. | |
| serial | No | Device serial. Defaults to the only attached device or DEVILGE_DEFAULT_DEVICE_SERIAL. | |
| maxCalls | No | Maximum NetworkCall objects to return. Default 50. | |
| logcatLines | No | How many recent logcat lines to scan for the parser. Default 2000. | |
| urlContains | No | Keep only calls whose URL contains this substring (case-insensitive). | |
| methodFilter | No | Keep only calls with this HTTP method (case-insensitive). | |
| statusFilter | No | Keep only calls whose response has this exact HTTP status code. |