diff options
-rw-r--r-- | Android.mk | 3 | ||||
-rw-r--r-- | test/file.te | 3 | ||||
-rwxr-xr-x | test/file_contexts | 3 | ||||
-rw-r--r-- | test/mediaserver_test.te | 5 |
4 files changed, 13 insertions, 1 deletions
@@ -87,7 +87,8 @@ BOARD_SEPOLICY_UNION := \ wcnss_service.te \ mmi.te \ dhcp.te \ - wfd_app.te + wfd_app.te \ + mediaserver_test.te # Compile sensor pilicy only for SSC targets SSC_TARGET_LIST := apq8084 diff --git a/test/file.te b/test/file.te new file mode 100644 index 00000000..4b8b67d6 --- /dev/null +++ b/test/file.te @@ -0,0 +1,3 @@ +#Define the files written during the operation of mm-pp-daemon +type display_test_media_file, file_type, data_file_type; + diff --git a/test/file_contexts b/test/file_contexts index 95f96496..f41cc3c0 100755 --- a/test/file_contexts +++ b/test/file_contexts @@ -57,3 +57,6 @@ /system/bin/test-fake-ap u:object_r:location_exec:s0 /system/bin/loc_api_app u:object_r:location_exec:s0 /system/bin/test_loc_api_client u:object_r:location_exec:s0 + +#Context for mediaserver +/data/display-tests/media(/.*)? u:object_r:display_test_media_file:s0 diff --git a/test/mediaserver_test.te b/test/mediaserver_test.te new file mode 100644 index 00000000..338e67ba --- /dev/null +++ b/test/mediaserver_test.te @@ -0,0 +1,5 @@ +#Access to media files for testing +userdebug_or_eng(` + allow mediaserver display_test_media_file:dir r_dir_perms; + allow mediaserver display_test_media_file:file r_file_perms; +') |