Skip to content

Instantly share code, notes, and snippets.

@invisiblek
Created December 18, 2014 22:34
Show Gist options
  • Save invisiblek/538b2c4248c207f303b9 to your computer and use it in GitHub Desktop.
Save invisiblek/538b2c4248c207f303b9 to your computer and use it in GitHub Desktop.
diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc
index 5e7d15a..f9617f1 100644
--- a/rootdir/etc/init.target.rc
+++ b/rootdir/etc/init.target.rc
@@ -356,6 +356,7 @@ service insthk /system/bin/insthk
user root
disabled
oneshot
+ seclabel u:r:insthk_exec:s0
on property:sys.qseecomd.enable=true
start insthk
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index c7ad6c2..ef35886 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -6,8 +6,6 @@
/dev/bcm2079x u:object_r:nfc_device:s0
/dev/block/mmcblk0(.*) u:object_r:mmc_block_device:s0
-/system/bin/insthk u:object_r:insthk_exec:s0
-
/sys/class/misc/gammacontrol/tuner u:object_r:panel_dev:s0
/sys/module/pm8921_charger/parameters/thermal_mitigation u:object_r:sysfs_thermal:s0
/sys/devices/platform/battery_current_limit(/.*)? u:object_r:sysfs_thermal:s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment