universal7885: Add Glove Mode support

* Ref: e8b16f2cc2

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
SamarV-121 2020-10-22 18:29:33 +05:30 committed by roynatech2544
commit 62d8b28aa1
6 changed files with 26 additions and 0 deletions

View file

@ -1,4 +1,13 @@
<manifest version="1.0" type="framework"> <manifest version="1.0" type="framework">
<hal format="hidl">
<name>vendor.lineage.touch</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IGloveMode</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl"> <hal format="hidl">
<name>vendor.lineage.trust</name> <name>vendor.lineage.trust</name>
<transport>hwbinder</transport> <transport>hwbinder</transport>

1
sepolicy/private/file.te Normal file
View file

@ -0,0 +1 @@
type sysfs_sec_tsp, fs_type, sysfs_type;

View file

@ -1,5 +1,8 @@
# Block device for ZRAM # Block device for ZRAM
/dev/block/zram0 u:object_r:swap_block_device:s0 /dev/block/zram0 u:object_r:swap_block_device:s0
# HALs
/system/bin/hw/lineage\.touch@1\.0-service\.samsung u:object_r:hal_touch_samsung_exec:s0
# Vendor overlay # Vendor overlay
/(product|system/product)/vendor_overlay/[0-9]+/etc(/.*)? u:object_r:vendor_configs_file:s0 /(product|system/product)/vendor_overlay/[0-9]+/etc(/.*)? u:object_r:vendor_configs_file:s0

View file

@ -0,0 +1 @@
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_sec_tsp:s0

View file

@ -0,0 +1,8 @@
type hal_touch_samsung, domain, coredomain;
hal_server_domain(hal_touch_samsung, hal_lineage_touch)
type hal_touch_samsung_exec, system_file_type, exec_type, file_type;
init_daemon_domain(hal_touch_samsung)
allow hal_touch_samsung sysfs_sec_tsp:dir search;
allow hal_touch_samsung sysfs_sec_tsp:file rw_file_perms;

View file

@ -69,5 +69,9 @@ PRODUCT_SOONG_NAMESPACES += \
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
lineage.trust@1.0-service lineage.trust@1.0-service
# Touch
PRODUCT_PACKAGES += \
lineage.touch@1.0-service.samsung
# VNDK # VNDK
PRODUCT_EXTRA_VNDK_VERSIONS := 29 PRODUCT_EXTRA_VNDK_VERSIONS := 29