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
Loading
Please register or sign in to comment