dre: Add migration to turn off persist.vendor.radio.poweron_opt

If this value 1 it breaks SMS receiving.

Change-Id: I7f56ecaac51abb6525c6022d92eac1c285ab0688
This commit is contained in:
Anand S 2025-02-01 00:38:50 +05:30 committed by Nick Reuter
parent 3a3d3af33f
commit 038c148153
3 changed files with 30 additions and 0 deletions

View file

@ -3,12 +3,20 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// //
filegroup {
name: "rildb_config_sql_files",
srcs: [
"config/14.1_config.sql",
],
}
genrule { genrule {
name: "qcril_config_database", name: "qcril_config_database",
enabled: true, enabled: true,
srcs: [ srcs: [
"//vendor/oneplus/dre:proprietary_rildb_other_sql_files", "//vendor/oneplus/dre:proprietary_rildb_other_sql_files",
"//vendor/oneplus/dre:proprietary_rildb_config_sql_files", "//vendor/oneplus/dre:proprietary_rildb_config_sql_files",
":rildb_config_sql_files",
], ],
tools: [ tools: [
"generate_qcril_db", "generate_qcril_db",
@ -23,4 +31,7 @@ prebuilt_etc {
src: ":qcril_config_database", src: ":qcril_config_database",
relative_install_path: "qcril_database", relative_install_path: "qcril_database",
vendor: true, vendor: true,
required: [
"14.1_config.sql",
],
} }

View file

@ -0,0 +1,8 @@
/*
Copyright (C) 2025 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
*/
CREATE TABLE IF NOT EXISTS qcril_properties_table (property TEXT PRIMARY KEY NOT NULL, def_val TEXT, value TEXT);
INSERT OR REPLACE INTO qcril_properties_table(property, def_val) VALUES('qcrildb_version',14.1);
UPDATE qcril_properties_table SET def_val="0" WHERE property="persist.vendor.radio.poweron_opt";

View file

@ -0,0 +1,11 @@
//
// SPDX-FileCopyrightText: 2025 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
prebuilt_etc {
name: "14.1_config.sql",
src: "14.1_config.sql",
relative_install_path: "qcril_database/upgrade/config",
vendor: true,
}