diff options
author | Shareef Ali <shareefalis@cyanogenmod.org> | 2013-06-28 17:36:02 -0500 |
---|---|---|
committer | Shareef Ali <shareefalis@cyanogenmod.org> | 2013-06-28 17:38:22 -0500 |
commit | 769f93cddca0b70ab9cb8895bb08645c9db8ccd7 (patch) | |
tree | 186421431a144ce4482ffea4c07ec176ed5960ee | |
parent | 2d29503e883845cc053cf4f3d8c634720e9bf8b2 (diff) | |
download | frameworks_opt_telephony-769f93cddca0b70ab9cb8895bb08645c9db8ccd7.zip frameworks_opt_telephony-769f93cddca0b70ab9cb8895bb08645c9db8ccd7.tar.gz frameworks_opt_telephony-769f93cddca0b70ab9cb8895bb08645c9db8ccd7.tar.bz2 |
SamsungQualcommRIL: support google play edition blobs
Change-Id: Ib9836c44271f84d669d4a0166e8367d99646f88f
-rw-r--r-- | src/java/com/android/internal/telephony/SamsungQualcommRIL.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/com/android/internal/telephony/SamsungQualcommRIL.java b/src/java/com/android/internal/telephony/SamsungQualcommRIL.java index 997cf01..61b2b43 100644 --- a/src/java/com/android/internal/telephony/SamsungQualcommRIL.java +++ b/src/java/com/android/internal/telephony/SamsungQualcommRIL.java @@ -63,6 +63,7 @@ public class SamsungQualcommRIL extends RIL implements CommandsInterface { private String homeOperator= SystemProperties.get("ro.cdma.home.operator.numeric"); private String operator= SystemProperties.get("ro.cdma.home.operator.alpha"); private boolean oldRilState = needsOldRilFeature("exynos4RadioState"); + private boolean googleEditionSS = needsOldRilFeature("googleEditionSS"); public SamsungQualcommRIL(Context context, int networkMode, int cdmaSubscription) { super(context, networkMode, cdmaSubscription); @@ -169,7 +170,9 @@ public class SamsungQualcommRIL extends RIL implements CommandsInterface { response[4] %= 256; // RIL_LTE_SignalStrength - if (response[7] == 99) { + if (googleEditionSS && !isGSM){ + response[8] = response[2]; + }else if (response[7] == 99) { // If LTE is not enabled, clear LTE results // 7-11 must be -1 for GSM signal strength to be used (see // frameworks/base/telephony/java/android/telephony/SignalStrength.java) @@ -180,7 +183,6 @@ public class SamsungQualcommRIL extends RIL implements CommandsInterface { }else{ // lte is gsm on samsung/qualcomm cdma stack response[7] &= 0xff; } - return new SignalStrength(response[0], response[1], response[2], response[3], response[4], response[5], response[6], response[7], response[8], response[9], response[10], response[11], isGSM); } |