sm6375-common: Set TARGET_TAP_TO_WAKE_NODE

Change-Id: I971349c0aaf6b11231ce79cd3260dd758bd88a2b
This commit is contained in:
Edwin Moquete
2022-03-04 18:09:08 -04:00
committed by Ramii Ahmed
parent 0d540c5c7b
commit 6a4288e605
5 changed files with 16 additions and 0 deletions

View File

@@ -172,6 +172,9 @@ TARGET_SYSTEM_EXT_PROP += $(COMMON_PATH)/system_ext.prop
TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop
TARGET_VENDOR_PROP += $(COMMON_PATH)/vendor.prop
# Power
TARGET_TAP_TO_WAKE_NODE := "/proc/tp_gesture"
# Recovery
BOARD_INCLUDE_RECOVERY_DTBO := true
BOARD_USES_RECOVERY_AS_BOOT := true

View File

@@ -114,6 +114,10 @@ on early-boot
start vendor.sensors
on boot
# DT2W
chown system system /proc/tp_gesture
chmod 0644 /proc/tp_gesture
write /dev/cpuset/audio-app/cpus 1-2
# Add a cpuset for the camera daemon
# We want all cores for camera

View File

@@ -12,3 +12,6 @@ type vendor_fingerprint_data_file, data_file_type, file_type;
# Thermal
type thermal_data_file, data_file_type, file_type;
# Touchpanel
type proc_touchpanel, fs_type, proc_type;

View File

@@ -16,6 +16,9 @@ genfscon sysfs /devices/platform/soc/6000000.qcom,mss/subsys[0-9]+/restart_level
genfscon sysfs /devices/platform/soc/5ab0000.qcom,venus/subsys[0-9]+/name u:object_r:vendor_sysfs_ssr:s0
genfscon sysfs /devices/platform/soc/5ab0000.qcom,venus/subsys[0-9]+/restart_level u:object_r:vendor_sysfs_ssr_toggle:s0
# Touchpanel
genfscon proc /tp_gesture u:object_r:proc_touchpanel:s0
# Wakeup nodes
genfscon sysfs /devices/platform/soc/soc:goodix_fp/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/soc/soc:silead_fp/wakeup u:object_r:sysfs_wakeup:s0

3
sepolicy/vendor/hal_power_default.te vendored Normal file
View File

@@ -0,0 +1,3 @@
# Allow hal_power_default to write to dt2w node
allow hal_power_default proc_touchpanel:dir search;
allow hal_power_default proc_touchpanel:file rw_file_perms;