From 2549bc87d0642d9733d3c30f42e3145ba6d1f84e Mon Sep 17 00:00:00 2001 From: Alcatraz323 Date: Wed, 25 Oct 2023 09:33:43 +0800 Subject: [PATCH] sdm710-common: sepolicy: fix vendor_init prop access denial * these prop should be accessed by init process from /system partition I /system/bin/init: type=1107 audit(0.0:3): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=persist.vendor.bt.a2dp_offload_cap pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:bluetooth_prop:s0 tclass=property_service permissive=1' I /system/bin/init: type=1107 audit(0.0:4): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=ro.hwui.render_ahead pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=1' --- BoardConfigCommon.mk | 1 + product.prop | 4 +++- system.prop | 14 ++++++++++++++ vendor.prop | 9 --------- 4 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 system.prop diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index dc4abd5..1a0bf5c 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -116,6 +116,7 @@ TARGET_COPY_OUT_SYSTEM_EXT := system_ext TARGET_ODM_PROP += $(COMMON_PATH)/odm.prop TARGET_PRODUCT_PROP += $(COMMON_PATH)/product.prop TARGET_SYSTEM_EXT_PROP += $(COMMON_PATH)/system_ext.prop +TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop TARGET_VENDOR_PROP += $(COMMON_PATH)/vendor.prop # Root diff --git a/product.prop b/product.prop index 535ab44..97f7475 100644 --- a/product.prop +++ b/product.prop @@ -6,7 +6,6 @@ persist.audio.fluence.voicecall=true persist.audio.fluence.voicerec=false persist.audio.fluence.speaker=true persist.audio.fluence.voicecomm=true -persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac-ldac ro.qc.sdk.audio.ssr=false ro.qc.sdk.audio.fluencetype=none @@ -113,3 +112,6 @@ ro.zram.periodic_wb_delay_hours=24 # Zygote persist.device_config.runtime_native.usap_pool_enabled=true + +# Radio +persist.vendor.qti.telephony.vt_cam_interface=2 diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..3c3f550 --- /dev/null +++ b/system.prop @@ -0,0 +1,14 @@ +# Bluetooth +vendor.qcom.bluetooth.soc=cherokee + +# Audio +persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac-ldac + +# Multi-gen LRU +persist.device_config.mglru_native.lru_gen_config=all + +# Graphics +ro.hwui.render_ahead=20 + +# System Server +arm64.memtag.process.system_server=off \ No newline at end of file diff --git a/vendor.prop b/vendor.prop index e5ad2d2..ac5d633 100644 --- a/vendor.prop +++ b/vendor.prop @@ -82,7 +82,6 @@ vendor.audio.feature.snd_mon.enable=true vendor.voice.path.for.pcm.voip=true # Bluetooth -vendor.bluetooth.soc=cherokee bluetooth.device.class_of_device=90,2,12 bluetooth.hardware.power.operating_voltage_mv=3300 bluetooth.profile.asha.central.enabled?=true @@ -123,7 +122,6 @@ debug.sf.phase_offset_threshold_for_next_vsync_ns=6100000 # Graphics debug.sf.auto_latch_unsignaled=true -ro.hwui.render_ahead=20 debug.hwui.renderer=opengl # Fastbootd @@ -142,13 +140,9 @@ debug.stagefright.omx_default_rank=0 ro.vendor.extension_library=libqti-perfd-client.so ro.vendor.perf.scroll_opt=true -# Multi-gen LRU -persist.device_config.mglru_native.lru_gen_config=all - # Radio ro.carrier=unknown persist.radio.multisim.config=dsds -persist.vendor.qti.telephony.vt_cam_interface=2 persist.vendor.radio.add_power_save=1 persist.vendor.radio.apm_sim_not_pwdn=1 persist.vendor.radio.sib16_support=1 @@ -162,9 +156,6 @@ persist.vendor.radio.mt_sms_ack=30 ro.soc.manufacturer=QTI ro.soc.model=SDM710 -# System Server -arm64.memtag.process.system_server=off - # Target specific Netflix custom property ro.netflix.bsp_rev=Q855-16947-1