From 9099638815a5680b97a2a6fbcd91f82a2ad2ba0b Mon Sep 17 00:00:00 2001
From: Steven Moreland <smoreland@google.com>
Date: Mon, 11 Jun 2018 14:36:12 -0700
Subject: [PATCH] Make hal_allocator use hal_attribute_hwservice.

If you can get or serve the hal allocator interface,
you should be a hal_allocator_client or
hal_allocator_server.

Bug: 80319537
Test: boot aosp_walleye and (sanity) take photos
Change-Id: Iea14c67c4aa56df7a74ebdb17e99b78b1d3aa105
---
 public/hal_allocator.te | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/public/hal_allocator.te b/public/hal_allocator.te
index 646cebdeb..b7e3ca5a4 100644
--- a/public/hal_allocator.te
+++ b/public/hal_allocator.te
@@ -1,6 +1,5 @@
 # HwBinder IPC from client to server
 binder_call(hal_allocator_client, hal_allocator_server)
 
-add_hwservice(hal_allocator_server, hidl_allocator_hwservice)
-allow hal_allocator_client hidl_allocator_hwservice:hwservice_manager find;
+hal_attribute_hwservice(hal_allocator, hidl_allocator_hwservice)
 allow hal_allocator_client hidl_memory_hwservice:hwservice_manager find;
-- 
GitLab