From 5874b86cafb2f6ece6fb7e322723784041fb7400 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sat, 19 Feb 2022 09:29:46 -0500 Subject: [PATCH] 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 --- rw-system.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 5e275af..3ee53dd 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -1043,3 +1043,7 @@ fi if getprop ro.vendor.build.fingerprint |grep -iq motorola/kane;then setprop persist.sys.bt.esco_transport_unit_size 16 fi + +if [ -f /vendor/bin/ccci_rpcd ];then + setprop debug.phh.props.ccci_rpcd vendor +fi