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

Function readAndroidBootProp

src/platforms/android/devices.ts:79–87  ·  view source on GitHub ↗
(
  serial: string,
  timeoutMs = ANDROID_BOOT_PROP_TIMEOUT_MS,
)

Source from the content-addressed store, hash-verified

77}
78
79async function readAndroidBootProp(
80 serial: string,
81 timeoutMs = ANDROID_BOOT_PROP_TIMEOUT_MS,
82): Promise<ExecResult> {
83 return runCmd('adb', adbArgs(serial, ['shell', 'getprop', 'sys.boot_completed']), {
84 allowFailure: true,
85 timeoutMs,
86 });
87}
88
89async function resolveAndroidDeviceName(serial: string, rawModel: string): Promise<string> {
90 const modelName = rawModel.replace(/_/g, ' ').trim();

Callers 2

isAndroidBootedFunction · 0.85
waitForAndroidBootFunction · 0.85

Calls 2

runCmdFunction · 0.90
adbArgsFunction · 0.85

Tested by

no test coverage detected