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

Commit 93f07e20 authored by Youming Ye's avatar Youming Ye Committed by android-build-merger
Browse files

Merge "Fix property setting with failure" am: da9de2d7 am: 58be59a2

am: bab83cca

Change-Id: I7729325710e1b4b9d4fa08e719aba6021acb90d3
parents c4f3a4c3 bab83cca
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -5629,7 +5629,7 @@ public class TelephonyManager {
        if (value == null) {
            value = "";
        }

        value.replace(',', ' ');
        if (prop != null) {
            p = prop.split(",");
        }
@@ -5655,7 +5655,13 @@ public class TelephonyManager {
            }
        }

        if (propVal.length() > SystemProperties.PROP_VALUE_MAX) {
        int propValLen = propVal.length();
        try {
            propValLen = propVal.getBytes("utf-8").length;
        } catch (java.io.UnsupportedEncodingException e) {
            Rlog.d(TAG, "setTelephonyProperty: utf-8 not supported");
        }
        if (propValLen > SystemProperties.PROP_VALUE_MAX) {
            Rlog.d(TAG, "setTelephonyProperty: property too long phoneId=" + phoneId +
                    " property=" + property + " value: " + value + " propVal=" + propVal);
            return;