From 913945faa9841e192c45ed6c1d9a468cd0874de2 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Tue, 8 Nov 2016 07:28:00 -0600 Subject: [PATCH] libril: Force RADIO_TECH_1xRTT on lteOnCdmaDevice Ensure CDMA variants have CDMALTEPhone objects setup in frameworks instead of GSM. This resolves issues with *- dialing and +1 dialing on Verizon Wireless, for example. Credit to Nolan Burchfield for identifying the issue. Change-Id: Ib5188bbf1bbed290962c0e236af96c2f1639f954 --- ril/libril/ril.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ril/libril/ril.cpp b/ril/libril/ril.cpp index 4478ea2..60ee153 100755 --- a/ril/libril/ril.cpp +++ b/ril/libril/ril.cpp @@ -1788,7 +1788,14 @@ static void dispatchVoiceRadioTech(Parcel& p, RequestInfo *pRI) { // RILs that support RADIO_STATE_ON should support this request. if (RADIO_STATE_ON == state) { - dispatchVoid(p, pRI); + if (property_get_bool("telephony.lteOnCdmaDevice", false)) { + RLOGD("dispatchVoiceRadioTech: lteOnCdmaDevice, forcing RADIO_TECH_1xRTT"); + voiceRadioTech = RADIO_TECH_1xRTT; + RIL_onRequestComplete(pRI, RIL_E_SUCCESS, &voiceRadioTech, + sizeof(int)); + } else { + dispatchVoid(p, pRI); + } return; } -- 2.20.1