From 94302eb7837fb77a702bcc7c9d02900a80c1c0a8 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Wed, 14 Dec 2022 22:58:11 +0000 Subject: [PATCH] Specify foreground service type and permissions for FGS under packages/modules/Connectivity. TO meet the U requirement that apps targetSdkVersion U+ must specify foreground service type and permissions. Bug: 262580021 Test: build and run. Change-Id: I9ba478459c8ce0dfc77b6e50876c4c2249523ad9 Ignore-AOSP-First: foregroundServiceType "specialUse" is internal master branch only. --- tests/cts/hostside/app2/AndroidManifest.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/cts/hostside/app2/AndroidManifest.xml b/tests/cts/hostside/app2/AndroidManifest.xml index ff7240dba1..2c2d957d1a 100644 --- a/tests/cts/hostside/app2/AndroidManifest.xml +++ b/tests/cts/hostside/app2/AndroidManifest.xml @@ -20,6 +20,7 @@ + @@ -45,7 +46,11 @@ + android:foregroundServiceType="specialUse" + android:exported="true"> + +