On 2026-11-22, Theo wrote:
> Nuno Silva <nuno…@invalid.invalid> wrote:
>>
>> As 911 is preferred in the US and Canada, wouldn't the Teleservice 12
>> call initiated by dialling 112 on a handset there just do a call to
>> *911*?
>>
>> Or does it really end up actually calling the number 112?
>
> According to the AOSP database:
> https://android.googlesource.com/platform/packages/services/Telephony/+/master/ecc/input/eccdata.txt
>
> for US the phone just calls 911 for fire/police/ambulance, it doesn't call 112.
> The fallback number is also 911 for any other kind of emergency. It doesn't
> call 112.
>
> If you are in, say, Uganda, the number for fire/police/ambulance is 999 and
> the fallback is 112.
>
> This is a generic database of emergency numbers rather than instructions for
> who to call in what circumstance. The system applies logic based on its
> interpretation of the database, rather than the database telling the phone
> what to do.
>
> The problem with GrapheneOS using this database:
> https://github.com/GrapheneOS/os-issue-tracker/issues/8695
> https://github.com/GrapheneOS/platform_frameworks_base/pull/479
>
> was that if numbers are missing a clear priority order in the database then
> the first number in the alphanumeric sort wins. In Switzerland, if there
> isn't a carrier-specific rule that takes precedence, 0800117117 comes before
> 112, so calls were by default going to the Transport Police number. That's
> labelled as TYPE_UNSPECIFIED so there are no clues what it is for or how to
> build a priority order for it.
Ok, that does explain the issue they're dealing with.
Overall, if you're not presenting a menu to choose from, then the
question really is whether you even need to call anything other than
112.
For presenting a menu, it seems digital cell telephony standards also
specify the ability for the phone, SIM and carrier to provide/contain
more than one emergency number, so hopefully querying the AOSP database
would go in hand with that?
--
Nuno Silva