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

Function assertAndroidPackageArgSafe

src/daemon/app-log-android.ts:23–27  ·  view source on GitHub ↗
(appBundleId: string)

Source from the content-addressed store, hash-verified

21import { sleep } from '../utils/timeouts.ts';
22
23export function assertAndroidPackageArgSafe(appBundleId: string): void {
24 if (!/^[a-zA-Z0-9._:-]+$/.test(appBundleId)) {
25 throw new AppError('INVALID_ARGS', `Invalid Android package name for logs: ${appBundleId}`);
26 }
27}
28
29export async function resolveAndroidPid(
30 deviceId: string,

Callers 3

startLocalAppLogFunction · 0.90
app-log.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected