From e1edbe9c978d9befa027205157766c20f4e5a5d7 Mon Sep 17 00:00:00 2001
From: Ruben Brunk <rubenbrunk@google.com>
Date: Tue, 19 May 2015 17:26:31 -0700
Subject: [PATCH] camera: Add AIDL interface for CameraServiceProxy.

- Update selinux policy for CameraServiceProxy.

Bug: 21267484
Change-Id: Ib821582794ddd1e3574b5dc6c79f7cb197b57f10
---
 mediaserver.te   | 1 +
 service.te       | 1 +
 service_contexts | 1 +
 3 files changed, 3 insertions(+)

diff --git a/mediaserver.te b/mediaserver.te
index cb0995c42..02994663c 100644
--- a/mediaserver.te
+++ b/mediaserver.te
@@ -80,6 +80,7 @@ allow mediaserver tee:unix_stream_socket connectto;
 
 allow mediaserver activity_service:service_manager find;
 allow mediaserver appops_service:service_manager find;
+allow mediaserver cameraproxy_service:service_manager find;
 allow mediaserver batterystats_service:service_manager find;
 allow mediaserver drmserver_service:service_manager find;
 allow mediaserver mediaserver_service:service_manager { add find };
diff --git a/service.te b/service.te
index 66bf5668c..312f127e4 100644
--- a/service.te
+++ b/service.te
@@ -24,6 +24,7 @@ type backup_service, app_api_service, system_server_service, service_manager_typ
 type batterystats_service, app_api_service, system_server_service, service_manager_type;
 type battery_service, system_server_service, service_manager_type;
 type bluetooth_manager_service, system_api_service, system_server_service, service_manager_type;
+type cameraproxy_service, system_server_service, service_manager_type;
 type clipboard_service, app_api_service, system_server_service, service_manager_type;
 type IProxyService_service, system_api_service, system_server_service, service_manager_type;
 type commontime_management_service, system_server_service, service_manager_type;
diff --git a/service_contexts b/service_contexts
index e782c7d99..f6da90870 100644
--- a/service_contexts
+++ b/service_contexts
@@ -62,6 +62,7 @@ lock_settings                             u:object_r:lock_settings_service:s0
 media.audio_flinger                       u:object_r:mediaserver_service:s0
 media.audio_policy                        u:object_r:mediaserver_service:s0
 media.camera                              u:object_r:mediaserver_service:s0
+media.camera.proxy                        u:object_r:cameraproxy_service:s0
 media.log                                 u:object_r:mediaserver_service:s0
 media.player                              u:object_r:mediaserver_service:s0
 media.resource_manager                    u:object_r:mediaserver_service:s0
-- 
GitLab