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

Commit dd6029b7 authored by Songchun Fan's avatar Songchun Fan
Browse files

[test] fix SystemUITests

Non-data apps that have a sharedUserId shared with a privileged app and
use privileged permissions need to testOnly.

BUG: 236173905
Fixes: 243736722
BUG: 243736722
Test: atest SystemUITests
Change-Id: I466b4c305fc0882e036298840c04601747882b18
parent f7646579
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -53,7 +53,7 @@
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.REGISTER_WINDOW_MANAGER_LISTENERS" />
    <uses-permission android:name="android.permission.REGISTER_WINDOW_MANAGER_LISTENERS" />


    <application android:debuggable="true" android:largeHeap="true"
    <application android:debuggable="true" android:largeHeap="true" android:testOnly="true"
            android:enableOnBackInvokedCallback="true" >
            android:enableOnBackInvokedCallback="true" >
        <uses-library android:name="android.test.runner" />
        <uses-library android:name="android.test.runner" />


+1 −0
Original line number Original line Diff line number Diff line
@@ -16,6 +16,7 @@
<configuration description="Runs Tests for SystemUI.">
<configuration description="Runs Tests for SystemUI.">
    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
        <option name="test-file-name" value="SystemUITests.apk" />
        <option name="test-file-name" value="SystemUITests.apk" />
        <option name="install-arg" value="-t" />
    </target_preparer>
    </target_preparer>


    <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer">
    <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer">