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 <surenb@google.com>
Change-Id: Ie81da380a9343e098362f5fee5026799c4486e7e
Merged-In: Ie81da380a9343e098362f5fee5026799c4486e7e
This commit is contained in:
Suren Baghdasaryan
2020-04-30 13:27:38 -07:00
parent 11c711a434
commit b5b1621fbc
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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