From ee660cfd90c7a394713c1486be7e677786149fcf Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Mon, 30 Nov 2020 19:23:45 +0900 Subject: [PATCH] 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 --- core/java/android/net/ConnectivityManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java index c28a901fba..cf5d4e579f 100644 --- a/core/java/android/net/ConnectivityManager.java +++ b/core/java/android/net/ConnectivityManager.java @@ -684,7 +684,7 @@ public class ConnectivityManager { * {@hide} */ @Deprecated - @UnsupportedAppUsage + @SystemApi public static final int TYPE_PROXY = 16; /**