sm7325-common: Ensure multisim property gets set at early stage

Change-Id: I8066dbd0a466f008ec1ce3144b76922fe1b7e750
This commit is contained in:
dianlujitao 2022-09-03 13:57:37 +08:00 committed by Marc Bourgoin
parent a614dab9d5
commit 3605aa48b1
3 changed files with 10 additions and 7 deletions

View File

@ -359,6 +359,10 @@ set_ro_hw_properties_upgrade()
utag_value=$(cat $utag_path/ascii)
setprop $prop_prefix$utag_name "$utag_value"
notice "ro.vendor.hw.$utag_name='$utag_value'"
if [ "$utag_name" = "dualsim" ] && [ "$utag_value" = "true" ]; then
setprop persist.vendor.radio.multisim.config dsds
fi
done
}
@ -384,6 +388,10 @@ set_ro_hw_properties()
utag_value=$(cat $utag_path/ascii)
setprop $prop_prefix$utag_name "$utag_value"
notice "$prop_prefix$utag_name='$utag_value'"
if [ "$utag_name" = "dualsim" ] && [ "$utag_value" = "true" ]; then
setprop persist.vendor.radio.multisim.config dsds
fi
done
}

View File

@ -40,6 +40,7 @@ on early-init
setprop ro.vendor.boot.bl_state ${ro.boot.bl_state}
setprop ro.vendor.boot.serialno ${ro.boot.serialno}
setprop ro.vendor.zygote ${ro.zygote}
setprop persist.radio.multisim.config ${persist.vendor.radio.multisim.config}
# Make sure ro.boot.product.hardware.sku is set before hwservicemanager startup.
setprop ro.boot.product.hardware.sku ${ro.vendor.product.hardware.sku.variant}
@ -312,13 +313,6 @@ on property:sys.boot_completed=1 && property:ro.vendor.zram.product_swapon=""
write /proc/sys/vm/swappiness 100
setprop sys.sysctl.swappiness 100
# translate MMI property in order to keep the consistent with QCOM
on property:ro.vendor.hw.dualsim=true
setprop persist.radio.multisim.config dsds
on property:ro.vendor.hw.dualsim=false
setprop persist.radio.multisim.config ""
on property:sys.sysctl.swappiness=*
write /proc/sys/vm/swappiness ${sys.sysctl.swappiness}

View File

@ -13,6 +13,7 @@ allow vendor_init_hw vendor_toolbox_exec:file rx_file_perms;
set_prop(vendor_init_hw, vendor_mot_hw_prop)
set_prop(vendor_init_hw, vendor_mot_touch_prop)
set_prop(vendor_init_hw, vendor_radio_prop)
allow vendor_init_hw vendor_file:file execute_no_trans;