sanders: [SQUASHED] Refactor LineageActions and implement keyhandler
This adds support for FP and screen off gestures Originally implemented in DU-MOD by @jhenrique09 Adapted to Oreo by @gregor160300 and @jhenrique09
This commit is contained in:
@@ -200,17 +200,29 @@ on boot
|
||||
chown system system /sys/homebutton/enable
|
||||
chown system system /sys/homebutton/enable_off
|
||||
chown system system /sys/homebutton/haptic
|
||||
chown system system /sys/homebutton/haptic_off
|
||||
chown system system /sys/homebutton/key
|
||||
chown system system /sys/homebutton/key_hold
|
||||
chown system system /sys/homebutton/key_up
|
||||
chown system system /sys/homebutton/key_down
|
||||
chown system system /sys/homebutton/key_dbltap
|
||||
chown system system /sys/homebutton/key_left
|
||||
chown system system /sys/homebutton/key_right
|
||||
chown system system /sys/homebutton/key_screenoff
|
||||
chown system system /sys/homebutton/key_screenoff_hold
|
||||
chown system system /sys/homebutton/key_screenoff_dbltap
|
||||
chown system system /sys/homebutton/key_screenoff_left
|
||||
chown system system /sys/homebutton/key_screenoff_right
|
||||
|
||||
# Wake Gestures
|
||||
# Screen off Gestures
|
||||
chown system radio /sys/android_touch/doubletap2wake
|
||||
chmod 0660 /sys/android_touch/doubletap2wake
|
||||
chown system radio /sys/android_touch/gesture_swipe_right
|
||||
chmod 0660 /sys/android_touch/gesture_swipe_right
|
||||
chown system radio /sys/android_touch/gesture_swipe_left
|
||||
chmod 0660 /sys/android_touch/gesture_swipe_left
|
||||
chown system radio /sys/android_touch/gesture_swipe_down
|
||||
chmod 0660 /sys/android_touch/gesture_swipe_down
|
||||
chown system radio /sys/android_touch/gesture_swipe_up
|
||||
chmod 0660 /sys/android_touch/gesture_swipe_up
|
||||
|
||||
# Display
|
||||
chown system graphics /sys/class/graphics/fb1/hpd
|
||||
@@ -853,7 +865,7 @@ on property:sys.boot_completed=1
|
||||
|
||||
# Apply inter-cluster load balancer restrictions
|
||||
write /proc/sys/kernel/sched_restrict_cluster_spill 1
|
||||
|
||||
|
||||
# set sync wakee policy tunable
|
||||
write /proc/sys/kernel/sched_prefer_sync_wakee_to_waker 1
|
||||
|
||||
@@ -872,7 +884,7 @@ on property:sys.boot_completed=1
|
||||
write /sys/class/devfreq/soc:qcom,cpubw/bw_hwmon/up_scale 250
|
||||
write /sys/class/devfreq/soc:qcom,cpubw/min_freq 1611
|
||||
write /sys/class/devfreq/soc:qcom,gpubw/bw_hwmon/io_percent 40
|
||||
|
||||
|
||||
# disable thermal & BCL core_control to update interactive gov settings
|
||||
write /sys/module/msm_thermal/core_control/enabled 0
|
||||
write /sys/devices/soc/soc:qcom,bcl/mode "disable"
|
||||
|
||||
Reference in New Issue
Block a user