android_device_motorola_milanf/resource-overlay/device/LineagePlatform/res/values/config.xml
AnierinB 8cf5064c40 milanf: Wire up StylusKeyHandler
Change-Id: Ib53103bc6e6f4d0703451fa5374407b906f78ec0
Signed-off-by: AnierinB <anierin@evolution-x.org>
2025-08-27 09:16:50 +00:00

65 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2016 The CyanogenMod Project
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- All the capabilities of the LEDs on this device, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following capabilities present:
// Device has a color adjustable notification light.
LIGHTS_RGB_NOTIFICATION_LED = 1
// Device has a color adjustable battery light.
LIGHTS_RGB_BATTERY_LED = 2
LIGHTS_MULTIPLE_NOTIFICATION_LED = 4 (deprecated)
// The notification light has adjustable pulsing capability.
LIGHTS_PULSATING_LED = 8
// Device has a multi-segment battery light that is able to
// use the light brightness value to determine how many
// segments to show (in order to represent battery level).
LIGHTS_SEGMENTED_BATTERY_LED = 16
// The notification light supports HAL adjustable brightness
// via the alpha channel.
// Note: if a device notification light supports LIGHTS_RGB_NOTIFICATION_LED
// then HAL support is not necessary for brightness control. In this case,
// brightness support will be provided by lineage-sdk through the scaling of
// RGB color values.
LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32
// Device has a battery light.
LIGHTS_BATTERY_LED = 64
// The battery light supports HAL adjustable brightness via
// the alpha channel.
// Note: if a device battery light supports LIGHTS_RGB_BATTERY_LED then HAL
// support is not necessary for brightness control. In this case,
// brightness support will be provided by lineage-sdk through the scaling of
// RGB color values.
LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS = 128
// The notification light has non-adjustable pulsing capability.
LIGHTS_BREATHING_LED = 256
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>