recovery/fastbootd: allow to talk to health HAL.

- Allow to use binder.
- Allow to talk to health HAL.

Test: manual in recovery
Test: fastboot getvar battery-voltage
Bug: 177269435
Change-Id: Ic3b1619ac34a10cb6007b8e011a01841343e9e8b
This commit is contained in:
Yifan Hong 2021-12-07 15:03:40 -08:00
parent 259491ba0b
commit adc0f709b6
2 changed files with 5 additions and 0 deletions

View file

@ -10,6 +10,10 @@ recovery_only(`
# fastbootd can only use HALs in passthrough mode
passthrough_hal_client_domain(fastbootd, hal_bootctl)
# fastbootd can use AIDL HALs in binder mode
binder_use(fastbootd)
hal_client_domain(fastbootd, hal_health)
# Access /dev/usb-ffs/fastbootd/ep0
allow fastbootd functionfs:dir search;
allow fastbootd functionfs:file rw_file_perms;

View file

@ -13,6 +13,7 @@ recovery_only(`
passthrough_hal_client_domain(recovery, hal_bootctl)
# Recovery can use AIDL HALs in binder mode
binder_use(recovery)
hal_client_domain(recovery, hal_health)
allow recovery self:global_capability_class_set {