Add policy to allow GoogleCameraApp access HAL to apply CPU/GPU boost.
To fix the denial message: avc: denied { find } for pid=4646 uid=10134 name=android.hardware.power.IPower/default scontext=u:r:google_camera_app:s0:c134,c256,c512,c768 tcontext=u:object_r:hal_power_service:s0 tclass=service_manager permissive=0 Reference: go/sepolicy. On P21, we have ag/14692156 to access PowerHAL in GCA. On P22, we currently don't have the permission (b/233998391#comment10). This change fixes this issue. Bug: 233998391 Bug: 232184722 Bug: 232022128 Test: Boost is applied successfully b/233998391#comment11. GCA. Change-Id: Id1a938fc0af0ad9280aa49e7f6cbdf45c16f8b38
This commit is contained in:
parent
5be857af43
commit
38ddaa255e
1 changed files with 3 additions and 0 deletions
|
@ -13,3 +13,6 @@ allow google_camera_app gxp_device:chr_file rw_file_perms;
|
|||
|
||||
# Allows camera app to search for GXP firmware file.
|
||||
allow google_camera_app vendor_fw_file:dir search;
|
||||
|
||||
# Allows camera app to access the PowerHAL.
|
||||
hal_client_domain(google_camera_app, hal_power)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue