milanf: Wire up StylusKeyHandler

Change-Id: Ib53103bc6e6f4d0703451fa5374407b906f78ec0
Signed-off-by: AnierinB <anierin@evolution-x.org>
This commit is contained in:
AnierinB 2025-08-20 00:23:57 +00:00 committed by Michael Bestas
parent 5dcbded19a
commit 8cf5064c40
2 changed files with 16 additions and 0 deletions

View file

@ -77,5 +77,9 @@ PRODUCT_COPY_FILES += \
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
# StylusKeyHandler
PRODUCT_PACKAGES += \
StylusKeyHandler
# Inherit from vendor blobs
$(call inherit-product, vendor/motorola/milanf/milanf-vendor.mk)

View file

@ -50,4 +50,16 @@
For example, a device with notification and battery lights that supports
pulsating and RGB control would set this config to 75. -->
<integer name="config_deviceLightCapabilities" translatable="false">232</integer>
<!-- Paths to the libraries that contain device specific key handlers -->
<string-array name="config_deviceKeyHandlerLibs" translatable="false">
<item>/system_ext/app/StylusKeyHandler/StylusKeyHandler.apk</item>
<item>/system_ext/priv-app/LineageParts/LineageParts.apk</item>
</string-array>
<!-- Names of the key handler classes -->
<string-array name="config_deviceKeyHandlerClasses" translatable="false">
<item>org.lineageos.settings.stylus.KeyHandler</item>
<item>org.lineageos.lineageparts.gestures.KeyHandler</item>
</string-array>
</resources>