From d26727273d16745ceddc2203121d29c3a9e7733c Mon Sep 17 00:00:00 2001 From: Andy Stadler Date: Wed, 16 Feb 2011 10:53:33 -0800 Subject: [PATCH] @hide DPM global proxy settings They don't work as advertised, so remove from SDK. Bug: 3460938 Change-Id: I87f80ebf38b228a4085630f1c2526c1d86b93dd7 --- api/11.xml | 39 ------------------- api/current.xml | 39 ------------------- .../android/app/admin/DeviceAdminInfo.java | 3 +- .../app/admin/DevicePolicyManager.java | 2 + 4 files changed, 4 insertions(+), 79 deletions(-) diff --git a/api/11.xml b/api/11.xml index 4a40c3670b0e5..ed4a2e027e4c6 100644 --- a/api/11.xml +++ b/api/11.xml @@ -37266,17 +37266,6 @@ visibility="public" > - - - - - - - - - - - - - - - - - - - - - - - - To control this policy, the device admin must have a "set-global-proxy" * tag in the "uses-policies" section of its meta-data. + * @hide */ public static final int USES_POLICY_SETS_GLOBAL_PROXY = 5; @@ -363,7 +364,7 @@ public final class DeviceAdminInfo implements Parcelable { * the given policy control. The possible policy identifier inputs are: * {@link #USES_POLICY_LIMIT_PASSWORD}, {@link #USES_POLICY_WATCH_LOGIN}, * {@link #USES_POLICY_RESET_PASSWORD}, {@link #USES_POLICY_FORCE_LOCK}, - * {@link #USES_POLICY_WIPE_DATA}, {@link #USES_POLICY_SETS_GLOBAL_PROXY}, + * {@link #USES_POLICY_WIPE_DATA}, * {@link #USES_POLICY_EXPIRE_PASSWORD}, {@link #USES_ENCRYPTED_STORAGE}. */ public boolean usesPolicy(int policyIdent) { diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 3f3aa749f9c04..d71a7a3519f69 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -1028,6 +1028,7 @@ public class DevicePolicyManager { * @param exclusionList a list of domains to be excluded from the global proxy. * @return returns null if the proxy was successfully set, or a {@link ComponentName} * of the device admin that sets thew proxy otherwise. + * @hide */ public ComponentName setGlobalProxy(ComponentName admin, Proxy proxySpec, List exclusionList ) { @@ -1080,6 +1081,7 @@ public class DevicePolicyManager { * Returns the component name setting the global proxy. * @return ComponentName object of the device admin that set the global proxy, or * null if no admin has set the proxy. + * @hide */ public ComponentName getGlobalProxyAdmin() { if (mService != null) {