From 0eeca0ef051765d9371302c730839db4dde99ee9 Mon Sep 17 00:00:00 2001 From: Michael Lai Date: Sat, 18 Jan 2020 10:16:50 +0800 Subject: [PATCH] [ALPS04688504] Add selinux permmision [Detail] Add selinux permmision MTK-Commit-Id: ca87b8ce2b16960b4047a178391ad9ec9ad99a82 Change-Id: Iea70b082d5057d729a52c97009bcdb0bafa1de61 CR-Id: ALPS04688504 Feature: [Android Default] Camera Application Basic Functions --- non_plat/hwservice_contexts | 4 ++++ non_plat/platform_app.te | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/non_plat/hwservice_contexts b/non_plat/hwservice_contexts index 39d7393..0a9f9f4 100644 --- a/non_plat/hwservice_contexts +++ b/non_plat/hwservice_contexts @@ -59,3 +59,7 @@ vendor.mediatek.hardware.gpu::IGraphicExt u:object_r:mtk_hal_gpu_hwservice:s0 # modem db filter hidl vendor.mediatek.hardware.modemdbfilter::ICopyDBFilter u:object_r:mtk_hal_md_dbfilter_hwservice:s0 +# Date: 2019/07/04 +vendor.mediatek.hardware.camera.lomoeffect::ILomoEffect u:object_r:hal_camera_hwservice:s0 +vendor.mediatek.hardware.camera.ccap::ICCAPControl u:object_r:hal_camera_hwservice:s0 +vendor.mediatek.hardware.camera.bgservice::IBGService u:object_r:hal_camera_hwservice:s0 diff --git a/non_plat/platform_app.te b/non_plat/platform_app.te index 32b2e8a..a1cce9b 100644 --- a/non_plat/platform_app.te +++ b/non_plat/platform_app.te @@ -108,3 +108,15 @@ get_prop(platform_app, vendor_connsysfw_prop) # Purpose : JPEG need to use PQ via MMS HIDL allow platform_app mtk_hal_mms_hwservice:hwservice_manager find; allow platform_app mtk_hal_mms:binder call; + +# Date: 2019/07/04 +# Stage: Migration +# Purpose: Allow to use lomo effect +# Package: com.mediatek.camera +#allow platform_app hal_camera_hwservice:hwservice_manager find; +allow platform_app mtk_hal_camera:binder call; + +# Date: 2019/07/04 +# Purpose: Allow platform app to use BGService HIDL and access mtk_hal_camera +binder_call(platform_app, mtk_hal_camera) +binder_call(mtk_hal_camera, platform_app)