From 1e340140bf5dad56000765d870bb4d55ec2d8862 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sat, 29 Feb 2020 16:56:36 +0100 Subject: [PATCH] On Realme devices, trick HAL into exposing all cameras --- rw-system.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index e55b5be..f39a477 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -420,11 +420,13 @@ for f in /vendor/lib{,64}/hw/com.qti.chi.override.so;do cp -a "$f" "/mnt/phh/$b" sed -i \ -e 's/ro.product.manufacturer/sys.phh.xx.manufacturer/g' \ + -e 's/ro.product.brand/sys.phh.xx.brand/g' \ "/mnt/phh/$b" chcon "$ctxt" "/mnt/phh/$b" mount -o bind "/mnt/phh/$b" "$f" setprop sys.phh.xx.manufacturer "$(getprop ro.product.vendor.manufacturer)" + setprop sys.phh.xx.brand "$(getprop ro.product.vendor.brand)" done if [ -n "$(getprop ro.boot.product.hardware.sku)" ] && [ -z "$(getprop ro.hw.oemName)" ];then @@ -580,3 +582,8 @@ if getprop ro.vendor.build.fingerprint | grep -iq \ -e xiaomi/polaris -e xiaomi/whyred; then setprop persist.sys.phh.radio.use_old_mnc_format true fi + +if getprop ro.build.overlay.deviceid |grep -E '^RMX';then + setprop oppo.camera.packname com.oppo.camera + setprop sys.phh.xx.brand realme +fi