MCPcopy
hub / github.com/mobile-next/mobile-mcp / getDeviceVersion

Method getDeviceVersion

src/android.ts:535–544  ·  view source on GitHub ↗
(deviceId: string)

Source from the content-addressed store, hash-verified

533 }
534
535 private getDeviceVersion(deviceId: string): string {
536 try {
537 const output = execFileSync(getAdbPath(), ["-s", deviceId, "shell", "getprop", "ro.build.version.release"], {
538 timeout: 5000,
539 }).toString().trim();
540 return output;
541 } catch (error) {
542 return "unknown";
543 }
544 }
545
546 private getDeviceName(deviceId: string): string {
547 try {

Callers 1

Calls 1

getAdbPathFunction · 0.85

Tested by

no test coverage detected