sdm845-common: Enable double tap to wake support
Change-Id: I5e2eca2b2bfb843c2c6601bea53b141d3519e402
This commit is contained in:
parent
d0544a616a
commit
c434f510a4
@ -88,6 +88,9 @@ TARGET_USES_MKE2FS := true
|
||||
|
||||
TARGET_COPY_OUT_VENDOR := vendor
|
||||
|
||||
# Power
|
||||
TARGET_TAP_TO_WAKE_NODE := "/proc/touchpanel/wake_gesture"
|
||||
|
||||
# QCOM
|
||||
BOARD_USES_QCOM_HARDWARE := true
|
||||
|
||||
|
@ -339,4 +339,7 @@
|
||||
|
||||
<!-- True if the device supports Sustained Performance Mode-->
|
||||
<bool name="config_sustainedPerformanceModeSupported">true</bool>
|
||||
|
||||
<!-- Whether device supports double tap to wake -->
|
||||
<bool name="config_supportDoubleTapWake">true</bool>
|
||||
</resources>
|
||||
|
@ -2,3 +2,7 @@ on init
|
||||
mount none /system/lib64/hw/power.qcom.so /vendor/lib64/hw/power.qcom.so bind
|
||||
mount none /system/lib/hw/power.qcom.so /vendor/lib/hw/power.qcom.so bind
|
||||
mount none /system/lib/modules/wlan.ko /vendor/lib/modules/qca_cld3_wlan.ko bind
|
||||
|
||||
on boot
|
||||
chown system system /proc/touchpanel/wake_gesture
|
||||
chmod 0660 /proc/touchpanel/wake_gesture
|
||||
|
@ -2,3 +2,4 @@ type adsprpcd_file, file_type;
|
||||
type bt_firmware_file, file_type;
|
||||
type firmware_file, file_type;
|
||||
type persist_file, file_type;
|
||||
type sysfs_touchpanel, sysfs_type, fs_type;
|
||||
|
@ -7,6 +7,9 @@
|
||||
/firmware(/.*)? u:object_r:firmware_file:s0
|
||||
/persist(/.*)? u:object_r:persist_file:s0
|
||||
|
||||
# Input nodes
|
||||
/sys/devices/platform/soc/a98000\.i2c/i2c-3/3-[0-9a-f]+/input/input[0-9]+/wake_gesture u:object_r:sysfs_touchpanel:s0
|
||||
|
||||
# Modules
|
||||
/system/lib/modules/wlan\.ko u:object_r:vendor_file:s0
|
||||
|
||||
|
1
sepolicy/private/hal_power.te
Normal file
1
sepolicy/private/hal_power.te
Normal file
@ -0,0 +1 @@
|
||||
allow hal_power sysfs_touchpanel:file w_file_perms;
|
Loading…
Reference in New Issue
Block a user