support moto
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user