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

Function resolveAndroidDeviceName

src/platforms/android/devices.ts:89–95  ·  view source on GitHub ↗
(serial: string, rawModel: string)

Source from the content-addressed store, hash-verified

87}
88
89async function resolveAndroidDeviceName(serial: string, rawModel: string): Promise<string> {
90 const modelName = rawModel.replace(/_/g, ' ').trim();
91 if (!isEmulatorSerial(serial)) return modelName || serial;
92 const avdName = await resolveAndroidEmulatorAvdName(serial);
93 if (avdName) return avdName.replace(/_/g, ' ');
94 return modelName || serial;
95}
96
97async function runBestEffortAndroidEmulatorNameProbe(
98 serial: string,

Callers 2

listAndroidDevicesFunction · 0.85

Calls 2

isEmulatorSerialFunction · 0.85

Tested by

no test coverage detected