Skip to content
Snippets Groups Projects
  1. Jul 01, 2022
    • chiachangwang's avatar
      Stop VPN profiles by exiting VpnRunner instead of prepareInternal · 03f0d124
      chiachangwang authored
      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
      03f0d124
    • chiachangwang's avatar
      Update the prefix in keystore for app exclusion · 89ca8b30
      chiachangwang authored
      Update the string without the underscore to prevent conflict with
      the existing VPN prefix.
      
      Settings app may get exception when the vpn exclusion list was
      set since the logic is used in the Settings relying on the
      prefix match. The current app exclusion prefix is also started
      with "VPN_", so it will be mis-used by Settings as a VPN profile.
      
      Bug: 237345836
      Test: atest FrameworksNetTests
      Change-Id: I01e773cc15eb1ae5ffaa12aef124bbbf390cc004
      89ca8b30
  2. Jun 30, 2022
  3. Jun 29, 2022
  4. Jun 28, 2022
  5. Jun 27, 2022
  6. Jun 24, 2022
  7. Jun 23, 2022
Loading