KeyHandler: Integrate in tri-state-key handling via UEventObserver API

This basically adds required code to support both switch and extcon
based tri-state-key. This also adds tri-state-key-calibrate script for
devices that need to be calibrated on boot (OnePlus7+)

Change-Id: I2e6c5d2861569750bead05edacf6e328a5227077
This commit is contained in:
Timi Rautamäki
2021-10-19 13:08:14 +00:00
committed by LuK1337
parent acbbb33e8f
commit 75ea79851b
14 changed files with 118 additions and 465 deletions

View File

@@ -0,0 +1,9 @@
service vendor.tri-state-key-calibrate /vendor/bin/tri-state-key-calibrate
class main
user system
group system
oneshot
disabled
on post-fs-data
start vendor.tri-state-key-calibrate