From dd70dfbecfb103ea085cb715ec4901bf519ba3b5 Mon Sep 17 00:00:00 2001 From: Mikhail Naganov Date: Mon, 9 Jan 2017 18:23:12 -0800 Subject: [PATCH] Allow audioserver to use IAllocator Bug: 30222631 Change-Id: I30ad019872881e21f61a53e4397112ea0e99688b --- public/audioserver.te | 1 + public/te_macros | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/audioserver.te b/public/audioserver.te index 455ab4b75..9f390e704 100644 --- a/public/audioserver.te +++ b/public/audioserver.te @@ -11,6 +11,7 @@ binder_service(audioserver) hwbinder_use(audioserver) binder_call(audioserver, hal_audio) +hwallocator_use(audioserver) r_dir_file(audioserver, proc) allow audioserver ion_device:chr_file r_file_perms; diff --git a/public/te_macros b/public/te_macros index 739b18533..70f0fdf2e 100644 --- a/public/te_macros +++ b/public/te_macros @@ -228,7 +228,7 @@ typeattribute $1 binderservicedomain; define(`hwallocator_use', ` # Call into the allocator hal binder_call($1, hal_allocator); -'') +') ##################################### # wakelock_use(domain)