Use power manager instead of adb to wake up screen.
Fix this before merger back from sc-v2, to prevent merge conflict. Bug: 201253586 Test: atest SettingsComponentTests Change-Id: I08871e744e201a10ddbfdf41e3a40df8c65b9865
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user