summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author chiachangwang <chiachangwang@google.com> 2022-06-29 03:08:15 +0000
committer lucaslin <lucaslin@google.com> 2022-08-22 11:01:53 +0800
commit492e239299153a725a967cc37fe8d67a1a49dad5 (patch)
tree155eba81ec1b282dafc937637bacc29da69db54f /libs/androidfw/StringPool.cpp
parentf96e5ad5805b68481feaf3305b6ff85cd76d3727 (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 (cherry picked from commit 03f0d12480b72780e67cce33473e8c55befc2669) Merged-In: I83e1e1edf6c3a6653d87216afcd397f296f59cf2
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions