summaryrefslogtreecommitdiffstats
path: root/common/dynamic
diff options
context:
space:
mode:
Diffstat (limited to 'common/dynamic')
-rw-r--r--common/dynamic/hal_lineage_powershare.te8
-rw-r--r--common/dynamic/hwservice.te1
-rw-r--r--common/dynamic/hwservice_contexts1
3 files changed, 10 insertions, 0 deletions
diff --git a/common/dynamic/hal_lineage_powershare.te b/common/dynamic/hal_lineage_powershare.te
new file mode 100644
index 0000000..86e8aa3
--- /dev/null
+++ b/common/dynamic/hal_lineage_powershare.te
@@ -0,0 +1,8 @@
+# HWBinder IPC from client to server
+binder_call(hal_lineage_powershare_client, hal_lineage_powershare_server)
+
+add_hwservice(hal_lineage_powershare_server, hal_lineage_powershare_hwservice)
+allow hal_lineage_powershare_client hal_lineage_powershare_hwservice:hwservice_manager find;
+
+# Allow binder communication with platform_app
+binder_call(hal_lineage_powershare, platform_app)
diff --git a/common/dynamic/hwservice.te b/common/dynamic/hwservice.te
index dbf5478..8fb249d 100644
--- a/common/dynamic/hwservice.te
+++ b/common/dynamic/hwservice.te
@@ -1,5 +1,6 @@
type hal_lineage_camera_motor_hwservice, hwservice_manager_type;
type hal_lineage_fod_hwservice, hwservice_manager_type;
type hal_lineage_livedisplay_hwservice, hwservice_manager_type;
+type hal_lineage_powershare_hwservice, hwservice_manager_type;
type hal_lineage_touch_hwservice, hwservice_manager_type;
type hal_lineage_trust_hwservice, hwservice_manager_type;
diff --git a/common/dynamic/hwservice_contexts b/common/dynamic/hwservice_contexts
index 36df92e..c01ee63 100644
--- a/common/dynamic/hwservice_contexts
+++ b/common/dynamic/hwservice_contexts
@@ -10,6 +10,7 @@ vendor.lineage.livedisplay::IPictureAdjustment u:object
vendor.lineage.livedisplay::IReadingEnhancement u:object_r:hal_lineage_livedisplay_hwservice:s0
vendor.lineage.livedisplay::ISunlightEnhancement u:object_r:hal_lineage_livedisplay_hwservice:s0
vendor.lineage.power::ILineagePower u:object_r:hal_power_hwservice:s0
+vendor.lineage.powershare::IPowerShare u:object_r:hal_lineage_powershare_hwservice:s0
vendor.lineage.touch::IGloveMode u:object_r:hal_lineage_touch_hwservice:s0
vendor.lineage.touch::IKeyDisabler u:object_r:hal_lineage_touch_hwservice:s0
vendor.lineage.touch::IStylusMode u:object_r:hal_lineage_touch_hwservice:s0