smartpa_params: Fix audio for Umidigi X and Gome U9

This commit is contained in:
Alberto Ponces 2021-12-29 19:57:34 +00:00
parent 62216987bc
commit 95cdb160d5
6 changed files with 27 additions and 0 deletions

View File

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

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