From: Matt Mower Date: Tue, 8 Nov 2016 13:28:00 +0000 (-0600) Subject: libril: Force RADIO_TECH_1xRTT on lteOnCdmaDevice X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=913945faa9841e192c45ed6c1d9a468cd0874de2;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git 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 --- 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; }