OSDN Git Service

Add comments to carrierconfigmanager for required permission.
authorJunda Liu <junda@google.com>
Thu, 18 Jun 2015 23:29:35 +0000 (16:29 -0700)
committerJunda Liu <junda@google.com>
Fri, 19 Jun 2015 20:27:58 +0000 (13:27 -0700)
Bug: b/20826627
Change-Id: Ia8a42f4792429e56108a423f27c3f843f6b0f958

telephony/java/android/telephony/CarrierConfigManager.java

index bcfee30..eeda3be 100644 (file)
@@ -392,6 +392,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.
@@ -413,6 +416,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
@@ -427,6 +433,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