move mediacodec_samsung build config and sepolicy to gs-common

1. mediacodec_samsung.te is copied from ag/20742869
2. add common settings which will be used by differnt vendor

Bug: 263444717
Test: build pass, camera record, youtube
Change-Id: I62a4c33ea59d1b3f70990f221b11fe9d905e15f1
This commit is contained in:
Ernie Hsu 2023-02-23 09:14:29 +00:00
parent 80fed77790
commit 1669f9bb60
10 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# mediacodec_common for all build configs and sepolicy shared among different Codec HAL
# example 1: shared among multiple HALs on the same device
# example 2: shared among different Hals on different devices
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/mediacodec/common/sepolicy

View file

@ -0,0 +1 @@
type vendor_media_data_file, file_type, data_file_type;

View file

@ -0,0 +1 @@
/data/vendor/media(/.*)? u:object_r:vendor_media_data_file:s0

View file

@ -0,0 +1 @@
type eco_service, vndservice_manager_type;

View file

@ -0,0 +1 @@
media.ecoservice u:object_r:eco_service:s0