diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index 4068a93..2452a04 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -671,10 +671,10 @@ class CommandorPage { async slidingCaptcha(onResult) { logWithDevice("slidingCaptcha", this.device); - if (this.device.model() === "MI 5s" || this.device.model() === "ASUS_X00QD") { + if (this.device.model() === "MI 5s" || this.device.model() === "ASUS_X00QD" || this.device.model() === "ASUS_Z012D") { let cmd = `adb -s ${this.device.serial()} shell input touchscreen swipe 900 495 900 195` await exec(cmd); - await delay(1000); + await delay(5000); } let slidingCaptchaSolver = new SlidingCaptchaSolver(this.device); await slidingCaptchaSolver.solve(this.page, async (isSuccessful) => { @@ -933,10 +933,10 @@ class CommandorPage { await this.checkResultWithOcr(); break; case OCRResult.BRAVE_PRIVACY: - if (this.device.model() === "MI 5s") { + if (this.device.model() === "MI 5s" || this.device.model() === "SM-G965U1" || this.device.model() === "ASUS_Z012D") { await this.tapForDevice(this.device, 530, 970) } else if (this.device.model() === "ONEPLUS A6000") { - await this.device.shell("input tap " + 530 + " " + 1064) + await this.tapForDevice(this.device, 530, 1064) } else if (this.device.model() === "moto g51 5G") { await this.tapForDevice(this.device, 500, 1080) } else if (this.device.model() === "M2006C3LG" || this.device.model() === "220233L2G") { @@ -955,7 +955,7 @@ class CommandorPage { await this.checkResultWithOcr(); break; case OCRResult.BRAVE_PRIVACY_PUB: - if (this.device.model() === "MI 5s") { + if (this.device.model() === "MI 5s" || this.device.model() === "ASUS_Z012D") { await this.tapForDevice(this.device, 60, 1400) } else await this.tapForDevice(this.device, 455, 1920) @@ -1070,12 +1070,14 @@ class CommandorPage { let model = this.device.model() if (model === "CPH2219") { await this.device.shell("input tap " + 558 + " " + 1160) - } else if (model === "MI 5s") { + } else if (model === "MI 5s" || model === "ASUS_Z012D") { + await this.tapForDevice(this.device, 530, 1000) + } else if (model === "SM-G965U1") { await this.tapForDevice(this.device, 530, 1000) } else if (model === "M2006C3LG" || model === "220233L2G") { await this.tapForDevice(this.device, 360, 777) } else if (model === "ONEPLUS A6000") { - await this.device.shell("input tap " + 530 + " " + 1106) + await this.tapForDevice(this.device, 530, 1045) } else { logWithDevice("handleBraveSkipBtn", this.device) await this.tapForDevice(this.device, 470, 1160)