From b5b1621fbc6c6ffa908f37089bd412e530d219ec Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Thu, 30 Apr 2020 13:27:38 -0700 Subject: [PATCH] Replace direct pid writes with setting task profiles for bluetooth interfaces For easy transition from SchedTune to UtilClamp, direct access to these cgroups should be abstracted by using task profiles. Replace writepid commands with new task_profiles command. Bug: 155419956 Test: change .rc file and confirm task profile is applied Signed-off-by: Suren Baghdasaryan Change-Id: Ie81da380a9343e098362f5fee5026799c4486e7e Merged-In: Ie81da380a9343e098362f5fee5026799c4486e7e --- bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc | 2 +- bluetooth/1.1/default/android.hardware.bluetooth@1.1-service.rc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc b/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc index 9fa128dfc6..def59de566 100644 --- a/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc +++ b/bluetooth/1.0/default/android.hardware.bluetooth@1.0-service.rc @@ -4,5 +4,5 @@ service vendor.bluetooth-1-0 /vendor/bin/hw/android.hardware.bluetooth@1.0-servi capabilities BLOCK_SUSPEND NET_ADMIN SYS_NICE user bluetooth group bluetooth - writepid /dev/stune/foreground/tasks + task_profiles HighPerformance diff --git a/bluetooth/1.1/default/android.hardware.bluetooth@1.1-service.rc b/bluetooth/1.1/default/android.hardware.bluetooth@1.1-service.rc index 49f0be3c10..5c7cbf4b3a 100644 --- a/bluetooth/1.1/default/android.hardware.bluetooth@1.1-service.rc +++ b/bluetooth/1.1/default/android.hardware.bluetooth@1.1-service.rc @@ -5,5 +5,5 @@ service vendor.bluetooth-1-1 /vendor/bin/hw/android.hardware.bluetooth@1.1-servi capabilities BLOCK_SUSPEND NET_ADMIN SYS_NICE user bluetooth group bluetooth - writepid /dev/stune/foreground/tasks + task_profiles HighPerformance