From 412e56367122834ba799c27381912ea62e579399 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Mon, 19 Dec 2022 18:07:53 +0000 Subject: [PATCH] Specify foreground service type and permissions for FGS under development/samples TO meet the U requirement that apps targetSdkVersion U+ must specify foreground service type and permissions. Bug: 262580021 Test: build and run. Change-Id: I0e6bf918b17eee82bdb2669a8c28e17e327a728f --- samples/ToyVpn/AndroidManifest.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/ToyVpn/AndroidManifest.xml b/samples/ToyVpn/AndroidManifest.xml index 5f1cc2b09..3d430ab56 100644 --- a/samples/ToyVpn/AndroidManifest.xml +++ b/samples/ToyVpn/AndroidManifest.xml @@ -18,6 +18,7 @@ package="com.example.android.toyvpn"> + @@ -33,7 +34,9 @@ + android:permission="android.permission.BIND_VPN_SERVICE" + android:foregroundServiceType="specialUse"> +