[Detail] We use system property to start service, follow android P rules, we should add prefix "vendor." into the property name MTK-Commit-Id: fbd0d1e60f45d93dd0402747afd0a91624f7e0cf Change-Id: I02d8dace8d0445b3adf8c4044e15fed3f5fe95ab CR-Id: ALPS03861873 Feature: [Module]Telephony power on
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# ==============================================
|
|
# Policy File of /system/bin/muxreport Executable File
|
|
|
|
# ==============================================
|
|
# Type Declaration
|
|
# ==============================================
|
|
type muxreport_exec , exec_type, file_type, vendor_file_type;
|
|
type muxreport ,domain;
|
|
|
|
# ==============================================
|
|
# MTK Policy Rule
|
|
# ==============================================
|
|
init_daemon_domain(muxreport)
|
|
|
|
# Capabilities assigned for muxreport
|
|
#allow muxreport self:capability dac_override;
|
|
|
|
# Property service
|
|
# allow set muxreport control properties
|
|
set_prop(muxreport, ril_mux_report_case_prop)
|
|
|
|
# Allow read/write to devices/files
|
|
allow muxreport ccci_device:chr_file { rw_file_perms };
|
|
allow muxreport devpts:chr_file { rw_file_perms };
|
|
allow muxreport eemcs_device:chr_file { rw_file_perms };
|
|
allow muxreport emd_device:chr_file { rw_file_perms };
|
|
# Allow read to sys/kernel/ccci/* files
|
|
allow muxreport sysfs_ccci:dir search;
|
|
allow muxreport sysfs_ccci:file r_file_perms;
|
|
|
|
# Date : WK18.16
|
|
# Operation: P migration
|
|
# Purpose: Allow muxreport to get tel_switch_prop
|
|
get_prop(muxreport, tel_switch_prop)
|
|
|
|
#Date: W1824
|
|
#Purpose: allow muxreport access property of vendor_radio_prop
|
|
set_prop(muxreport, vendor_radio_prop)
|
|
|