diff options
author | Libin Tang <Libin.Tang@motorola.com> | 2009-09-01 11:40:16 -0500 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2009-09-03 09:29:16 -0700 |
commit | 9b62851c3fbcd7fb61ead7583dcae33e411232d0 (patch) | |
tree | 56b6cd3d665389b131b574f3107b68e0898ad544 /telephony | |
parent | b84138c72c94f189d4656451097b90f86d751731 (diff) | |
download | frameworks_base-9b62851c3fbcd7fb61ead7583dcae33e411232d0.zip frameworks_base-9b62851c3fbcd7fb61ead7583dcae33e411232d0.tar.gz frameworks_base-9b62851c3fbcd7fb61ead7583dcae33e411232d0.tar.bz2 |
Exit Emergency Callback Mode if phone process crashes/restarts
If the phone process crashes while the phone is in ECM, there
is currently no way to get out of ECM without rebooting the
phone. This change forces the phone out of ECM if the phone
process restarts.
Change-Id: Ie4eb103fdc151ca20aa0b29dec43e60ad819e5b7
Diffstat (limited to 'telephony')
-rwxr-xr-x | telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java b/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java index 958e96d..647b991 100755 --- a/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java +++ b/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java @@ -179,6 +179,10 @@ public class CDMAPhone extends PhoneBase { // This is needed to handle phone process crashes String inEcm=SystemProperties.get(TelephonyProperties.PROPERTY_INECM_MODE, "false"); mIsPhoneInEcmState = inEcm.equals("true"); + if (mIsPhoneInEcmState) { + // Send a message which will invoke handleExitEmergencyCallbackMode + mCM.exitEmergencyCallbackMode(obtainMessage(EVENT_EXIT_EMERGENCY_CALLBACK_RESPONSE)); + } // get the string that specifies the carrier OTA Sp number mCarrierOtaSpNumSchema = SystemProperties.get( @@ -1011,7 +1015,6 @@ public class CDMAPhone extends PhoneBase { Log.d(LOG_TAG, "ERI read, notify registrants"); mEriFileLoadedRegistrants.notifyRegistrants(); } - setSystemProperty(TelephonyProperties.PROPERTY_INECM_MODE,"false"); } break; |