diff --git a/base.mk b/base.mk index 3655b72..3a5ebc9 100644 --- a/base.mk +++ b/base.mk @@ -209,4 +209,11 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ oplus-alert-slider +PRODUCT_COPY_FILES += \ + device/phh/treble/empty:system/etc/smartpa_params/empty \ + device/phh/treble/proprietary-files/gome/fs16xx_01s_left.preset:system/phh/gome/fs16xx_01s_left.preset \ + device/phh/treble/proprietary-files/gome/fs16xx_01s_mono.preset:system/phh/gome/fs16xx_01s_mono.preset \ + device/phh/treble/proprietary-files/gome/fs16xx_01s_right.preset:system/phh/gome/fs16xx_01s_right.preset \ + device/phh/treble/proprietary-files/umidigi/fs16xx_01s_mono.preset:system/phh/umidigi/fs16xx_01s_mono.preset + include build/make/target/product/gsi_release.mk diff --git a/proprietary-files/gome/fs16xx_01s_left.preset b/proprietary-files/gome/fs16xx_01s_left.preset new file mode 100644 index 0000000..4da4434 Binary files /dev/null and b/proprietary-files/gome/fs16xx_01s_left.preset differ diff --git a/proprietary-files/gome/fs16xx_01s_mono.preset b/proprietary-files/gome/fs16xx_01s_mono.preset new file mode 100644 index 0000000..39c23ed Binary files /dev/null and b/proprietary-files/gome/fs16xx_01s_mono.preset differ diff --git a/proprietary-files/gome/fs16xx_01s_right.preset b/proprietary-files/gome/fs16xx_01s_right.preset new file mode 100644 index 0000000..e0c29c5 Binary files /dev/null and b/proprietary-files/gome/fs16xx_01s_right.preset differ diff --git a/proprietary-files/umidigi/fs16xx_01s_mono.preset b/proprietary-files/umidigi/fs16xx_01s_mono.preset new file mode 100644 index 0000000..cf5291b Binary files /dev/null and b/proprietary-files/umidigi/fs16xx_01s_mono.preset differ diff --git a/rw-system.sh b/rw-system.sh index 09469e7..ee4df70 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -1017,3 +1017,23 @@ fi if getprop ro.odm.build.fingerprint |grep -q Huawei/Chicago/Chicago_VTR;then setprop ctl.stop aptouch fi + +if getprop ro.vendor.build.fingerprint | grep -iq -e GOME/GOME_U9; then + cp -a /system/etc/smartpa_params /mnt/phh/smartpa_params + cp /system/phh/gome/fs16xx_01s_left.preset /mnt/phh/smartpa_params/fs16xx_01s_left.preset + cp /system/phh/gome/fs16xx_01s_mono.preset /mnt/phh/smartpa_params/fs16xx_01s_mono.preset + cp /system/phh/gome/fs16xx_01s_right.preset /mnt/phh/smartpa_params/fs16xx_01s_right.preset + chmod 0644 /mnt/phh/smartpa_params/fs16xx_01s_left.preset + chmod 0644 /mnt/phh/smartpa_params/fs16xx_01s_mono.preset + chmod 0644 /mnt/phh/smartpa_params/fs16xx_01s_right.preset + mount -o bind /mnt/phh/smartpa_params /system/etc/smartpa_params + restorecon -R /system/etc/smartpa_params +fi + +if getprop ro.vendor.build.fingerprint | grep -iq -e UMIDIGI/UMIDIGI_X; then + cp -a /system/etc/smartpa_params /mnt/phh/smartpa_params + cp /system/phh/umidigi/fs16xx_01s_mono.preset /mnt/phh/smartpa_params/fs16xx_01s_mono.preset + chmod 0644 /mnt/phh/smartpa_params/fs16xx_01s_mono.preset + mount -o bind /mnt/phh/smartpa_params /system/etc/smartpa_params + restorecon -R /system/etc/smartpa_params +fi