sepolicy: Apps need to read themed resources
Assets such as composed icons and ringtones need to be accessed by apps. This patch adds the policy needed to facilitate this. Change-Id: If47920b2cc5dbafe8d71a621782bb4a3351bd68c
This commit is contained in:
parent
afbfad59d6
commit
e9c2de0679
3
sepolicy/app.te
Normal file
3
sepolicy/app.te
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Themed resources (i.e. composed icons)
|
||||||
|
allow appdomain theme_data_file:dir r_dir_perms;
|
||||||
|
allow appdomain theme_data_file:file r_file_perms;
|
3
sepolicy/bootanim.te
Normal file
3
sepolicy/bootanim.te
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Themed resources (bootanimation)
|
||||||
|
allow bootanim theme_data_file:dir search;
|
||||||
|
allow bootanim theme_data_file:file r_file_perms;
|
3
sepolicy/mediaserver.te
Normal file
3
sepolicy/mediaserver.te
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Themed resources (i.e. composed icons)
|
||||||
|
allow mediaserver theme_data_file:dir r_dir_perms;
|
||||||
|
allow mediaserver theme_data_file:file r_file_perms;
|
@ -13,8 +13,10 @@ BOARD_SEPOLICY_UNION += \
|
|||||||
property_contexts \
|
property_contexts \
|
||||||
seapp_contexts \
|
seapp_contexts \
|
||||||
service_contexts \
|
service_contexts \
|
||||||
auditd.te \
|
|
||||||
adbd.te \
|
adbd.te \
|
||||||
|
app.te \
|
||||||
|
auditd.te \
|
||||||
|
bootanim.te \
|
||||||
healthd.te \
|
healthd.te \
|
||||||
hostapd.te \
|
hostapd.te \
|
||||||
installd.te \
|
installd.te \
|
||||||
@ -28,4 +30,5 @@ BOARD_SEPOLICY_UNION += \
|
|||||||
system_app.te \
|
system_app.te \
|
||||||
ueventd.te \
|
ueventd.te \
|
||||||
vold.te \
|
vold.te \
|
||||||
|
zygote.te \
|
||||||
mac_permissions.xml
|
mac_permissions.xml
|
||||||
|
3
sepolicy/zygote.te
Normal file
3
sepolicy/zygote.te
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
allow zygote theme_data_file:file r_file_perms;
|
||||||
|
allow zygote theme_data_file:dir r_dir_perms;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user