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

Commit 7f159cf6 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

Add ConnectivityManager.TYPE_PROXY to SystemApi

This follows other TYPE_* constants like TYPE_WIFI_P2P that are
@SystemApi or public.
TYPE_PROXY has a use-case for the system to set network policies based
on proxy network templates. Although network types are deprecated, that
use-case needs to be supported and significant amounts of network
management would need to be rewritten to stop using network types.

The constant needs to be API as ConnectivityManager is planned to move
out of framework.jar, so only its formal API will be available to the
system server.

Bug: 174436414
Test: m
Change-Id: I266ed6bc59f5eb72302afe14472c93933733c8f8
parent 54082686
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5986,6 +5986,7 @@ package android.net {
    field @Deprecated public static final int TETHER_ERROR_NO_ERROR = 0; // 0x0
    field @Deprecated public static final int TETHER_ERROR_PROVISION_FAILED = 11; // 0xb
    field public static final int TYPE_NONE = -1; // 0xffffffff
    field @Deprecated public static final int TYPE_PROXY = 16; // 0x10
    field @Deprecated public static final int TYPE_WIFI_P2P = 13; // 0xd
  }
+1 −1
Original line number Diff line number Diff line
@@ -684,7 +684,7 @@ public class ConnectivityManager {
     * {@hide}
     */
    @Deprecated
    @UnsupportedAppUsage
    @SystemApi
    public static final int TYPE_PROXY = 16;

    /**