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

Function createSerialAdbSpawner

src/platforms/android/adb-executor.ts:208–218  ·  view source on GitHub ↗
(serial: string)

Source from the content-addressed store, hash-verified

206}
207
208function createSerialAdbSpawner(serial: string): AndroidAdbSpawner {
209 return (args, options) => {
210 const background = runCmdBackground('adb', ['-s', serial, ...args], {
211 ...options,
212 allowFailure: true,
213 captureOutput: false,
214 });
215 void background.wait.catch(() => {});
216 return background.child;
217 };
218}
219
220export function createLocalAndroidAdbProvider(device: DeviceInfo): AndroidAdbProvider {
221 const exec = createDeviceAdbExecutor(device);

Callers 1

Calls 1

runCmdBackgroundFunction · 0.90

Tested by

no test coverage detected