From d826ca4a7b1d1a76cd1afd16554c40fd753e5d75 Mon Sep 17 00:00:00 2001
From: Chia-I Wu <olv@google.com>
Date: Thu, 9 Feb 2017 14:36:53 -0800
Subject: [PATCH] Allow hwcomposer to change scheduling policy

Bug: 35210697
Test: manual
Change-Id: I0e1e8923851f668d5fe6c210f411a8e4ff0470c7
---
 public/hal_graphics_composer.te | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/public/hal_graphics_composer.te b/public/hal_graphics_composer.te
index ee12ff134..9ba0bdb17 100644
--- a/public/hal_graphics_composer.te
+++ b/public/hal_graphics_composer.te
@@ -14,3 +14,6 @@ allow hal_graphics_composer graphics_device:chr_file rw_file_perms;
 allow hal_graphics_composer system_server:fd use;
 allow hal_graphics_composer bootanim:fd use;
 allow hal_graphics_composer appdomain:fd use;
+
+# allow self to set SCHED_FIFO
+allow hal_graphics_composer self:capability sys_nice;
-- 
GitLab