Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59406297 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use WaitForDeviceAvailable" into main

parents d987500c cc282f84
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -115,9 +115,9 @@ public class Enable16KbTest extends BaseHostJUnit4Test {

    private void prepareDevice() throws Exception {
        // Verify that device is online before running test and enable root
        getDevice().waitForDeviceOnline(DEVICE_WAIT_TIMEOUT);
        getDevice().waitForDeviceAvailable(DEVICE_WAIT_TIMEOUT);
        getDevice().enableAdbRoot();
        getDevice().waitForDeviceOnline(DEVICE_WAIT_TIMEOUT);
        getDevice().waitForDeviceAvailable(DEVICE_WAIT_TIMEOUT);

        getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP");
        getDevice().executeShellCommand("wm dismiss-keyguard");