Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68c7aad7 authored by Fan Zhang's avatar Fan Zhang Committed by Android (Google) Code Review
Browse files

Merge "Wake up/unlock device before running tests"

parents 3355bc06 eb493d5d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -50,8 +50,10 @@ public class LifecycleEventHandlingTest {
    private UiDevice mDevice;

    @Before
    public void setUp() {
    public void setUp() throws Exception {
        mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
        mDevice.wakeUp();
        mDevice.executeShellCommand("wm dismiss-keyguard");
        mContext = InstrumentationRegistry.getTargetContext();
        mTargetPackage = mContext.getPackageName();
    }