Skip to content

Commit 8f68963

Browse files
etahamadpix106
authored andcommitted
lavender: Move some props to product.prop
* squashed commits: - lavender: Move some props to system/build.prop When device is in Enforce mode, this happens: init: Do not have permissions to set 'ro.qualcomm.cabl' to '0' in property file '/vendor/build.prop': SELinux permission check failed as example, so, moving those props to system/build.prop (from vendor/build.prop) fixed the issue Test: take logcat and check if there is anymore init props related errors Fix: Enforcing the Device Tree - lavender: Remove duplicated prop - lavender: Move props from system to pruduct Test: using su shell: getprop $PROP and check if the value exist or not, ex: getprop ro.qcom.ad it will show: 1 Fix: Init props denials Signed-off-by: pix106 <[email protected]>
1 parent ed67edb commit 8f68963

File tree

3 files changed

+19
-24
lines changed

3 files changed

+19
-24
lines changed

device.mk

+3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ PRODUCT_COPY_FILES += \
6868
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
6969
frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
7070

71+
# Properties
72+
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/product.prop
73+
7174
# Keylayout
7275
PRODUCT_COPY_FILES += \
7376
$(DEVICE_PATH)/configs/keylayout/sdm660-snd-card_Button_Jack.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/sdm660-snd-card_Button_Jack.kl

device_prop.mk

-24
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,8 @@
2121
# definition file).
2222
#
2323

24-
# Adaptive Display
25-
PRODUCT_PROPERTY_OVERRIDES += \
26-
ro.qcom.ad=1 \
27-
ro.qcom.ad.calib.data=/system/etc/calib.cfg \
28-
ro.qcom.ad.sensortype=2
29-
30-
# Audio
31-
PRODUCT_PROPERTY_OVERRIDES += \
32-
persist.vendor.audio.fluence.voicecall=true \
33-
persist.vendor.audio.fluence.voicerec=false \
34-
persist.vendor.audio.fluence.speaker=true \
35-
vendor.audio.adm.buffering.ms=6 \
36-
vendor.audio.offload.track.enable=false
37-
3824
# Camera
3925
PRODUCT_PROPERTY_OVERRIDES += \
40-
persist.bokeh.switch.lux=290 \
4126
persist.camera.auxswitch.threshold=330 \
4227
persist.camera.imglib.usefdlite=1 \
4328
persist.camera.depth.focus.cb=0 \
@@ -48,16 +33,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
4833
persist.camera.mainswitch.threshold=419 \
4934
persist.camera.set.afd=4 \
5035
persist.camera.stats.test=0 \
51-
persist.flash.low.lux=390 \
52-
persist.flash.light.lux=340 \
53-
persist.imx376_sunny.low.lux=310 \
54-
persist.imx376_sunny.light.lux=280 \
55-
persist.imx376_ofilm.low.lux=310 \
56-
persist.imx376_ofilm.light.lux=280 \
5736
persist.sys.exif.make=Xiaomi \
58-
ro.eyecare.brightness.threshold=3 \
59-
ro.eyecare.brightness.level=8 \
60-
ro.hist.brightness.threshold=5 \
6137
persist.vendor.camera.multicam.hwsync=TRUE \
6238
persist.vendor.camera.multicam.fpsmatch=TRUE \
6339
persist.vendor.camera.enableAdvanceFeatures=0x347 \

product.prop

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# Adaptive Display
3+
ro.qcom.ad=1
4+
ro.qcom.ad.calib.data=/system/etc/calib.cfg
5+
ro.qcom.ad.sensortype=2
6+
7+
# Camera
8+
persist.bokeh.switch.lux=290
9+
persist.flash.low.lux=390
10+
persist.imx376_sunny.low.lux=310
11+
persist.imx376_sunny.light.lux=280
12+
persist.imx376_ofilm.low.lux=310
13+
persist.imx376_ofilm.light.lux=280
14+
ro.eyecare.brightness.threshold=3
15+
ro.eyecare.brightness.level=8
16+
ro.hist.brightness.threshold=5

0 commit comments

Comments
 (0)