Permalink
Browse files

Fix for Signal bars on Samsung devices

Sometimes the CDMA ecio value is sent as a negative integer where we would expect a positive.
This causes SignalStrength.java to mark ecio as -160 (Unknown_Signal_Strength) and making signal bar
s clear out.
This "fix" checks the ecio value and takes it absolute value if it is negative.

Confirmed working on SCH-I500 and SPH-D710

Change-Id: Ic515dd6c92193cd5db75adf5bef93ecd617a5c6a

Signed-off-by: Jesper Lundgren <koudelkaa@gmail.com>
  • Loading branch information...
1 parent 1065622 commit 6249490dd529667db1a373f79ff808e86e937d99 @sbrissen sbrissen committed with May 25, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 telephony/java/com/android/internal/telephony/SamsungRIL.java
@@ -845,10 +845,13 @@ public SamsungRIL(Context context, int networkMode, int cdmaSubscription) {
response[i] = -1;
}
- if (mIsSamsungCdma)
+ if (mIsSamsungCdma){
+ if(response[3] < 0){
+ response[3] = -response[3];
+ }
// Framework takes care of the rest for us.
return response;
-
+ }
/* Matching Samsung signal strength to asu.
Method taken from Samsungs cdma/gsmSignalStateTracker */
if(mSignalbarCount)

0 comments on commit 6249490

Please sign in to comment.