diff options
| author | 2018-10-19 13:46:17 -0700 | |
|---|---|---|
| committer | 2018-10-19 13:46:17 -0700 | |
| commit | fce7b175d783cb74641508462b7987476623b40a (patch) | |
| tree | 82eb6985f04b7b67ec45a091ff980f83c3a089a8 | |
| parent | a65185a0f62ad9254e320ce3390debd78f0147bf (diff) | |
| parent | e25c238953d280717cebd1ed689cedcd09d70491 (diff) | |
Merge "Add a new intent ACTION_MMSSMS_DATABASE_LOST" into pi-dev
am: e25c238953
Change-Id: Ia90ad849bae3a56eb718c0dcd1475c1a4703c48a
| -rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 900bf9b34c7a..30e723191143 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -1211,6 +1211,38 @@ public class TelephonyManager { */ public static final String EXTRA_RECOVERY_ACTION = "recoveryAction"; + /** + * Broadcast intent action indicating that the telephony provider DB got lost. + * + * <p> + * The {@link #EXTRA_IS_CORRUPTED} extra indicates whether the database is lost + * due to corruption or not + * + * <p class="note"> + * Requires the MODIFY_PHONE_STATE permission. + * + * <p class="note"> + * This is a protected intent that can only be sent by the system. + * + * @see #EXTRA_IS_CORRUPTED + * + * @hide + */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) + public static final String ACTION_MMSSMS_DATABASE_LOST = + "android.intent.action.MMSSMS_DATABASE_LOST"; + + /** + * A boolean extra used with {@link #ACTION_MMSSMS_DATABASE_LOST} to indicate + * whether the database is lost due to corruption or not. + * + * @see #ACTION_MMSSMS_DATABASE_LOST + * + * @hide + */ + public static final String EXTRA_IS_CORRUPTED = "isCorrupted"; + // // // Device Info |