diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 19061f94a6b9f..c850004a54d8c 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -1124,6 +1124,41 @@ public class TelephonyManager { */ public static final String EXTRA_SUBSCRIPTION_ID = "android.telephony.extra.SUBSCRIPTION_ID"; + /** + * Broadcast intent action indicating that when data stall recovery is attempted by Telephony, + * intended for report every data stall recovery step attempted. + * + *

+ * The {@link #EXTRA_RECOVERY_ACTION} extra indicates the action associated with the data + * stall recovery. + * The phone id where the data stall recovery is attempted. + * + *

+ * Requires the READ_PHONE_STATE permission. + * + *

+ * This is a protected intent that can only be sent by the system. + * + * @see #EXTRA_RECOVERY_ACTION + * + * @hide + */ + // TODO(b/78370030) : Restrict this to system applications only + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) + public static final String ACTION_DATA_STALL_DETECTED = + "android.intent.action.DATA_STALL_DETECTED"; + + /** + * An int extra used with {@link #ACTION_DATA_STALL_DETECTED} to indicate the + * action associated with the data stall recovery. + * + * @see #ACTION_DATA_STALL_DETECTED + * + * @hide + */ + public static final String EXTRA_RECOVERY_ACTION = "recoveryAction"; + // // // Device Info