Fake MTK's ccci_rpcd props

On Mediatek devices, modem can request ro.product.device directly to
switch hardware configuration depending on the HW it is running on.

On AOSP GSI, if the ro.product.device is "generic", it'll switch to
ro.product.vendor.device, but not when it's "phhgsi.*".
Which leads to the device not loading the proper HW config, and failing
to modem altogether (notably on Redmi 9A)

To fix this, have ccci_rpcd report vendor props instead of system props
This commit is contained in:
Pierre-Hugues Husson 2022-02-19 09:29:46 -05:00
parent a4d6f5c8d3
commit 5874b86caf

View File

@ -1043,3 +1043,7 @@ fi
if getprop ro.vendor.build.fingerprint |grep -iq motorola/kane;then if getprop ro.vendor.build.fingerprint |grep -iq motorola/kane;then
setprop persist.sys.bt.esco_transport_unit_size 16 setprop persist.sys.bt.esco_transport_unit_size 16
fi fi
if [ -f /vendor/bin/ccci_rpcd ];then
setprop debug.phh.props.ccci_rpcd vendor
fi