Android includes an emergency number database that contains a database version number and a list of emergency phone numbers with emergency service categories (for example, police, fire, ambulance) and a corresponding country. This database is one of the sources for identifying and providing emergency numbers in Android.
AOSP provides an emergency number database file located in
packages/services/Telephony/ecc/output/eccdata. The content of the database
can be read in
From Android 11 and higher, Android supports a downloaded emergency number database that can be updated through OTA updates. This ensures that devices have access to the latest version of the database and the latest information.
You can add or update information in the emergency number database by submitting the following form: Emergency number database form.
If your request is approved, Android may update the database and you may then download to devices. Android may also publish the changes to the configured emergency number database in AOSP.
Implementing an emergency number database
To implement an emergency number database:
- Construct a text file that follows the emergency number database format:
- Convert the text file to an emergency number database file using the
conversion tool at
To enable updates to the downloaded emergency number database, adopt an OTA
update mechanism to trigger the device to download the emergency number database
available from your server. Use a partition, such as
/data/misc/emergencynumberdb, to read and write the downloaded emergency
number database in Android.
To implement the downloaded emergency number database, use the following system APIs:
To test your implementation of the downloaded emergency number database, make
sure the downloaded database is returned as a part of the result of
and the numbers are identified as emergency numbers when