summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2014-08-27 16:49:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-27 16:49:46 +0000
commit19d431f330bf1d89c92c0971dad5fa8f5950b16d (patch)
tree877f6bb98318a1501329a36137fd8a208adfb192 /core
parent0e917336a2e7ad8191988042800f4be443b5c69a (diff)
parent9ed66da8dfd15001cebe8f7ef453718f41f9904d (diff)
downloadframeworks_base-19d431f330bf1d89c92c0971dad5fa8f5950b16d.zip
frameworks_base-19d431f330bf1d89c92c0971dad5fa8f5950b16d.tar.gz
frameworks_base-19d431f330bf1d89c92c0971dad5fa8f5950b16d.tar.bz2
Merge "Limit the settings profile/device owners can update." into lmp-dev
Diffstat (limited to 'core')
-rw-r--r--core/java/android/app/admin/DevicePolicyManager.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java
index a13bb3a..26c72a5 100644
--- a/core/java/android/app/admin/DevicePolicyManager.java
+++ b/core/java/android/app/admin/DevicePolicyManager.java
@@ -3193,6 +3193,20 @@ public class DevicePolicyManager {
/**
* Called by device owners to update {@link Settings.Global} settings. Validation that the value
* of the setting is in the correct form for the setting type should be performed by the caller.
+ * <p>The settings that can be updated with this method are:
+ * <ul>
+ * <li>{@link Settings.Global#ADB_ENABLED}</li>
+ * <li>{@link Settings.Global#AUTO_TIME}</li>
+ * <li>{@link Settings.Global#AUTO_TIME_ZONE}</li>
+ * <li>{@link Settings.Global#BLUETOOTH_ON}</li>
+ * <li>{@link Settings.Global#DATA_ROAMING}</li>
+ * <li>{@link Settings.Global#DEVELOPMENT_SETTINGS_ENABLED}</li>
+ * <li>{@link Settings.Global#MODE_RINGER}</li>
+ * <li>{@link Settings.Global#NETWORK_PREFERENCE}</li>
+ * <li>{@link Settings.Global#USB_MASS_STORAGE_ENABLED}</li>
+ * <li>{@link Settings.Global#WIFI_ON}</li>
+ * <li>{@link Settings.Global#WIFI_SLEEP_POLICY}</li>
+ * </ul>
*
* @param admin Which {@link DeviceAdminReceiver} this request is associated with.
* @param setting The name of the setting to update.
@@ -3212,7 +3226,11 @@ public class DevicePolicyManager {
* Called by profile or device owners to update {@link Settings.Secure} settings. Validation
* that the value of the setting is in the correct form for the setting type should be performed
* by the caller.
- *
+ * <p>The settings that can be updated with this method are:
+ * <ul>
+ * <li>{@link Settings.Secure#DEFAULT_INPUT_METHOD}</li>
+ * <li>{@link Settings.Secure#SKIP_FIRST_USE_HINTS}</li>
+ * </ul>
* @param admin Which {@link DeviceAdminReceiver} this request is associated with.
* @param setting The name of the setting to update.
* @param value The value to update the setting to.