From f748cc025a317fad5a5724ed5a358c1cbdcf1968 Mon Sep 17 00:00:00 2001 From: Aaron Knight Date: Wed, 12 Oct 2016 10:31:22 -0400 Subject: smdk4412-qcom-common: Apply Emergency Call Fix Kang emergency call fix that is being applied to the other RILs Change-Id: Ief6e93b86ace1d6320ded17e51c95c1ae0c47afc --- .../android/internal/telephony/smdk4x12QComRIL.java | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java b/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java index 1f22fcd..8d4d978 100644 --- a/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java +++ b/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java @@ -66,7 +66,6 @@ public class smdk4x12QComRIL extends RIL implements CommandsInterface { private Object mSMSLock = new Object(); private boolean mIsSendingSMS = false; protected boolean isGSM = false; - private static final int RIL_REQUEST_DIAL_EMERGENCY = 10001; public static final long SEND_SMS_TIMEOUT_IN_MS = 30000; public smdk4x12QComRIL(Context context, int networkModes, int cdmaSubscription) { @@ -562,10 +561,6 @@ public class smdk4x12QComRIL extends RIL implements CommandsInterface { @Override public void dial(String address, int clirMode, UUSInfo uusInfo, Message result) { - if (PhoneNumberUtils.isEmergencyNumber(address)) { - dialEmergencyCall(address, clirMode, result); - return; - } RILRequest rr = RILRequest.obtain(RIL_REQUEST_DIAL, result); rr.mParcel.writeString(address); @@ -634,21 +629,6 @@ public class smdk4x12QComRIL extends RIL implements CommandsInterface { } } - private void - dialEmergencyCall(String address, int clirMode, Message result) { - RILRequest rr; - Rlog.v(RILJ_LOG_TAG, "Emergency dial: " + address); - - rr = RILRequest.obtain(RIL_REQUEST_DIAL_EMERGENCY, result); - rr.mParcel.writeString(address + "/"); - rr.mParcel.writeInt(clirMode); - rr.mParcel.writeInt(0); // UUS information is absent - - if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest)); - - send(rr); - } - // This call causes ril to crash the socket, stopping further communication @Override public void -- cgit v1.2.3