summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorJunda Liu <junda@google.com>2015-06-19 20:31:51 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-19 20:31:56 +0000
commit5385f5a0b8b22a06a3befd5b660676dc04336a5f (patch)
tree785e7f2dee0d8f69b68b3103d09f7d93fc96ac6e /telephony
parent48fb9d15ecaceedd5477b7b780f22b7663ca103f (diff)
parentfbd740c3ca5a55bc18a2a73e4b4255fdb47c506f (diff)
downloadframeworks_base-5385f5a0b8b22a06a3befd5b660676dc04336a5f.zip
frameworks_base-5385f5a0b8b22a06a3befd5b660676dc04336a5f.tar.gz
frameworks_base-5385f5a0b8b22a06a3befd5b660676dc04336a5f.tar.bz2
Merge "Add comments to carrierconfigmanager for required permission." into mnc-dev
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/CarrierConfigManager.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index c20032f..fa0af96 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -431,6 +431,9 @@ public class CarrierConfigManager {
* specific SIM card. If an invalid subId is used, the returned config will contain default
* values.
*
+ * <p>Requires Permission:
+ * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
+ *
* @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
* @return A {@link PersistableBundle} containing the config for the given subId, or default
* values for an invalid subId.
@@ -452,6 +455,9 @@ public class CarrierConfigManager {
/**
* Gets the configuration values for the default subscription.
*
+ * <p>Requires Permission:
+ * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
+ *
* @see #getConfigForSubId
*/
@Nullable
@@ -466,6 +472,8 @@ public class CarrierConfigManager {
* This should be called by a carrier service app if it wants to update config at an arbitrary
* moment.
* </p>
+ * <p>Requires that the calling app has carrier privileges.
+ * @see #hasCarrierPrivileges
* <p>
* This method returns before the reload has completed, and
* {@link android.service.carrier.CarrierService#onLoadConfig} will be called from an