Camera: add setsched capability.

The camera HAL needs to increase the priority of some threads
to reduce frame drops.

Bug: 205072921
Test: Inspected logcat on P10
Change-Id: Ife5194c780a91f32d718f8db38e41f2f47fb929f
This commit is contained in:
Krzysztof Kosiński 2022-02-17 06:47:07 -08:00
parent b322df9960
commit 7997d6a8a0
2 changed files with 1 additions and 5 deletions

View file

@ -1,10 +1,5 @@
# b/205072921
dontaudit hal_camera_default kernel:process { setsched };
# b/205780065
dontaudit hal_camera_default system_data_file:dir { search };
# b/205904406
dontaudit hal_camera_default init:unix_stream_socket { connectto };
dontaudit hal_camera_default property_socket:sock_file { write };
# b/218585004
dontaudit hal_camera_default traced:unix_stream_socket { connectto };
dontaudit hal_camera_default traced_producer_socket:sock_file { write };

View file

@ -1,6 +1,7 @@
type hal_camera_default_tmpfs, file_type;
allow hal_camera_default self:global_capability_class_set sys_nice;
allow hal_camera_default kernel:process setsched;
binder_use(hal_camera_default);
vndbinder_use(hal_camera_default);