From 77f466d8f61b8ffd068ae33ef64c83050ae93368 Mon Sep 17 00:00:00 2001 From: fionaxu Date: Wed, 26 Apr 2017 16:05:25 -0700 Subject: [PATCH] new reset carrier signals/actions - new carrier signal intended for notifying carrier apps that all carrier actions has been reset due to sim load/absent. - default carrier apps clean up UI on reset actions. Bug: 34626476 Test: Manual test on TMO and ZIP SIM Change-Id: I232dd19294e99fb0a7d53ca1b5c049e6e3e2e050 Merged-in: I232dd19294e99fb0a7d53ca1b5c049e6e3e2e050 --- .../CarrierDefaultApp/AndroidManifest.xml | 1 + .../carrierdefaultapp/CustomConfigLoader.java | 4 ++++ .../telephony/CarrierConfigManager.java | 20 ++++++++++++++++++- .../internal/telephony/TelephonyIntents.java | 18 ++++++++++++++--- 4 files changed, 39 insertions(+), 4 deletions(-) diff --git a/packages/CarrierDefaultApp/AndroidManifest.xml b/packages/CarrierDefaultApp/AndroidManifest.xml index e450283312c3b..2ef1cf59ffc52 100644 --- a/packages/CarrierDefaultApp/AndroidManifest.xml +++ b/packages/CarrierDefaultApp/AndroidManifest.xml @@ -33,6 +33,7 @@ + *
  • apnType
  • A string with the apn type.
    *
  • redirectionUrl
  • redirection url string
    - *
  • subId
  • Sub Id which associated the data connection failure. + *
  • subId
  • Sub Id which associated the data connection failure.
    * *

    This is a protected intent that can only be sent by the system.

    */ @@ -415,7 +415,7 @@ public class TelephonyIntents { * *

    This is a protected intent that can only be sent by the system.

    */ @@ -432,13 +432,25 @@ public class TelephonyIntents { * IPV4V6) *
  • pcoId
  • An integer indicating the pco id for the data.
    *
  • pcoValue
  • A byte array of pco data read from modem.
    - *
  • subId
  • Sub Id which associated the data connection. + *
  • subId
  • Sub Id which associated the data connection.
    * *

    This is a protected intent that can only be sent by the system.

    */ public static final String ACTION_CARRIER_SIGNAL_PCO_VALUE = "com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE"; + /** + *

    Broadcast Action: when framework reset all carrier actions on sim load or absent. + * intended for carrier apps clean up (clear UI e.g.) and only sent to the specified carrier app + * The intent will have the following extra values:

    + * + *

    This is a protected intent that can only be sent by the system.

    + */ + public static final String ACTION_CARRIER_SIGNAL_RESET = + "com.android.internal.telephony.CARRIER_SIGNAL_RESET"; + // CARRIER_SIGNAL_ACTION extra keys public static final String EXTRA_REDIRECTION_URL_KEY = "redirectionUrl"; public static final String EXTRA_ERROR_CODE_KEY = "errorCode";