diff options
author | Dan Pasanen <dan.pasanen@gmail.com> | 2013-03-11 13:38:24 -0500 |
---|---|---|
committer | Dan Pasanen <dan.pasanen@gmail.com> | 2013-03-11 13:42:35 -0500 |
commit | 97cabb4543823fd989f4aa371fca41b1aeb07278 (patch) | |
tree | 37546b2d5c3d7f747396ccbc14bfde5c8e55ff59 | |
parent | a34c63e1842f018f7d318ba7887ec2500c07658c (diff) | |
download | frameworks_opt_telephony-97cabb4543823fd989f4aa371fca41b1aeb07278.zip frameworks_opt_telephony-97cabb4543823fd989f4aa371fca41b1aeb07278.tar.gz frameworks_opt_telephony-97cabb4543823fd989f4aa371fca41b1aeb07278.tar.bz2 |
PhoneProxy: Add a prop to enable always creating of CDMALTEPhone
Current Motorola OMAP4 devices need this in order to function properly
Will need to enable telephony.rilV7NeedsCDMALTEPhone prop on these devices
Change-Id: I22ef7688e422986d63a0cced1fb2e872c6e01c80
-rw-r--r-- | src/java/com/android/internal/telephony/PhoneProxy.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/com/android/internal/telephony/PhoneProxy.java b/src/java/com/android/internal/telephony/PhoneProxy.java index 620fcc5..23ee2aa 100644 --- a/src/java/com/android/internal/telephony/PhoneProxy.java +++ b/src/java/com/android/internal/telephony/PhoneProxy.java @@ -55,6 +55,8 @@ public class PhoneProxy extends Handler implements Phone { private boolean mResetModemOnRadioTechnologyChange = false; private int mRilVersion; + private boolean mRilV7NeedsCDMALTEPhone = SystemProperties.getBoolean( + "telephony.rilV7NeedsCDMALTEPhone", false); private static final int EVENT_VOICE_RADIO_TECH_CHANGED = 1; private static final int EVENT_RADIO_ON = 2; @@ -145,7 +147,8 @@ public class PhoneProxy extends Handler implements Phone { private void updatePhoneObject(int newVoiceRadioTech) { if (mActivePhone != null) { - if(mRilVersion == 6 && getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) { + if((mRilVersion == 6 && getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) || + mRilV7NeedsCDMALTEPhone) { /* * On v6 RIL, when LTE_ON_CDMA is TRUE, always create CDMALTEPhone * irrespective of the voice radio tech reported. |