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

Function installAndroidAppFiles

src/platforms/android/app-lifecycle.ts:807–816  ·  view source on GitHub ↗
(device: DeviceInfo, appPath: string)

Source from the content-addressed store, hash-verified

805}
806
807async function installAndroidAppFiles(device: DeviceInfo, appPath: string): Promise<void> {
808 if (isAndroidAppBundlePath(appPath)) {
809 await installAndroidAppBundle(device, appPath);
810 return;
811 }
812 await installAndroidAdbPackage(appPath, {
813 device,
814 replace: true,
815 });
816}
817
818async function listInstalledAndroidPackages(device: DeviceInfo): Promise<Set<string>> {
819 const result = await runAndroidAdb(device, ['shell', 'pm', 'list', 'packages']);

Callers 1

Calls 3

installAndroidAdbPackageFunction · 0.90
isAndroidAppBundlePathFunction · 0.85
installAndroidAppBundleFunction · 0.85

Tested by

no test coverage detected