diff options
author | Junda Liu <junda@google.com> | 2015-06-18 16:29:35 -0700 |
---|---|---|
committer | Junda Liu <junda@google.com> | 2015-06-19 13:27:58 -0700 |
commit | fbd740c3ca5a55bc18a2a73e4b4255fdb47c506f (patch) | |
tree | 2bb9f65e50c73262603957a8485c570cd3e4986f /telephony/java | |
parent | 4250c8d6435cca2c14839f7adec0a43773d01e3b (diff) | |
download | frameworks_base-fbd740c3ca5a55bc18a2a73e4b4255fdb47c506f.zip frameworks_base-fbd740c3ca5a55bc18a2a73e4b4255fdb47c506f.tar.gz frameworks_base-fbd740c3ca5a55bc18a2a73e4b4255fdb47c506f.tar.bz2 |
Add comments to carrierconfigmanager for required permission.
Bug: b/20826627
Change-Id: Ia8a42f4792429e56108a423f27c3f843f6b0f958
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/CarrierConfigManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index bcfee30..eeda3be 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -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 |