Add android.permission.LAUNCH_CREDENTIAL_SELECTOR which is needed for GtsCredentialsTestCases

Bug: 277637274
Test: atest GtsCredentialsTestCases
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:07211d002288eafb9689298570282c51c9c7631c)

cherrypick to resolve merging conflict

Change-Id: I2b805541a998160313724d24ac1ba9a826fd1d25
This commit is contained in:
Jerry Shi
2023-04-28 16:42:56 -07:00
committed by Guangjie (Jerry) Shi
parent 8508595d9a
commit 180ed3d251
2 changed files with 65 additions and 57 deletions

View File

@@ -522,6 +522,8 @@ applications that come with the platform
<permission name="android.permission.SATELLITE_COMMUNICATION"/> <permission name="android.permission.SATELLITE_COMMUNICATION"/>
<!-- Permission required for GTS test - GtsAttestationVerificationDeviceSideTestCases --> <!-- Permission required for GTS test - GtsAttestationVerificationDeviceSideTestCases -->
<permission name="android.permission.USE_ATTESTATION_VERIFICATION_SERVICE" /> <permission name="android.permission.USE_ATTESTATION_VERIFICATION_SERVICE" />
<!-- Permission required for GTS test - GtsCredentialsTestCases -->
<permission name="android.permission.LAUNCH_CREDENTIAL_SELECTOR"/>
</privapp-permissions> </privapp-permissions>
<privapp-permissions package="com.android.statementservice"> <privapp-permissions package="com.android.statementservice">

View File

@@ -840,7 +840,11 @@
<!-- Permission required for GTS test - GtsAttestationVerificationDeviceSideTestCases --> <!-- Permission required for GTS test - GtsAttestationVerificationDeviceSideTestCases -->
<uses-permission android:name="android.permission.USE_ATTESTATION_VERIFICATION_SERVICE" /> <uses-permission android:name="android.permission.USE_ATTESTATION_VERIFICATION_SERVICE" />
<application android:label="@string/app_label" <!-- Permission required for GTS test - GtsCredentialsTestCases -->
<uses-permission android:name="android.permission.LAUNCH_CREDENTIAL_SELECTOR" />
<application
android:label="@string/app_label"
android:theme="@android:style/Theme.DeviceDefault.DayNight" android:theme="@android:style/Theme.DeviceDefault.DayNight"
android:defaultToDeviceProtectedStorage="true" android:defaultToDeviceProtectedStorage="true"
android:directBootAware="true"> android:directBootAware="true">
@@ -866,7 +870,8 @@
</intent-filter> </intent-filter>
</provider> </provider>
<provider android:name=".HeapDumpProvider" <provider
android:name=".HeapDumpProvider"
android:authorities="com.android.shell.heapdump" android:authorities="com.android.shell.heapdump"
android:grantUriPermissions="true" android:grantUriPermissions="true"
android:exported="false" /> android:exported="false" />
@@ -878,7 +883,8 @@
android:excludeFromRecents="true" android:excludeFromRecents="true"
android:exported="false" /> android:exported="false" />
<activity android:name=".HeapDumpActivity" <activity
android:name=".HeapDumpActivity"
android:theme="@*android:style/Theme.Translucent.NoTitleBar" android:theme="@*android:style/Theme.Translucent.NoTitleBar"
android:label="@*android:string/dump_heap_title" android:label="@*android:string/dump_heap_title"
android:finishOnCloseSystemDialogs="true" android:finishOnCloseSystemDialogs="true"