Skip to content

Commit

Permalink
poplar: Add Dual SIM modem configs and readd more init props
Browse files Browse the repository at this point in the history
ro.telephony.default_network is only set on OEM on single SIM device
so we need to set it in init for Dual SIM.

Also set it for single SIM in case not every OEM image sets it.

Conditionally set persist.vendor.radio.block_allow_data.

Change-Id: I257c1a66bb6a986f7334eac200144ca89bb131ed
  • Loading branch information
Myself5 committed Aug 9, 2020
1 parent cb4b4ae commit 34bd7e7
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
6 changes: 5 additions & 1 deletion init_poplar/init_poplar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,18 @@ void target_load_properties()
std::string model = GetProperty("ro.product.vendor.name", "");

if (model == "G8342") {
property_override("ro.semc.product.model", "G8342");
property_override("persist.multisim.config", "dsds");
property_override("persist.radio.multisim.config", "dsds");
property_override("ro.semc.product.model", "G8342");
property_override("ro.telephony.default_network", "9,0");
property_override("persist.vendor.radio.block_allow_data", "0");
property_override_dual("ro.product.model", "ro.vendor.product.model", "G8342");
property_override_dual("ro.product.name", "ro.vendor.product.name", "poplar_dsds");
property_override_dual("ro.product.device", "ro.vendor.product.device", "poplar_dsds");
} else {
property_override("ro.semc.product.model", "G8341");
property_override("ro.telephony.default_network", "9");
property_override("persist.vendor.radio.block_allow_data", "1");
property_override_dual("ro.product.model", "ro.vendor.product.model", "G8341");
property_override_dual("ro.product.name", "ro.vendor.product.name", "poplar");
property_override_dual("ro.product.device", "ro.vendor.product.device", "poplar");
Expand Down
39 changes: 39 additions & 0 deletions proprietary-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,45 @@ etc/customization/modem/amss_fsg_poplar_vodafone_turkey_tar.mbn
etc/customization/modem/amss_fsg_poplar_vodafone_turkey_volte_vowifi_tar.mbn
etc/customization/modem/amss_fsg_poplar_vodafone_uk_tar.mbn
etc/customization/modem/amss_fsg_poplar_vodafone_uk_volte_vowifi_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_airtel_in_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_ais_th_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_asiapacific_tw_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_att_us_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_beeline_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_china_mobile_cn_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_china_mobile_hk_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_cht_tw_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_csl_hk_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_ctm_mo_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_dtac_th_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_du_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_etisalat_ae_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_fareastone_tw_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_gteb_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_hutch_hk_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_ir51_ir92_ims_gte_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_ir51_ir92_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_m1_sg_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_megafon_ru_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_mts_ru_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_orange_poland_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_pccw_hk_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_reliance_com_in_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_reliance_jio_in_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_singtel_sg_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_smartone_hk_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_starhub_sg_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_stc_sa_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_tele2_ru_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_telkom_za_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_tmobile_us_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_tmobile_us_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_truemove_th_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_tstar_tw_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_twm_tw_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_verizon_us_ims_tar.mbn
etc/customization/modem/amss_fsg_poplar_dsds_vodafone_in_ims_tar.mbn

# LOCATION
etc/permissions/com.qti.location.sdk.xml
Expand Down
3 changes: 0 additions & 3 deletions vendor_prop.mk

This file was deleted.

0 comments on commit 34bd7e7

Please sign in to comment.