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

Function androidDeviceForSerial

src/platforms/android/adb.ts:18–26  ·  view source on GitHub ↗
(deviceId: string)

Source from the content-addressed store, hash-verified

16}
17
18export function androidDeviceForSerial(deviceId: string): DeviceInfo {
19 return {
20 platform: 'android',
21 id: deviceId,
22 name: deviceId,
23 kind: deviceId.startsWith('emulator-') ? 'emulator' : 'device',
24 booted: true,
25 };
26}
27
28export function isClipboardShellUnsupported(stdout: string, stderr: string): boolean {
29 const haystack = `${stdout}\n${stderr}`.toLowerCase();

Callers 5

resolveAndroidPidFunction · 0.90
startAndroidAppLogFunction · 0.90
runAndroidRecordingAdbFunction · 0.90

Calls 1

startsWithMethod · 0.80

Tested by

no test coverage detected