Merge "Use power manager instead of adb to wake up screen."

This commit is contained in:
Syaoran Kuo
2021-09-29 07:54:08 +00:00
committed by Android (Google) Code Review

View File

@@ -139,7 +139,7 @@ public class CommonUtils {
UiUtils.waitUntilCondition(1000, () -> sPowerManager.isInteractive());
// After power on screen, need to unlock and goto home page.
AdbUtils.shell("input keyevent KEYCODE_MENU");
sPowerManager.wakeUp(1000, PowerManager.WAKE_REASON_POWER_BUTTON, "Wakeup");
}
/**