Clean up usage of set and get prop for system defined properties

Change-Id: I582b523bf44073a156242cd4b5478fee667693cf
This commit is contained in:
Roopesh Rajashekharaiah Nataraja 2018-04-25 15:13:19 -07:00
parent 2ee7578514
commit 4b50e292f1
6 changed files with 12 additions and 9 deletions

View file

@ -12,7 +12,7 @@ r_dir_file(atfwd, sysfs_ssr);
r_dir_file(atfwd, sysfs_esoc);
r_dir_file(atfwd, sysfs_data);
set_prop(atfwd, radio_prop)
set_prop(atfwd, vendor_radio_prop)
hwbinder_use(atfwd)
get_prop(atfwd, hwservicemanager_prop)

View file

@ -37,4 +37,4 @@ set_prop(init-qti-ims-sh, ims_prop)
get_prop(init-qti-ims-sh, ims_prop)
# for ro.build.product
get_prop(init-qti-ims-sh, default_prop)
get_prop(init-qti-ims-sh, exported2_default_prop)

View file

@ -42,7 +42,6 @@ allow qti_init_shell self:capability {
sys_admin
};
set_prop(qti_init_shell, config_prop)
set_prop(qti_init_shell, ctl_hbtp_prop)
set_prop(qti_init_shell, ctl_netmgrd_prop)
set_prop(qti_init_shell, ctl_port-bridge_prop)
@ -53,8 +52,9 @@ set_prop(qti_init_shell, ipacm_prop)
set_prop(qti_init_shell, msm_irqbalance_prop)
set_prop(qti_init_shell, qti_prop)
set_prop(qti_init_shell, vendor_usb_prop)
set_prop(qti_init_shell, system_prop)
set_prop(qti_init_shell, vendor_system_prop)
set_prop(qti_init_shell, vendor_mpdecision_prop)
set_prop(qti_init_shell, vendor_radio_prop)
allow qti_init_shell {
sysfs_devices_system_cpu
@ -110,7 +110,6 @@ allow qti_init_shell sysfs:file r_file_perms;
allow qti_init_shell radio_vendor_data_file:dir create_dir_perms;
allow qti_init_shell radio_vendor_data_file:file create_file_perms;
set_prop(qti_init_shell, system_radio_prop)
set_prop(qti_init_shell, ctl_vendor_hbtp_prop)
# rules for vm_bms

View file

@ -59,10 +59,6 @@ allow mm-pp-daemon sysfs_graphics:dir r_dir_perms;
allow mm-pp-daemon sysfs_graphics:file rw_file_perms;
allow mm-pp-daemon sysfs_data:file r_file_perms;
userdebug_or_eng(`
set_prop(mm-pp-daemon, debug_prop)
')
# Allow socket calls in pp-daemon
unix_socket_connect(mm-pp-daemon, pps, init)

View file

@ -27,6 +27,8 @@ type vendor_usb_prop, property_type;
type tel_mon_prop, property_type;
type thermal_prop, property_type;
type wc_prop, property_type;
type vendor_radio_prop, property_type;
type vendor_system_prop, property_type;
#imsrcsservice
type ctl_vendor_imsrcsservice_prop, property_type;

View file

@ -53,3 +53,9 @@ ro.vendor.perf.cores_online u:object_r:vendor_mpdecision_prop:s0
# HBTP
ctl.vendor.hbtp u:object_r:ctl_vendor_hbtp_prop:s0
#Atel
persist.vendor.radio u:object_r:vendor_radio_prop:s0
vendor.radio u:object_r:vendor_radio_prop:s0
ro.vendor.ril. u:object_r:vendor_radio_prop:s0
persist.vendor.sys. u:object_r:vendor_system_prop:s0