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'
This commit is contained in:
Alcatraz323 2023-10-25 09:33:43 +08:00 committed by CakesTwix
parent c20eba7afa
commit 2549bc87d0
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825
4 changed files with 18 additions and 10 deletions

View file

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

View file

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

14
system.prop Normal file
View file

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

View file

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