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:
parent
04583fa95a
commit
8f96ae3423
13
rw-system.sh
13
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
|
setprop persist.sys.phh.radio.use_old_mnc_format true
|
||||||
fi
|
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 oppo.camera.packname com.oppo.camera
|
||||||
setprop sys.phh.xx.brand realme
|
setprop sys.phh.xx.brand realme
|
||||||
fi
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user