mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Disable battery defender to avoid locking during the test
Bug: 151613234 Change-Id: Id323025c1a3bb53cc39839aa2295fcd25436e68e
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user