From cd327cc850c348f65a1674e7b1c0ab6df6197c04 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Tue, 28 Apr 2020 16:03:33 +0200 Subject: [PATCH] More props and files to override to fake real firmware for camera --- rw-system.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index e80e570..e02caa6 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -442,7 +442,7 @@ fi mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true -for f in /vendor/lib{,64}/hw/com.qti.chi.override.so;do +for f in /vendor/lib{,64}/hw/com.qti.chi.override.so /vendor/lib{,64}/libVD*;do [ ! -f $f ] && continue # shellcheck disable=SC2010 ctxt="$(ls -lZ "$f" | grep -oE 'u:object_r:[^:]*:s0')" @@ -452,12 +452,14 @@ for f in /vendor/lib{,64}/hw/com.qti.chi.override.so;do sed -i \ -e 's/ro.product.manufacturer/sys.phh.xx.manufacturer/g' \ -e 's/ro.product.brand/sys.phh.xx.brand/g' \ + -e 's/ro.product.model/sys.phh.xx.model/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)" + setprop sys.phh.xx.model "$(getprop ro.product.vendor.model)" done if [ -n "$(getprop ro.boot.product.hardware.sku)" ] && [ -z "$(getprop ro.hw.oemName)" ];then