(deviceId: string)
| 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 { |
no test coverage detected