Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78378845 authored by Robin Lee's avatar Robin Lee
Browse files

Auto-call prepare() for new always-on VPNs

Existing VPN apps don't tend to call prepare() inside their VpnService
(they usually do that much earlier) so this eases the migration path
quite a bit and gives the networking system an advance cue as to which
app is about to take over.

Bug: 26891808
Change-Id: Ibda40d11a7e6fa3e764c18fcc4d502c1a4959f9b
parent ed5c8f02
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -190,6 +190,7 @@ public class Vpn {
            if (!setPackageAuthorization(packageName, true)) {
                return false;
            }
            prepareInternal(packageName);
        }

        // Save the new package name in Settings.Secure.