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

Commit 315b4b2e authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

Add public alternative for protectFromVpn

The method is called directly by VpnService#protect.

Bug: 171540887
Test: m
Change-Id: I7cbb1ef1301dcf8d27b2cc39c0431a0156fe3442
parent ce2d4087
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -91,7 +91,8 @@ public class NetworkUtils {
     * this socket will go directly to the underlying network, so its traffic will not be
     * forwarded through the VPN.
     */
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553,
            publicAlternatives = "Use {@link android.net.VpnService#protect} instead.")
    public static native boolean protectFromVpn(FileDescriptor fd);

    /**