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

Function pullAndroidAdbFile

src/platforms/android/adb-executor.ts:329–349  ·  view source on GitHub ↗
(
  remotePath: string,
  localPath: string,
  options?: AndroidAdbTransferOptions & AndroidAdbTransferProviderOptions,
)

Source from the content-addressed store, hash-verified

327};
328
329export async function pullAndroidAdbFile(
330 remotePath: string,
331 localPath: string,
332 options?: AndroidAdbTransferOptions & AndroidAdbTransferProviderOptions,
333): Promise<AndroidAdbExecutorResult> {
334 const { device, provider, ...transferOptions } = options ?? {};
335 const resolved = resolveTransferProvider(device, provider);
336 const pull = resolved?.pull;
337 if (pull) {
338 return await withoutCommandExecutorOverride(
339 async () => await pull(remotePath, localPath, transferOptions),
340 );
341 }
342 const exec = resolved?.exec;
343 if (!exec) {
344 throw new AppError('COMMAND_FAILED', 'Android adb pull requires an adb provider');
345 }
346 return await withoutCommandExecutorOverride(
347 async () => await exec(['pull', remotePath, localPath], transferOptions),
348 );
349}
350
351export async function installAndroidAdbPackage(
352 apkPath: string,

Callers 2

Calls 2

resolveTransferProviderFunction · 0.85

Tested by

no test coverage detected