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:
parent
748190dc78
commit
590feb3a4b
3 changed files with 30 additions and 0 deletions
|
@ -3,12 +3,20 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
filegroup {
|
||||
name: "rildb_config_sql_files",
|
||||
srcs: [
|
||||
"config/14.1_config.sql",
|
||||
],
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "qcril_config_database",
|
||||
enabled: true,
|
||||
srcs: [
|
||||
"//vendor/oneplus/dre:proprietary_rildb_other_sql_files",
|
||||
"//vendor/oneplus/dre:proprietary_rildb_config_sql_files",
|
||||
":rildb_config_sql_files",
|
||||
],
|
||||
tools: [
|
||||
"generate_qcril_db",
|
||||
|
@ -23,4 +31,7 @@ prebuilt_etc {
|
|||
src: ":qcril_config_database",
|
||||
relative_install_path: "qcril_database",
|
||||
vendor: true,
|
||||
required: [
|
||||
"14.1_config.sql",
|
||||
],
|
||||
}
|
||||
|
|
8
qcril-database/config/14.1_config.sql
Normal file
8
qcril-database/config/14.1_config.sql
Normal 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";
|
11
qcril-database/config/Android.bp
Normal file
11
qcril-database/config/Android.bp
Normal 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",
|
||||
sub_dir: "qcril_database/upgrade/config",
|
||||
vendor: true,
|
||||
}
|
Loading…
Reference in a new issue