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

This commit is contained in:
Pierre-Hugues Husson 2020-03-06 18:41:32 +01:00
parent 04583fa95a
commit 8f96ae3423

View File

@ -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