diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc index b8ee3071..599afc20 100644 --- a/prebuilt/common/etc/init.local.rc +++ b/prebuilt/common/etc/init.local.rc @@ -91,6 +91,7 @@ on boot chown system system /sys/block/mmcblk0/queue/scheduler chmod 0664 /sys/block/mmcblk0/queue/scheduler + restorecon /sys/block/mmcblk0/queue/scheduler chown system system /dev/cpuctl/apps/cpu.notify_on_migrate chmod 0664 /dev/cpuctl/apps/cpu.notify_on_migrate diff --git a/sepolicy/sepolicy.mk b/sepolicy/sepolicy.mk index 1a9b3434..d916a049 100644 --- a/sepolicy/sepolicy.mk +++ b/sepolicy/sepolicy.mk @@ -25,6 +25,7 @@ BOARD_SEPOLICY_UNION += \ su.te \ sysinit.te \ system.te \ + system_app.te \ ueventd.te \ vold.te \ mac_permissions.xml diff --git a/sepolicy/system_app.te b/sepolicy/system_app.te new file mode 100644 index 00000000..6ebd1ea8 --- /dev/null +++ b/sepolicy/system_app.te @@ -0,0 +1,2 @@ +# For performance settings +allow system_app sysfs_devices_system_cpu:file rw_file_perms;