diff options
| author | 2021-09-09 14:46:06 +0800 | |
|---|---|---|
| committer | 2021-12-23 06:54:36 +0000 | |
| commit | e4049855c6c6e183c6905efae5f5a5d08c196716 (patch) | |
| tree | 80238dd817ebe80e55a5b7dec3394317997ebcc2 /api/api.go | |
| parent | de9f912d6b85a09a829600bed8da419317a3c955 (diff) | |
Prevent an app to check if the specified VPN app is set VPN always-on
An app can check if the specified VPN app is set VPN always-on
or not by calling VpnManagerService#prepareVpn(). If it sets
oldPackage to null and newPackage to a specified VPN app which
is set always-on, then prepareVpn() will return true. So the app
could know the specified VPN app is installed and it's set
always-on.
Bug: 191276656
Test: atest FrameworksNetTests CtsNetTestCases \
      CtsHostsideNetworkTests:HostsideVpnTests
Change-Id: I0013039f58a6f7c5c73b9acc877d70a0126d0ca7
Merged-In: I0013039f58a6f7c5c73b9acc877d70a0126d0ca7
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions