(pidPath: string | undefined)
| 40 | } |
| 41 | |
| 42 | export 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 | |
| 49 | export async function readRecentAndroidLogcatForPackage( |
| 50 | deviceId: string, |
no test coverage detected