Skip to content

Commit 5d4a466

Browse files
committed
Even more ADB error handling
1 parent 6ca35a6 commit 5d4a466

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interceptors/android/adb-commands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,17 +586,17 @@ export async function bringToFront(
586586
) {
587587
// Wake the device up, so it's at least obviously locked if locked.
588588
// It's not possible to unlock the device over ADB. Does nothing if already awake.
589-
await adbClient.shell([
589+
await run(adbClient, [
590590
"input", "keyevent", "KEYCODE_WAKEUP"
591-
]);
591+
], { skipLogging: true });
592592

593593
await delay(10);
594594

595595
// Bring the activity to the front, so we can interact with it (this will
596596
// silently fail if the device is locked, but we're ok with that).
597-
await adbClient.shell([
597+
await run(adbClient, [
598598
"am", "start", "--activity-single-top", activityName
599-
]);
599+
], { skipLogging: true });
600600
}
601601

602602
export async function startActivity(

0 commit comments

Comments
 (0)