Add floating_feature.xml overwrite for S9/N9. Currently it declares Stereo feature
This commit is contained in:
parent
0a49ccd8c0
commit
31e189a7d0
1
base.mk
1
base.mk
@ -93,5 +93,6 @@ PRODUCT_COPY_FILES += \
|
||||
device/phh/treble/files/oneplus6-synaptics_s3320.kl:system/phh/oneplus6-synaptics_s3320.kl \
|
||||
device/phh/treble/files/huawei-fingerprint.kl:system/phh/huawei/fingerprint.kl \
|
||||
device/phh/treble/files/samsung-sec_e-pen.idc:system/usr/idc/sec_e-pen.idc \
|
||||
device/phh/treble/files/samsung-9810-floating_feature.xml:system/ph/sam-9810-flo_feat.xml \
|
||||
|
||||
SELINUX_IGNORE_NEVERALLOWS := true
|
||||
|
5
files/samsung-9810-floating_feature.xml
Normal file
5
files/samsung-9810-floating_feature.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<SecFloatingFeatureSet>
|
||||
<SEC_FLOATING_FEATURE_AUDIO_SUPPORT_PSEUDO_DUAL_SPEAKER>TRUE</SEC_FLOATING_FEATURE_AUDIO_SUPPORT_PSEUDO_DUAL_SPEAKER>
|
||||
</SecFloatingFeatureSet>
|
||||
|
15
rw-system.sh
15
rw-system.sh
@ -178,3 +178,18 @@ fi
|
||||
if getprop ro.hardware |grep -qF samsungexynos;then
|
||||
setprop debug.sf.latch_unsignaled 1
|
||||
fi
|
||||
|
||||
if getprop ro.vendor.build.fingerprint | grep -qE -e ".*(crown|star)[q2]*lte.*" -e ".*(SC-0[23]K|SCV3[89]).*";then
|
||||
for f in /vendor/lib/libfloatingfeature.so /vendor/lib64/libfloatingfeature.so;do
|
||||
[ ! -f $f ] && continue
|
||||
ctxt="$(ls -lZ $f |grep -oE 'u:object_r:[^:]*:s0')"
|
||||
b="$(echo "$f"|tr / _)"
|
||||
|
||||
cp -a $f /mnt/phh/$b
|
||||
sed -i \
|
||||
-e 's;/system/etc/floating_feature.xml;/system/ph/sam-9810-flo_feat.xml;g' \
|
||||
/mnt/phh/$b
|
||||
chcon "$ctxt" /mnt/phh/$b
|
||||
mount -o bind /mnt/phh/$b $f
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user