diff options
author | Evan Charlton <evanc@google.com> | 2013-05-13 10:35:33 -0700 |
---|---|---|
committer | Evan Charlton <evanc@google.com> | 2013-06-27 15:06:55 -0700 |
commit | 843d5ea5ec965c17de525b3a9f52c8cb9d352c3c (patch) | |
tree | 7b095341f3456f68da7e979196564ce6beedf89d /telephony/java/com | |
parent | 73b1496ed9dd99f7a1e2354747466fc3488eb1ba (diff) | |
download | frameworks_base-843d5ea5ec965c17de525b3a9f52c8cb9d352c3c.zip frameworks_base-843d5ea5ec965c17de525b3a9f52c8cb9d352c3c.tar.gz frameworks_base-843d5ea5ec965c17de525b3a9f52c8cb9d352c3c.tar.bz2 |
Add carrier setup app integration
Add an intent to invoke a native carrier setup app. This is paired
with the INVOKE_CARRIER_SETUP permission, though it is up to the app
to enforce that callers hold this permission.
Change-Id: I317a40675de7e9587de23c028459be2331a2f8a2
Diffstat (limited to 'telephony/java/com')
-rw-r--r-- | telephony/java/com/android/internal/telephony/TelephonyIntents.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/TelephonyIntents.java b/telephony/java/com/android/internal/telephony/TelephonyIntents.java index 3cfd0bf..65bdacf 100644 --- a/telephony/java/com/android/internal/telephony/TelephonyIntents.java +++ b/telephony/java/com/android/internal/telephony/TelephonyIntents.java @@ -237,6 +237,23 @@ public class TelephonyIntents { public static final String ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS = "android.intent.action.ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS"; + /** + * Activity Action: Start this activity to invoke the carrier setup app. + * To filter the intent, see {@link #CATEGORY_MCCMNC_PREFIX}. + * + * <p class="note">Callers of this should hold the android.permission.INVOKE_CARRIER_SETUP + * permission.</p> + */ + public static final String ACTION_CARRIER_SETUP = "android.intent.action.ACTION_CARRIER_SETUP"; + + /** + * A <em>prefix</em> for the MCC/MNC filtering used with {@link #ACTION_CARRIER_SETUP}. + * The MCC/MNC will be concatenated (zero-padded to 3 digits each) to create a final + * string of the form: + * <br /> + * <code>android.intent.category.MCCMNC_310260</code> + */ + public static final String CATEGORY_MCCMNC_PREFIX = "android.intent.category.MCCMNC_"; /** * Broadcast Action: A "secret code" has been entered in the dialer. Secret codes are |