Enable SSRestartDetector in Muskie

BUG=35138780

Change-Id: I0712462afa800880efbd4d646cd6d3f713318772
This commit is contained in:
Shawn Yang
2017-02-27 15:54:51 -08:00
parent 35d52df920
commit ab296f2969
5 changed files with 15 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ PRODUCT_PACKAGES += \
update_engine \
update_verifier
PRODUCT_PACKAGES += SSRestartDetector
PRODUCT_PACKAGES += \
bootctrl.msm8998

View File

@@ -5,6 +5,9 @@ type sysfs_rmtfs, sysfs_type, fs_type;
type sysfs_net, sysfs_type, fs_type;
type sysfs_fingerprint, sysfs_type, fs_type;
type sysfs_msm_subsys, sysfs_type, fs_type;
type sysfs_msm_subsys_restart, sysfs_type, fs_type;
type qmuxd_socket, file_type;
type netmgrd_socket, file_type;
type thermal_socket, file_type;
@@ -20,3 +23,5 @@ type persist_display_file, file_type;
type persist_sensors_file, file_type;
type netmgr_data_file, file_type, data_file_type;
type ramdump_data_file, file_type, data_file_type, mlstrustedobject;

View File

@@ -57,6 +57,7 @@
/sys/devices/soc0(/.*)? u:object_r:sysfs_soc:s0
/sys/devices/soc/caa0000\.qcom,jpeg(/.*)? u:object_r:sysfs_camera:s0
/sys/devices/soc/caa4000\.qcom,fd(/.*)? u:object_r:sysfs_camera:s0
/sys/bus/msm_subsys(/.*)? u:object_r:sysfs_msm_subsys:s0
# files in /system
/system/bin/init\.power\.sh u:object_r:init_power_exec:s0

View File

@@ -1,2 +1,3 @@
type wc_prop, property_type;
type camera_prop, property_type;
type ssr_prop, property_type;

6
sepolicy/system_app.te Normal file
View File

@@ -0,0 +1,6 @@
r_dir_file(system_app, sysfs_msm_subsys)
userdebug_or_eng(`
allow system_app ramdump_data_file:dir r_dir_perms;
allow system_app ramdump_data_file:file r_file_perms;
get_prop(system_app, ssr_prop)
')