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

Commit b1d2c0e6 authored by Mateusz Cicheński's avatar Mateusz Cicheński Committed by Android (Google) Code Review
Browse files

Merge "Adopt shell permissions identify for running the 1P/3P pip tests" into main

parents 02fcb435 18402fcd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -124,6 +124,10 @@ android_test {
        ":WMShellFlickerTestsPipCommon-src",
    ],
    static_libs: ["WMShellFlickerTestsBase"],
    test_suites: [
        "device-tests",
        "csuite",
    ],
}

csuite_test {
+2 −2
Original line number Diff line number Diff line
@@ -71,9 +71,9 @@
    <!-- Enable mocking GPS location by the test app -->
    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
        <option name="run-command"
                value="appops set com.android.wm.shell.flicker.pip.apps android:mock_location allow"/>
                value="appops set com.android.shell android:mock_location allow"/>
        <option name="teardown-command"
                value="appops set com.android.wm.shell.flicker.pip.apps android:mock_location deny"/>
                value="appops set com.android.shell android:mock_location deny"/>
    </target_preparer>

    <!-- Needed for pushing the trace config file -->
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ abstract class AppsEnterPipTransition(flicker: LegacyFlickerTest) : EnterPipTran
    @FlickerBuilderProvider
    override fun buildFlicker(): FlickerBuilder {
        return FlickerBuilder(instrumentation).apply {
            withoutScreenRecorder()
            instrumentation.uiAutomation.adoptShellPermissionIdentity()
            setup { flicker.scenario.setIsTablet(tapl.isTablet) }
            transition()
        }