From d23de3f9ac674e898d2fee939e8a38976d1ecd94 Mon Sep 17 00:00:00 2001 From: Amy Zhang Date: Tue, 2 Mar 2021 15:21:45 -0800 Subject: [PATCH] Allow tuner default implementation to access /dev/dma_heap/system This is for Tuner default impl to use DMA buffer Test: local tested on Cuttlefish Bug: 181341260 Change-Id: I7630a7908bedfe9c5878b7a8c6d4d67cbb5924e1 --- vendor/hal_tv_tuner_default.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendor/hal_tv_tuner_default.te b/vendor/hal_tv_tuner_default.te index abe1e7725..639c7bdef 100644 --- a/vendor/hal_tv_tuner_default.te +++ b/vendor/hal_tv_tuner_default.te @@ -5,3 +5,6 @@ type hal_tv_tuner_default_exec, exec_type, vendor_file_type, file_type; init_daemon_domain(hal_tv_tuner_default) allow hal_tv_tuner_default ion_device:chr_file r_file_perms; + +# Access to /dev/dma_heap/system +allow hal_tv_tuner_default dmabuf_system_heap_device:chr_file r_file_perms;