Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0e358bc authored by Bruno Martins's avatar Bruno Martins
Browse files

Use hal_attribute_hwservice and hal_attribute_service when possible

As per macro definitions:

define(`hal_attribute_hwservice', `
  allow $1_client $2:hwservice_manager find;
  add_hwservice($1_server, $2)
  ...
')

define(`hal_attribute_service', `
  allow $1_client $2:service_manager find;
  add_service($1_server, $2)
  ...
')

Change-Id: Ib0d4926ee1415a9ae5963006c52f9c73580b1cf3
parent f131c06a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
# HWBinder IPC from client to server
binder_call(hal_lineage_fastcharge_client, hal_lineage_fastcharge_server)

add_hwservice(hal_lineage_fastcharge_server, hal_lineage_fastcharge_hwservice)
allow hal_lineage_fastcharge_client hal_lineage_fastcharge_hwservice:hwservice_manager find;
hal_attribute_hwservice(hal_lineage_fastcharge, hal_lineage_fastcharge_hwservice)

# Allow binder communication with platform_app
binder_call(hal_lineage_fastcharge, platform_app)
+1 −2
Original line number Diff line number Diff line
# HwBinder IPC from client to server
binder_call(hal_lineage_health_client, hal_lineage_health_server)

add_service(hal_lineage_health_server, hal_lineage_health_service)
allow hal_lineage_health_client hal_lineage_health_service:service_manager find;
hal_attribute_service(hal_lineage_health, hal_lineage_health_service)
+1 −2
Original line number Diff line number Diff line
# HwBinder IPC from client to server
binder_call(hal_lineage_livedisplay_client, hal_lineage_livedisplay_server)

add_hwservice(hal_lineage_livedisplay_server, hal_lineage_livedisplay_hwservice)
allow hal_lineage_livedisplay_client hal_lineage_livedisplay_hwservice:hwservice_manager find;
hal_attribute_hwservice(hal_lineage_livedisplay, hal_lineage_livedisplay_hwservice)
+1 −2
Original line number Diff line number Diff line
# HwBinder IPC from client to server
binder_call(hal_lineage_powershare_client, hal_lineage_powershare_server)

add_service(hal_lineage_powershare_server, hal_lineage_powershare_service)
allow hal_lineage_powershare_client hal_lineage_powershare_service:service_manager find;
hal_attribute_service(hal_lineage_powershare, hal_lineage_powershare_service)
+2 −4
Original line number Diff line number Diff line
# HwBinder IPC from client to server
binder_call(hal_lineage_touch_client, hal_lineage_touch_server)

add_hwservice(hal_lineage_touch_server, hal_lineage_touch_hwservice)
allow hal_lineage_touch_client hal_lineage_touch_hwservice:hwservice_manager find;
hal_attribute_hwservice(hal_lineage_touch, hal_lineage_touch_hwservice)

add_service(hal_lineage_touch_server, hal_lineage_touch_service)
allow hal_lineage_touch_client hal_lineage_touch_service:service_manager find;
hal_attribute_service(hal_lineage_touch, hal_lineage_touch_service)