From 8f96ae3423951b40cea1464bcbc781c4399dccc2 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Fri, 6 Mar 2020 18:41:32 +0100 Subject: [PATCH] Set ro.separate.phone on realme devices. That is another model number, that is used like by fingerprint HAL to define the position of the Facola. Also trigger the audio speaker init for Realme U1 --- rw-system.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 6e0ac3d..6bc0e36 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -586,7 +586,18 @@ if getprop ro.vendor.build.fingerprint | grep -iq \ setprop persist.sys.phh.radio.use_old_mnc_format true fi -if getprop ro.build.overlay.deviceid |grep -E '^RMX';then +if getprop ro.build.overlay.deviceid |grep -qE '^RMX';then setprop oppo.camera.packname com.oppo.camera setprop sys.phh.xx.brand realme fi + +if [ -f /sys/firmware/devicetree/base/oppo,prjversion ];then + setprop ro.separate.soft $((0x$(od -w4 -j4 -An -tx1 /sys/firmware/devicetree/base/oppo,prjversion |tr -d ' ' |head -n 1))) +fi + +if [ -f /proc/oppoVersion/prjVersion ];then + setprop ro.separate.soft $(cat /proc/oppoVersion/prjVersion) +fi + +echo 1 > /proc/tfa98xx/oppo_tfa98xx_fw_update +