summaryrefslogtreecommitdiff
path: root/tools/aapt/ResourceTable.cpp
diff options
context:
space:
mode:
author chiachangwang <chiachangwang@google.com> 2022-06-29 03:08:15 +0000
committer chiachangwang <chiachangwang@google.com> 2022-07-01 05:17:28 +0000
commit03f0d12480b72780e67cce33473e8c55befc2669 (patch)
treee7784f946e874b6de09cfb9626a4dd88afec814b /tools/aapt/ResourceTable.cpp
parent89ca8b306368ddc5afbe0d3cf0dff8b8b3918732 (diff)
Stop VPN profiles by exiting VpnRunner instead of prepareInternal
Change to call the VpnRunner.exit to stop vpn profile instead of using prepareInternal to leave the package intact. This aligns with the way that VpnServices are disconnected so that the package and other related information will not be reset unexpectedly. In current design, Vpn will examine if the current prepared package matches to prevent an existing always-on VPN from being dethroned by other apps when the VPN always-on is enabled. However, when the VPN is disabled using stopVpnProfile, the current package name will be updated to [LEGACY VPN]. The current package will no longer be the same with the VPN package. This resulted in the rejection of the VPN app to start the VPN using VpnManager.startVpnProfile again. Test: atest FrameworksNetTests Test: manually test with VPN app to reconnect VPN when always-on is enabled. Bug: 235322391 Change-Id: I83e1e1edf6c3a6653d87216afcd397f296f59cf2
Diffstat (limited to 'tools/aapt/ResourceTable.cpp')
0 files changed, 0 insertions, 0 deletions