[ALPS03934549] MTKLogger support for LogHandler

[Solution] MTKLogger support for LogHandler

MTK-Commit-Id: 58a1ac0f72764fced2c0eac8421160d42d90b05c

Change-Id: I5117ffb2b12707e4819938553f580a440a9ae6a2
CR-Id: ALPS03934549
Feature: MTKLogger
This commit is contained in:
yuru.zhu 2020-01-18 09:56:38 +08:00 committed by Yuru Zhu (朱禹儒)
parent ad31bd41ee
commit 146cf88d6f
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;
attribute mtk_hal_fm_client; attribute mtk_hal_fm_client;
attribute mtk_hal_fm_server; 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,domain;
type connsyslogger_exec, exec_type, file_type, vendor_file_type; type connsyslogger_exec, exec_type, file_type, vendor_file_type;
typeattribute connsyslogger mlstrustedsubject; typeattribute connsyslogger mlstrustedsubject;
# Purpose : for create hidl server
hal_server_domain(connsyslogger, mtk_hal_log)
# ============================================== # ==============================================
# MTK Policy Rule # MTK Policy Rule
# ============================================== # ==============================================

View File

@ -34,3 +34,7 @@ type mtk_hal_keyattestation_hwservice, hwservice_manager_type;
# Date: 2018/05/25 # Date: 2018/05/25
# FM HIDL # FM HIDL
type mtk_hal_fm_hwservice, hwservice_manager_type; 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 # Date: 2018/05/25
# FM HIDL # FM HIDL
vendor.mediatek.hardware.fm::IFmRadio u:object_r:mtk_hal_fm_hwservice:s0 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

@ -96,4 +96,10 @@ allow platform_app aee_exp_vendor_file:file { read getattr open };
# Date : WK18.21 # Date : WK18.21
# Operation : Migration # Operation : Migration
# Purpose : Do FM operation via mtk_hal_fm # Purpose : Do FM operation via mtk_hal_fm
hal_client_domain(platform_app, 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)