mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-02-01 15:48:22 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user