From d68de90e4090455bb07e05616dd73fc41ae8677a Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Tue, 19 May 2020 17:49:36 +0900 Subject: [PATCH] Add an exported flag in integration tests manifest (partial cherry-pick of internal change: I4457ff2bd466a4c56fed2570e110f251031c2385) With b/150232615, we will need an explicit value set for the exported flag when intent filters are present, as the default behavior is changing for S+. This change adds the value reflecting the previous default to the manifest. These changes were made using an automated tool, the xml file may be reformatted slightly creating a larger diff. The only "real" change is the addition of "android:exported" to activities, services, and receivers that have one or more intent-filters. Bug: 150232615 Test: TH Merged-In: I4457ff2bd466a4c56fed2570e110f251031c2385 Change-Id: I65a1ca1678048bbf09edc9a0485b673644c8109d --- tests/net/integration/AndroidManifest.xml | 43 ++++++++++++----------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/tests/net/integration/AndroidManifest.xml b/tests/net/integration/AndroidManifest.xml index 09c0e48260..e2d9362fff 100644 --- a/tests/net/integration/AndroidManifest.xml +++ b/tests/net/integration/AndroidManifest.xml @@ -16,50 +16,53 @@ * limitations under the License. */ --> + + package="com.android.server.net.integrationtests"> - + - + - + - - - - - - + + + + + + - + - + + Remove the NetworkStackService from the base (real) manifest, and replace with a test + service that responds to the same intent --> + android:process="com.android.server.net.integrationtests.testnetworkstack" + android:exported="true"> + android:process="com.android.server.net.integrationtests.testnetworkstack" + android:exported="true"> + android:process="com.android.server.net.integrationtests.testnetworkstack" + android:permission="android.permission.BIND_JOB_SERVICE"/> + android:targetPackage="com.android.server.net.integrationtests" + android:label="Frameworks Net Integration Tests"/>