Hide trust agent whitelisting until new API is ready.
Fixes bug 17008504
Change-Id: Ic93d52042e9b6d6f7d634f22aa04642f2da1af32
diff --git a/api/current.txt b/api/current.txt
index 351a2d8..2a5a322f 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -5449,7 +5449,6 @@
method public boolean getScreenCaptureDisabled(android.content.ComponentName);
method public boolean getStorageEncryption(android.content.ComponentName);
method public int getStorageEncryptionStatus();
- method public java.util.List<java.lang.String> getTrustAgentFeaturesEnabled(android.content.ComponentName, android.content.ComponentName);
method public boolean getUninstallBlocked(android.content.ComponentName, java.lang.String);
method public boolean hasCaCertInstalled(byte[]);
method public boolean hasGrantedPolicy(android.content.ComponentName, int);
@@ -5496,7 +5495,6 @@
method public void setScreenCaptureDisabled(android.content.ComponentName, boolean);
method public void setSecureSetting(android.content.ComponentName, java.lang.String, java.lang.String);
method public int setStorageEncryption(android.content.ComponentName, boolean);
- method public void setTrustAgentFeaturesEnabled(android.content.ComponentName, android.content.ComponentName, java.util.List<java.lang.String>);
method public void setUninstallBlocked(android.content.ComponentName, java.lang.String, boolean);
method public boolean switchUser(android.content.ComponentName, android.os.UserHandle);
method public void uninstallAllUserCaCerts(android.content.ComponentName);
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java
index b17309f..4ff34e6 100644
--- a/core/java/android/app/admin/DevicePolicyManager.java
+++ b/core/java/android/app/admin/DevicePolicyManager.java
@@ -2526,6 +2526,7 @@
* @param agent Which component to enable features for.
* @param features List of features to enable. Consult specific TrustAgent documentation for
* the feature list.
+ * @hide
*/
public void setTrustAgentFeaturesEnabled(ComponentName admin, ComponentName agent,
List<String> features) {
@@ -2546,6 +2547,7 @@
* @param admin Which {@link DeviceAdminReceiver} this request is associated with.
* @param agent Which component to get enabled features for.
* @return List of enabled features.
+ * @hide
*/
public List<String> getTrustAgentFeaturesEnabled(ComponentName admin, ComponentName agent) {
if (mService != null) {
@@ -2653,10 +2655,10 @@
* Called by a profile or device owner to set the permitted accessibility services. When
* set by a device owner or profile owner the restriction applies to all profiles of the
* user the device owner or profile owner is an admin for.
- *
+ *
* By default the user can use any accessiblity service. When zero or more packages have
* been added, accessiblity services that are not in the list and not part of the system
- * can not be enabled by the user.
+ * can not be enabled by the user.
*
* <p> Calling with a null value for the list disables the restriction so that all services
* can be used, calling with an empty list only allows the builtin system's services.
diff --git a/core/java/android/service/trust/TrustAgentService.java b/core/java/android/service/trust/TrustAgentService.java
index 337ae60..3ef5b37 100644
--- a/core/java/android/service/trust/TrustAgentService.java
+++ b/core/java/android/service/trust/TrustAgentService.java
@@ -89,6 +89,7 @@
/**
* A white list of features that the given trust agent should support when otherwise disabled
* by device policy.
+ * @hide
*/
public static final String KEY_FEATURES = "trust_agent_features";
@@ -184,6 +185,7 @@
*
* @param options Option feature bundle.
* @return true if the {@link TrustAgentService} supports this feature.
+ * @hide
*/
public boolean onSetTrustAgentFeaturesEnabled(Bundle options) {
return false;