diff options
author | Pavel Grafov <pgrafov@google.com> | 2021-05-14 16:09:18 +0100 |
---|---|---|
committer | Pavel Grafov <pgrafov@google.com> | 2021-06-09 14:22:01 +0100 |
commit | d406212ac27a677ac351346360669bf750e3976f (patch) | |
tree | 7c98df198e60bc5703f40d9be2b0eb1ace634485 /libs/hwui/renderthread/CacheManager.cpp | |
parent | d8be4517b3da4ab236fd04dd9b85b528f38cf5b8 (diff) |
Don't reset user VPN without reason
When DPM.setAlwaysOnVpn is called with package=null, it resets
any VPN configured by the user. With this change it won't happen
anymore: it will only reset VPN configuration if it was previously
configured by the admin.
If an admin actually wants to remove any user configured VPN, they
can enforce DISALLOW_CONFIG_VPN restriction which will remove any
user VPNs and will prevent the user from configuring a new one.
+ Also make sure that when the DPC removes an always-on VPN
configuration, the package loses ability to start VPN until the
user authorizes it again.
Bug: 139823667
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: Ia703015b4e8d7eaf156358d7eb000d6f58d32238
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
0 files changed, 0 insertions, 0 deletions