Android에는 데이터베이스 버전 전화번호와 응급 서비스 카테고리(예: 경찰, 화재, 구급차)로 분류된 국가별 긴급 전화번호 목록으로 구성된 긴급 전화번호 데이터베이스가 포함되어 있습니다. 이 데이터베이스는 Android에서 긴급 전화번호를 식별하고 제공하기 위한 소스 중 하나입니다.
그림 1. Android 긴급 전화번호 데이터베이스 시스템
AOSP 파일
AOSP는 packages/services/Telephony/ecc/output/eccdata에 있는 긴급 전화번호 데이터베이스 파일을 제공합니다. 데이터베이스의 콘텐츠는 packages/services/Telephony/ecc/input/eccdata.txt에서 확인할 수 있습니다.
다운로드한 데이터베이스
Android 11 이상부터 Android는 다운로드한 긴급 전화번호 데이터베이스를 지원합니다. 이 데이터베이스는 OTA 업데이트를 통해 업데이트할 수 있습니다. 이 기능을 통해 기기는 최신 버전의 데이터베이스 및 최신 정보에 액세스할 수 있습니다.
정보 업데이트
긴급 전화번호 데이터베이스에 정보를 추가하거나 업데이트하려면 네트워킹 구성요소의 버그를 제출하여 요청 세부정보를 제공하세요.
요청이 승인되면 Android에서 데이터베이스를 업데이트할 수 있습니다. 그러면 기기로 다운로드할 수 있습니다. 또한 Android는 구성된 긴급 전화번호 데이터베이스 변경사항을 AOSP에 게시할 수도 있습니다.
구현
긴급 전화번호 데이터베이스 구현
긴급 전화번호 데이터베이스를 구현하는 방법은 다음과 같습니다.
긴급 전화번호 데이터베이스 형식을 따르는 텍스트 파일을 구성합니다(packages/services/Telephony/ecc/conversion_toolset_v1/proto/protobuf_ecc_data.proto).
다운로드한 긴급 전화번호 데이터베이스의 업데이트를 사용 설정하려면 OTA 업데이트 메커니즘을 채택하여 서버에서 제공한 긴급 전화번호 데이터베이스를 다운로드하도록 기기를 트리거합니다. Android에서 /data/misc/emergencynumberdb 같은 파티션을 사용하여, 다운로드한 긴급 전화번호 데이터베이스를 읽고 써야 합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2024-05-02(UTC)
[null,null,["최종 업데이트: 2024-05-02(UTC)"],[],[],null,["# Android emergency number database\n\nAndroid includes an emergency number database that contains a database version\nnumber and a list of emergency phone numbers with emergency service categories\n(for example, police, fire, ambulance) and a corresponding country. This\ndatabase is one of the sources for identifying and providing emergency numbers\nin Android.\n**Figure 1.** Android emergency number database system\n\nAOSP file\n---------\n\nAOSP provides an emergency number database file located in\n`packages/services/Telephony/ecc/output/eccdata`. The content of the database\ncan be read in `packages/services/Telephony/ecc/input/eccdata.txt`.\n\nDownloaded database\n-------------------\n\nFrom Android 11 and higher, Android supports a\ndownloaded emergency number\ndatabase that can be updated through OTA updates. This ensures that devices have\naccess to the latest version of the database and the latest information.\n\nUpdate information\n------------------\n\nTo add or update information in the emergency number database,\nprovide the details of your request by\n[filing a bug in the Networking component](https://issuetracker.google.com/issues/new?component=192634).\n\nIf your request is approved, Android may update the database and you may then\ndownload to devices. Android may also publish the changes to the configured\nemergency number database in AOSP.\n\nImplementation\n--------------\n\n### Implement an emergency number database\n\nTo implement an emergency number database:\n\n1. Construct a text file that follows the emergency number database format: `packages/services/Telephony/ecc/conversion_toolset_v1/proto/protobuf_ecc_data.proto`.\n2. Convert the text file to an emergency number database file using the conversion tool at [`packages/services/Telephony/ecc/README.md`](https://android.googlesource.com/platform/packages/services/Telephony/+/refs/heads/android16-release/ecc/README.md).\n\n### Enable updates\n\nTo enable updates to the downloaded emergency number database, adopt an OTA\nupdate mechanism to trigger the device to download the emergency number database\navailable from your server. Use a partition, such as\n`/data/misc/emergencynumberdb`, to read and write the downloaded emergency\nnumber database in Android.\n\nTo implement the downloaded emergency number database, use the following system\nAPIs:\n\n- [`TelephonyManager.notifyOtaEmergencyNumberDbInstalled`](https://android.googlesource.com/platform/frameworks/base/+/refs/heads/android16-release/telephony/java/android/telephony/TelephonyManager.java#11489)\n- [`ConfigUpdate.ACTION_UPDATE_EMERGENCY_NUMBER_DB`](https://android.googlesource.com/platform/frameworks/base/+/refs/heads/android16-release/core/java/android/os/ConfigUpdate.java#128)\n\nValidation\n----------\n\nTo test your implementation of the downloaded emergency number database, make\nsure the downloaded database is returned as a part of the result of\n[`getEmergencyNumberList`](https://developer.android.com/reference/android/telephony/TelephonyManager#getEmergencyNumberList()),\nand the numbers are identified as emergency numbers when\n[`isEmergencyNumber`](https://developer.android.com/reference/android/telephony/TelephonyManager#isEmergencyNumber(java.lang.String))\nis called."]]