From 1b4247d9cd6c2f2d10338a0441683bcf362bd267 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 20 Mar 2020 14:25:16 -0700 Subject: [PATCH] Disable battery defender to avoid locking during the test Bug: 151613234 Change-Id: Id323025c1a3bb53cc39839aa2295fcd25436e68e --- tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java b/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java index f5dd995fc9..551b5337fa 100644 --- a/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +++ b/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java @@ -220,6 +220,7 @@ public abstract class AbstractLauncherUiTest { @Before public void setUp() throws Exception { + mDevice.executeShellCommand("setprop vendor.battery.defender.disable 1"); mDevice.executeShellCommand("settings put global stay_on_while_plugged_in 3"); if (hasSystemUiObject("keyguard_status_view")) { Log.d(TAG, "Before unlocking the phone");