Disable battery defender to avoid locking during the test

Bug: 151613234
Change-Id: Id323025c1a3bb53cc39839aa2295fcd25436e68e
This commit is contained in:
vadimt
2020-03-20 14:25:16 -07:00
parent b55d5b279b
commit 1b4247d9cd

View File

@@ -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");