legacy-common: Simplify legacy camera HAL1 rules
Change-Id: I326ab5b77a4b92d4c173aef54fc069b56e4648ac
diff --git a/legacy-common/public/legacy-camera-hal1/mediaserver.te b/legacy-common/public/legacy-camera-hal1/mediaserver.te
index bb8fb7f..ffd5c57 100644
--- a/legacy-common/public/legacy-camera-hal1/mediaserver.te
+++ b/legacy-common/public/legacy-camera-hal1/mediaserver.te
@@ -1,6 +1,6 @@
# Legacy camera HAL1
-allow mediaserver cameraserver_service:service_manager add;
-allow mediaserver { fwk_camera_hwservice hidl_base_hwservice }:hwservice_manager add;
+add_service(mediaserver, cameraserver_service)
+add_hwservice(mediaserver, fwk_camera_hwservice)
allow mediaserver { cameraproxy_service sensor_privacy_service }:service_manager find;
allow mediaserver hal_camera_hwservice:hwservice_manager find;