hua.tian 270eab4eb8 [ALPS04649268] Save mobile log in data partition in meta mode
Add SELINUX policy for mobile_log_d to save log in /data/debuglogger
and for getting log from adb.

MTK-Commit-Id: 8775f10bd89be7ac112cbc56daf422814f0f385f

Change-Id: I39e5e1d0ccb2381ef302c187ff83a9e9cb0fa959
CR-Id: ALPS04649268
Feature: Mobile Log Tool
2020-01-18 10:14:56 +08:00

28 lines
946 B
Plaintext

# ==============================================
# MTK Policy Rule
# ============
# Date : WK16.46
# Purpose : allow shell to switch aee mode
allow shell aee_aed:unix_stream_socket connectto;
# Date : WK17.35
# Purpose : allow shell to dump the debugging information of camera hal.
#allow shell hal_camera_hwservice:hwservice_manager { find };
binder_call(shell, mtk_hal_camera)
# Date : WK17.36
# Purpose : allow shell to dump the debugging information of power hal.
hal_client_domain(shell, hal_power)
allow shell aee_exp_vendor_file:dir r_dir_perms;
allow shell aee_exp_vendor_file:file r_file_perms;
allow shell aee_exp_data_file:dir r_dir_perms;
allow shell aee_exp_data_file:file r_file_perms;
allow shell debuglog_data_file:dir r_dir_perms;
allow shell debuglog_data_file:file r_file_perms;
get_prop(shell, mobile_log_prop)
get_prop(shell, persist_mtk_aee_prop);
get_prop(shell, persist_aee_prop);
get_prop(shell, debug_mtk_aee_prop);