sm6150-common: rootdir: Remove /data/vendor/dolby on upgrade

This is required after switching to the OnePlus Dolby Atmos stack

Based on:
09e0c6ad23
346519f7f2

Change-Id: I2ac8f83899a0866975aa6cbce26da9670b16843d
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
This commit is contained in:
basamaryan
2025-02-04 15:37:31 -05:00
committed by therealmharc
parent 3c1c3192ec
commit bc0dc1d83f
5 changed files with 48 additions and 0 deletions

View File

@@ -33,6 +33,9 @@
/(odm|vendor/odm)/bin/hw/vendor\.dolby_sp\.hardware\.dmssp@2\.0-service u:object_r:hal_dms_default_exec:s0
/(vendor|odm)/bin/hw/vendor\.dolby_sp\.media\.c2@1\.0-service u:object_r:mediacodec_exec:s0
# Dolby Fix script
/vendor/bin/init\.dolby_fix\.sh u:object_r:vendor_init-dolby-sh_exec:s0
# Fingerprint
/dev/fortsense_fp u:object_r:fingerprint_device:s0
/dev/goodix_fp u:object_r:fingerprint_device:s0

16
sepolicy/vendor/init-qcom-dolby-sh.te vendored Normal file
View File

@@ -0,0 +1,16 @@
type vendor_init-dolby-sh, domain;
type vendor_init-dolby-sh_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(vendor_init-dolby-sh)
allow vendor_init-dolby-sh vendor_data_file:dir { rw_dir_perms setattr };
allow vendor_init-dolby-sh vendor_data_file:file { rw_file_perms setattr unlink };
allow vendor_init-dolby-sh self:capability { fowner fsetid };
allow vendor_init-dolby-sh vendor_toolbox_exec:file { execute execute_no_trans getattr map open read };
allow vendor_init-dolby-sh vendor_shell_exec:file { execute getattr map read };
set_prop(vendor_init-dolby-sh, vendor_audio_prop);
dontaudit vendor_init-dolby-sh self:capability { dac_override dac_read_search };