From b78c0de0ce111f9776b984f7e05a173ba9b52829 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Wed, 2 Oct 2024 19:19:43 +0200 Subject: [PATCH] support Oneplus 6 --- src/workers/CommandorPage.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index d30adf4..ce31508 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -999,7 +999,7 @@ class CommandorPage { await this.tapForDevice(this.device, 530, 970) } else if (model === "HUAWEI NXT-TL00") { await this.tapForDevice(this.device, 530, 950) - } else if (this.device.model === "ONEPLUS A6000") { + } else if (this.device.model === "ONEPLUS_A6000") { await this.tapForDevice(this.device, 530, 1064) } else if (this.device.model === "moto g51 5G") { await this.tapForDevice(this.device, 500, 1080) @@ -1315,7 +1315,7 @@ class CommandorPage { await this.tapForDevice(this.device, 530, 950) } else if (model === "M2006C3LG" || model === "220233L2G") { await this.tapForDevice(this.device, 360, 777) - } else if (model === "ONEPLUS A6000") { + } else if (model === "ONEPLUS_A6000") { await this.tapForDevice(this.device, 530, 1045) } else if (model === "CPH2469") { await this.tapForDevice(this.device, 360, 820) @@ -1387,7 +1387,7 @@ class CommandorPage { await this.tapForDevice(this.device, 103, 2283) await delay(2000); await openUrlWithAdb(RDV_URL, this.device) - } else if (this.device.model === "ONEPLUS A6000") { + } else if (this.device.model === "ONEPLUS_A6000") { await this.tapForDevice(this.device, 122, 2172) await delay(2000); await openUrlWithAdb(RDV_URL, this.device) @@ -1411,7 +1411,7 @@ class CommandorPage { await delay(2000); this.device.shell("input tap " + 800 + " " + 2100) await delay(1000); - } else if (model === "ONEPLUS A6000") { + } else if (model === "ONEPLUS_A6000") { this.device.shell("input tap " + 818 + " " + 2140) await delay(2000); this.device.shell("input tap " + 818 + " " + 2140) @@ -1450,7 +1450,7 @@ class CommandorPage { this.device.shell("input tap " + 492 + " " + 1960) } else if (model === "Mi Note 10") { this.device.shell("input tap " + 550 + " " + 1920) - } else if (model === "ONEPLUS A6000") { + } else if (model === "ONEPLUS_A6000") { log("will tap on " + model + ": " + 535 + " " + 1930) this.device.shell("input tap " + 535 + " " + 1930) await delay(1000); @@ -1498,7 +1498,7 @@ class CommandorPage { await this.device.shell("input tap " + 411 + " " + 1977) } else if (this.browserPackageName.includes("brave") && this.device.model === "RMX3151") { await this.device.shell("input tap " + 411 + " " + 1977) - } else if (this.browserPackageName.includes("brave") && this.device.model === "ONEPLUS A6000") { + } else if (this.browserPackageName.includes("brave") && this.device.model === "ONEPLUS_A6000") { await this.device.shell("input tap " + 411 + " " + 1970) } else if (this.browserPackageName.includes("brave") && this.device.model === "ASUS_X00QD") { await this.device.shell("input tap " + 411 + " " + 1970)