Merge pull request #290 from ponces/android-12.0-smartpa_params
smartpa_params: Fix audio for Umidigi X and Gome U9
This commit is contained in:
commit
cef4fa61fd
7
base.mk
7
base.mk
@ -209,4 +209,11 @@ PRODUCT_PACKAGES += \
|
|||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
oplus-alert-slider
|
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
|
include build/make/target/product/gsi_release.mk
|
||||||
|
BIN
proprietary-files/gome/fs16xx_01s_left.preset
Normal file
BIN
proprietary-files/gome/fs16xx_01s_left.preset
Normal file
Binary file not shown.
BIN
proprietary-files/gome/fs16xx_01s_mono.preset
Normal file
BIN
proprietary-files/gome/fs16xx_01s_mono.preset
Normal file
Binary file not shown.
BIN
proprietary-files/gome/fs16xx_01s_right.preset
Normal file
BIN
proprietary-files/gome/fs16xx_01s_right.preset
Normal file
Binary file not shown.
BIN
proprietary-files/umidigi/fs16xx_01s_mono.preset
Normal file
BIN
proprietary-files/umidigi/fs16xx_01s_mono.preset
Normal file
Binary file not shown.
20
rw-system.sh
20
rw-system.sh
@ -1017,3 +1017,23 @@ fi
|
|||||||
if getprop ro.odm.build.fingerprint |grep -q Huawei/Chicago/Chicago_VTR;then
|
if getprop ro.odm.build.fingerprint |grep -q Huawei/Chicago/Chicago_VTR;then
|
||||||
setprop ctl.stop aptouch
|
setprop ctl.stop aptouch
|
||||||
fi
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user