Skip to content

Commit

Permalink
Revert "wip: do some input before android reset, to test prevent down…
Browse files Browse the repository at this point in the history
…load mode entering"

This reverts commit 3080e55.
  • Loading branch information
yowpark committed Dec 15, 2023
1 parent de8f469 commit c8701b3
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,17 +385,6 @@ export class AndroidSharedDeviceService implements Zombieable {
}
const { serial, printable: logger, adb } = this;
if (await this.reset.isDirty()) {
// to test prevent enter download mode
await this.checkSetup(`AndroidSharedDeviceService.setup.turnOffScreen`, adb.turnOffScreen()).catch((e) => {
this.printable.error(`AndroidSharedDeviceService.revive.turnOffScreen failed.`, { serial, error: errorify(e) });
});
await this.checkSetup(`AndroidSharedDeviceService.setup.turnOnScreen`, adb.turnOnScreen()).catch((e) => {
this.printable.error(`AndroidSharedDeviceService.revive.turnOnScreen failed.`, { serial, error: errorify(e) });
});
await this.checkSetup(`AndroidSharedDeviceService.setup.mute`, this.mute()).catch((e) => {
this.printable.error(`AndroidSharedDeviceService.revive.mute failed.`, { serial, error: errorify(e) });
});

await this.checkSetup(`AndroidSharedDeviceService.setup.reset`, this.reset.reset(this.systemInfo, this.appiumAdb, this.appiumContext));
throw new Error(`AndroidSharedDeviceService.revive. device is dirty. so trigger reset ${serial}`);
}
Expand Down

0 comments on commit c8701b3

Please sign in to comment.