Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57b1db5f authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

RIL: Support signal strength format from v3 vendor RILs

Enable by setting property ro.telephony.ril.v3=1
parent de78c41f
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -3232,11 +3232,18 @@ public class RIL extends BaseCommands implements CommandsInterface {
        int numInts = 12;
        int response[];

        int oldRil = SystemProperties.getInt("ro.telephony.ril.v3",
                0);

        /* TODO: Add SignalStrength class to match RIL_SignalStrength */
        response = new int[numInts];
        for (int i = 0 ; i < numInts ; i++) {
            if (oldRil!=0 && i>6 && i<12) {
                response[i] = -1;
            } else {
                response[i] = p.readInt();
            }
        }

        return response;
    }