From 83989c36892152eeabaf91d1eea850ae6b43a544 Mon Sep 17 00:00:00 2001 From: Jing Ji Date: Sat, 4 Feb 2023 12:35:30 -0800 Subject: [PATCH] Remove the platform VPN use case from the FGS type "systemExemption" VPN apps using the platform-based VPN APIs don't need to run a FGS to keep the VPN active. Bug: 267820824 Test: atest CtsAppFgsTestCases Change-Id: I35eed3c55253c2d8b100a2b2c7c2c3445708073f --- core/java/android/app/ForegroundServiceTypePolicy.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/java/android/app/ForegroundServiceTypePolicy.java b/core/java/android/app/ForegroundServiceTypePolicy.java index 20d19c16f8d1f..5ef29e4e0b5ba 100644 --- a/core/java/android/app/ForegroundServiceTypePolicy.java +++ b/core/java/android/app/ForegroundServiceTypePolicy.java @@ -388,7 +388,6 @@ public abstract class ForegroundServiceTypePolicy { new RegularPermission(Manifest.permission.SCHEDULE_EXACT_ALARM), new RegularPermission(Manifest.permission.USE_EXACT_ALARM), new AppOpPermission(AppOpsManager.OP_ACTIVATE_VPN), - new AppOpPermission(AppOpsManager.OP_ACTIVATE_PLATFORM_VPN), }, false) );