From 57ab791236b0ae019e6f7d1350e59a7f846bddb7 Mon Sep 17 00:00:00 2001 From: basamaryan Date: Mon, 24 Jun 2024 17:12:22 +0200 Subject: [PATCH] sm6150-common: Add new QCRIL database Change-Id: I9a62c2185a436284f91da83e6ac53552cf42862a --- .../upgrade/40_version_update_ecc_table.sql | 26 +++++++++++++++++++ sm6150-common-vendor.mk | 1 + 2 files changed, 27 insertions(+) create mode 100644 proprietary/vendor/radio/qcril_database/upgrade/40_version_update_ecc_table.sql diff --git a/proprietary/vendor/radio/qcril_database/upgrade/40_version_update_ecc_table.sql b/proprietary/vendor/radio/qcril_database/upgrade/40_version_update_ecc_table.sql new file mode 100644 index 0000000..8c1747b --- /dev/null +++ b/proprietary/vendor/radio/qcril_database/upgrade/40_version_update_ecc_table.sql @@ -0,0 +1,26 @@ +/* + Copyright (c) 2023 Qualcomm Technologies, Inc. + All Rights Reserved. + Confidential and Proprietary - Qualcomm Technologies, Inc. +*/ + +BEGIN TRANSACTION; +INSERT OR REPLACE INTO qcril_properties_table (property, value) VALUES ('qcrildb_version', 40); + + +DELETE FROM qcril_emergency_source_hard_mcc_table where MCC = '240'; +DELETE FROM qcril_emergency_source_mcc_table where MCC = '240'; + +INSERT INTO qcril_emergency_source_hard_mcc_table VALUES('240','112','',''); +INSERT INTO qcril_emergency_source_hard_mcc_table VALUES('240','911','',''); +INSERT INTO qcril_emergency_source_hard_mcc_table VALUES('240','000','',''); +INSERT INTO qcril_emergency_source_hard_mcc_table VALUES('240','08','',''); +INSERT INTO qcril_emergency_source_hard_mcc_table VALUES('240','110','',''); +INSERT INTO qcril_emergency_source_hard_mcc_table VALUES('240','118','',''); +INSERT INTO qcril_emergency_source_hard_mcc_table VALUES('240','119','',''); +INSERT INTO qcril_emergency_source_hard_mcc_table VALUES('240','999','',''); + +INSERT INTO qcril_emergency_source_mcc_table VALUES('240','911','',''); +INSERT INTO qcril_emergency_source_mcc_table VALUES('240','112','',''); + +COMMIT TRANSACTION; diff --git a/sm6150-common-vendor.mk b/sm6150-common-vendor.mk index 64afee0..d3d96cc 100644 --- a/sm6150-common-vendor.mk +++ b/sm6150-common-vendor.mk @@ -91,6 +91,7 @@ PRODUCT_COPY_FILES += \ vendor/xiaomi/sm6150-common/proprietary/vendor/radio/qcril_database/upgrade/38_version_update_ecc_table.sql:$(TARGET_COPY_OUT_VENDOR)/radio/qcril_database/upgrade/38_version_update_ecc_table.sql \ vendor/xiaomi/sm6150-common/proprietary/vendor/radio/qcril_database/upgrade/39_version_update_ecc_table.sql:$(TARGET_COPY_OUT_VENDOR)/radio/qcril_database/upgrade/39_version_update_ecc_table.sql \ vendor/xiaomi/sm6150-common/proprietary/vendor/radio/qcril_database/upgrade/3_version_update_wps_config.sql:$(TARGET_COPY_OUT_VENDOR)/radio/qcril_database/upgrade/3_version_update_wps_config.sql \ + vendor/xiaomi/sm6150-common/proprietary/vendor/radio/qcril_database/upgrade/40_version_update_ecc_table.sql:$(TARGET_COPY_OUT_VENDOR)/radio/qcril_database/upgrade/40_version_update_ecc_table.sql \ vendor/xiaomi/sm6150-common/proprietary/vendor/radio/qcril_database/upgrade/4_version_update_ecc_table.sql:$(TARGET_COPY_OUT_VENDOR)/radio/qcril_database/upgrade/4_version_update_ecc_table.sql \ vendor/xiaomi/sm6150-common/proprietary/vendor/radio/qcril_database/upgrade/5_version_update_ecc_table.sql:$(TARGET_COPY_OUT_VENDOR)/radio/qcril_database/upgrade/5_version_update_ecc_table.sql \ vendor/xiaomi/sm6150-common/proprietary/vendor/radio/qcril_database/upgrade/6_version_update_ecc_table.sql:$(TARGET_COPY_OUT_VENDOR)/radio/qcril_database/upgrade/6_version_update_ecc_table.sql