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

Function isAndroidRunAsDeniedOutput

src/daemon/runtime-hints.ts:279–290  ·  view source on GitHub ↗
(stdout: string, stderr: string)

Source from the content-addressed store, hash-verified

277}
278
279function isAndroidRunAsDeniedOutput(stdout: string, stderr: string): boolean {
280 const output = `${stdout}\n${stderr}`.toLowerCase();
281 return [
282 'run-as: package not debuggable',
283 'run-as: permission denied',
284 'run-as: package is unknown',
285 'run-as: unknown package',
286 'is unknown',
287 'is not an application',
288 'could not set capabilities',
289 ].some((pattern) => output.includes(pattern));
290}

Callers 1

writeAndroidDevPrefsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected