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

Commit 58c59233 authored by Steve Kondik's avatar Steve Kondik
Browse files

telephony: Add support for additional emergency numbers

 * Some devices intended for international sale do not return proper
   emergency numbers in the ril.ecclist property.
 * Add support for a static list of emergency numbers to be appended
   to the list supplied by the radio.
 * Set "ro.ril.ext.ecclist" to use this.

Change-Id: Ibe9cd26bf0b6a31453394efd55fea622b8832c11
parent 749fd726
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1711,6 +1711,15 @@ public class PhoneNumberUtils
            numbers = numbers + SystemProperties.get(ecclist);
        }

        // Additional emergency numbers can be set by a system property
        String additionalEcclist = SystemProperties.get("ro.ril.ext.ecclist", null);
        if (!TextUtils.isEmpty(additionalEcclist)) {
            if (!TextUtils.isEmpty(numbers)) {
                numbers = numbers + ",";
            }
            numbers = numbers + additionalEcclist;
        }

        if (TextUtils.isEmpty(numbers)) {
            // then read-only ecclist property since old RIL only uses this
            numbers = SystemProperties.get("ro.ril.ecclist");