support moto

This commit is contained in:
2024-09-27 17:25:23 +02:00
parent f677febb3f
commit f67b6a3383
2 changed files with 10 additions and 2 deletions
+5 -2
View File
@@ -1416,6 +1416,11 @@ class CommandorPage {
await delay(2000);
this.device.shell("input tap " + 818 + " " + 2140)
await delay(1000);
} else if (model === "moto_g51_5G") {
await this.tapForDevice(this.device, 800, 2215)
await delay(2000);
this.device.shell("input tap " + 800 + " " + 2215)
await delay(1000);
} else if (model === "CPH2219") {
this.device.shell("input tap " + 772 + " " + 2146)
await delay(2000);
@@ -1468,11 +1473,9 @@ class CommandorPage {
async enableDisableAirPlanMode() {
logWithDevice("will enable/disable airplane mode", this.device)
try {
// await this.device.shell("cmd connectivity airplane-mode enable")
await exceutShellCmd(this.device, "cmd connectivity airplane-mode enable")
await delay(1000)
await exceutShellCmd(this.device, "cmd connectivity airplane-mode disable")
// await this.device.shell("cmd connectivity airplane-mode disable")
await delay(2000)
} catch (e) {
try {