Abstract use of cameraserver behind an attribute
Bug: 124128212 Test: Builds Change-Id: Ia0df765e15a72b3bdd1cba07ff1cf16128da5ae2 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
This commit is contained in:
parent
ca41deb378
commit
fe0af517db
4 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
typeattribute cameraserver coredomain;
|
||||
|
||||
typeattribute cameraserver camera_service_server;
|
||||
|
||||
init_daemon_domain(cameraserver)
|
||||
tmpfs_domain(cameraserver)
|
||||
|
|
|
@ -307,3 +307,4 @@ attribute display_service_server;
|
|||
attribute wifi_keystore_service_server;
|
||||
attribute mediaswcodec_server;
|
||||
attribute system_suspend_server;
|
||||
attribute camera_service_server;
|
||||
|
|
1
public/camera_service_server.te
Normal file
1
public/camera_service_server.te
Normal file
|
@ -0,0 +1 @@
|
|||
add_hwservice(camera_service_server, fwk_camera_hwservice)
|
|
@ -18,7 +18,6 @@ allow cameraserver ion_device:chr_file rw_file_perms;
|
|||
allow cameraserver hal_graphics_composer:fd use;
|
||||
|
||||
add_service(cameraserver, cameraserver_service)
|
||||
add_hwservice(cameraserver, fwk_camera_hwservice)
|
||||
|
||||
allow cameraserver activity_service:service_manager find;
|
||||
allow cameraserver appops_service:service_manager find;
|
||||
|
|
Loading…
Reference in a new issue