libril: Force RADIO_TECH_1xRTT on lteOnCdmaDevice
authorMatt Mower <mowerm@gmail.com>
Tue, 8 Nov 2016 13:28:00 +0000 (07:28 -0600)
committerdeadman96385 <seanhoyt963@gmail.com>
Sun, 17 Sep 2017 13:21:17 +0000 (08:21 -0500)
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

index 4478ea22d683c8a40b242df1d57c3412b6d8334d..60ee15333f1b879259b85e954b76be4d12f41e47 100755 (executable)
@@ -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;
     }