add mediaswcodec service
Set up a new service for sw media codec services.
Bug: 111407413
Test: cts-tradefed run cts-dev --module CtsMediaTestCases --compatibility:module-arg CtsMediaTestCases:include-annotation:android.platform.test.annotations.RequiresDevice
Change-Id: Ia1c6a9ef3f0c1d84b2be8756eb1853ffa0597f8e
diff --git a/vendor/mediacodec.te b/vendor/mediacodec.te
index a235145..29e1a90 100644
--- a/vendor/mediacodec.te
+++ b/vendor/mediacodec.te
@@ -12,8 +12,15 @@
allow mediacodec surfaceflinger_service:service_manager find;
')
+# can route /dev/binder traffic to /dev/vndbinder
+vndbinder_use(mediacodec)
+
hal_server_domain(mediacodec, hal_omx)
hal_client_domain(mediacodec, hal_allocator)
-hal_client_domain(mediacodec, hal_cas)
hal_client_domain(mediacodec, hal_graphics_allocator)
+
+allow mediacodec gpu_device:chr_file rw_file_perms;
+allow mediacodec video_device:chr_file rw_file_perms;
+allow mediacodec video_device:dir search;
+