MCPcopy Index your code
hub / github.com/callstack/agent-device / readTrackedAndroidLogcatPid

Function readTrackedAndroidLogcatPid

src/daemon/app-log-android.ts:42–47  ·  view source on GitHub ↗
(pidPath: string | undefined)

Source from the content-addressed store, hash-verified

40}
41
42export function readTrackedAndroidLogcatPid(pidPath: string | undefined): string | null {
43 const command = readStoredAppLogProcessMeta(pidPath)?.command;
44 if (!command) return null;
45 const match = /(?:^|\s)--pid\s+(\d+)(?:\s|$)/.exec(command);
46 return match?.[1] ?? null;
47}
48
49export async function readRecentAndroidLogcatForPackage(
50 deviceId: string,

Callers 1

Calls 1

Tested by

no test coverage detected