Merge "[ALPS03934549] MTKLogger support for LogHandler" into alps-trunk-p0.basic

Change-Id: Ifd056ef814611b604c49a78779f447a003afdc77
MTK-Commit-Id: 3e0a98839d004126e93de1276c81a61de1d22a73
This commit is contained in:
Yuru Zhu (朱禹儒) 2020-01-18 09:56:41 +08:00 committed by Gerrit Code Review
commit 50bf8286c8
6 changed files with 29 additions and 2 deletions

View File

@ -51,3 +51,9 @@ attribute hal_nvramagent_server;
attribute mtk_hal_fm;
attribute mtk_hal_fm_client;
attribute mtk_hal_fm_server;
# Date: 2018/03/23
# log hidl
attribute mtk_hal_log;
attribute mtk_hal_log_client;
attribute mtk_hal_log_server;

View File

@ -7,7 +7,8 @@
type connsyslogger,domain;
type connsyslogger_exec, exec_type, file_type, vendor_file_type;
typeattribute connsyslogger mlstrustedsubject;
# Purpose : for create hidl server
hal_server_domain(connsyslogger, mtk_hal_log)
# ==============================================
# MTK Policy Rule
# ==============================================

View File

@ -34,3 +34,7 @@ type mtk_hal_keyattestation_hwservice, hwservice_manager_type;
# Date: 2018/05/25
# FM HIDL
type mtk_hal_fm_hwservice, hwservice_manager_type;
# Date: 2018/03/23
# log hidl
type mtk_hal_log_hwservice, hwservice_manager_type;

View File

@ -41,3 +41,7 @@ vendor.mediatek.hardware.keymaster_attestation::IKeymasterDevice u:object_r:mtk_
# Date: 2018/05/25
# FM HIDL
vendor.mediatek.hardware.fm::IFmRadio u:object_r:mtk_hal_fm_hwservice:s0
# Date: 2018/03/23
# log hidl
vendor.mediatek.hardware.log::ILog u:object_r:mtk_hal_log_hwservice:s0

6
non_plat/mtk_hal_log.te Normal file
View File

@ -0,0 +1,6 @@
# HwBinder IPC from client to server, and callbacks
binder_call(mtk_hal_log_client, mtk_hal_log_server)
binder_call(mtk_hal_log_server, mtk_hal_log_client)
add_hwservice(mtk_hal_log_server, mtk_hal_log_hwservice)
allow mtk_hal_log_client mtk_hal_log_hwservice:hwservice_manager find;

View File

@ -98,3 +98,9 @@ allow platform_app aee_exp_vendor_file:file { read getattr open };
# Operation : Migration
# Purpose : Do FM operation via mtk_hal_fm
hal_client_domain(platform_app, mtk_hal_fm)
# Date: 2018/03/23
# Operation : Migration
# Purpose : MTKLogger need connect to log hidl server
# Package: com.mediatek.mtklogger
hal_client_domain(platform_app, mtk_hal_log)