lucaslin deda023922 Grant the ACTIVATE_PLATFORM_VPN appop if VPN app has CONTROL_VPN
This makes the VpnManager APIs consistent with VpnService, ensuring that apps relying on CONTROL_VPN and a separate consent dialog (per CDD) can work properly using the VpnManager. Without this patch, there is an inverted incentive to use the VpnService.

As a workaround, apps using this with CONTROL_VPN already can/do work around this by calling VpnService.prepareAndAuthorize().

Bug: 232051081
Test: atest FrameworksNetTests:VpnTest
Change-Id: I0e0566bb8fed2f9330889e031175c33d499fa855
2022-07-20 09:11:07 +00:00
2022-06-24 21:53:32 +00:00
…
…
2022-03-28 09:25:17 -07:00
…
2022-04-01 16:46:46 +00:00
…
…
2022-03-31 19:37:56 -07:00
2022-06-23 12:53:34 +00:00
…
…
…
…
…
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%