From db1ad9a8a9281ead897c372f2d1cc9decd061b22 Mon Sep 17 00:00:00 2001 From: Peng Xu Date: Thu, 5 Oct 2017 14:58:08 -0700 Subject: [PATCH] Replace sys_nice capability with rlimit rtprio rlimit rtprio is more specific and thus preferred. Test: HubConnection thread get rtprio in sailfish Bug: 37291237 Change-Id: I3c7a06cb2964dc3ccb4c3f6fcb4eb33561296af1 --- sensors/1.0/default/android.hardware.sensors@1.0-service.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sensors/1.0/default/android.hardware.sensors@1.0-service.rc b/sensors/1.0/default/android.hardware.sensors@1.0-service.rc index 6e78082bb9..3e5d0f8933 100644 --- a/sensors/1.0/default/android.hardware.sensors@1.0-service.rc +++ b/sensors/1.0/default/android.hardware.sensors@1.0-service.rc @@ -2,4 +2,5 @@ service sensors-hal-1-0 /vendor/bin/hw/android.hardware.sensors@1.0-service class hal user system group system wakelock - capabilities BLOCK_SUSPEND SYS_NICE + capabilities BLOCK_SUSPEND + rlimit rtprio 10 10