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

Commit ad48bd9f authored by Zheng Zhang's avatar Zheng Zhang
Browse files

GnssLocationProvider: modify "=" restriction to support URL with "=" inside

Bug: 67846626
Change-Id: I0a1f2de573bfd5e2043d6a24c91564817186074b
parent 4a09e4c1
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -669,9 +669,11 @@ public class GnssLocationProvider implements LocationProviderInterface {
        for (String item : configValues) {
            if (DEBUG) Log.d(TAG, "GpsParamsResource: " + item);
            // We need to support "KEY =", but not "=VALUE".
            String[] split = item.split("=");
            if (split.length == 2) {
                properties.setProperty(split[0].trim().toUpperCase(), split[1]);
            int index = item.indexOf("=");
            if (index > 0 && index + 1 < item.length()) {
                String key = item.substring(0, index);
                String value = item.substring(index + 1);
                properties.setProperty(key.trim().toUpperCase(), value);
            } else {
                Log.w(TAG, "malformed contents: " + item);
            }