Merge branch 'lineage-21.0' of https://github.com/LineageOS/android_device_lineage_sepolicy into leaf-3.1
Change-Id: I0516a5c3a215422065cddc10b5ed88b7e8b270de
diff --git a/common/private/adbroot.te b/common/private/adbroot.te
index de201a6..828ce90 100644
--- a/common/private/adbroot.te
+++ b/common/private/adbroot.te
@@ -7,6 +7,9 @@
binder_service(adbroot)
add_service(adbroot, adbroot_service)
+allow adbroot package_native_service:service_manager find;
+binder_call(adbroot, system_server)
+
allow adbroot adbroot_data_file:dir rw_dir_perms;
allow adbroot adbroot_data_file:file create_file_perms;
diff --git a/qcom/vendor/file_contexts b/qcom/vendor/file_contexts
index 1db2091..faa5923 100644
--- a/qcom/vendor/file_contexts
+++ b/qcom/vendor/file_contexts
@@ -7,3 +7,5 @@
# Power
/(vendor|system/vendor)/bin/hw/android\.hardware\.power-service-qti u:object_r:hal_power_default_exec:s0
+/sys/devices(/platform)?/soc/[a-f0-9]+.qcom,mdss_mdp/idle_state u:object_r:sysfs_graphics:s0
+/sys/devices/virtual/graphics/fb([0-3])+/idle_state u:object_r:sysfs_graphics:s0
diff --git a/qcom/vendor/hal_power_default.te b/qcom/vendor/hal_power_default.te
new file mode 100644
index 0000000..6fd6b4b
--- /dev/null
+++ b/qcom/vendor/hal_power_default.te
@@ -0,0 +1 @@
+r_dir_file(hal_power_default, sysfs_graphics)