[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
This commit is contained in:
Songchun Fan
2022-08-25 10:34:36 -07:00
parent f764657905
commit dd6029b7e6
2 changed files with 2 additions and 1 deletions

View File

@@ -53,7 +53,7 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<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" >
<uses-library android:name="android.test.runner" />

View File

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