milanf: Add notification LED support
Change-Id: I486938164462ae7ebe5867e74c4f77142f5ed14f Signed-off-by: AnierinB <anierin@evolution-x.org>
This commit is contained in:
parent
8b79e4cbb2
commit
bade0bc949
5 changed files with 83 additions and 0 deletions
|
@ -24,6 +24,7 @@ $(call inherit-product, device/motorola/sm6375-common/common.mk)
|
||||||
# Overlays
|
# Overlays
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
FrameworksResDevice \
|
FrameworksResDevice \
|
||||||
|
LineagePlatformDevice \
|
||||||
LineageApertureAppDevice \
|
LineageApertureAppDevice \
|
||||||
SystemUIResDevice \
|
SystemUIResDevice \
|
||||||
WifiResDevice
|
WifiResDevice
|
||||||
|
@ -51,6 +52,10 @@ PRODUCT_PACKAGES += \
|
||||||
init.mmi.overlay.rc \
|
init.mmi.overlay.rc \
|
||||||
init.oem.fingerprint2.sh
|
init.oem.fingerprint2.sh
|
||||||
|
|
||||||
|
# Lights
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
android.hardware.light-service.lineage
|
||||||
|
|
||||||
# NFC
|
# NFC
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.nfc-service.nxp \
|
android.hardware.nfc-service.nxp \
|
||||||
|
|
|
@ -221,6 +221,9 @@
|
||||||
Z
|
Z
|
||||||
</string>
|
</string>
|
||||||
|
|
||||||
|
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
|
||||||
|
<bool name="config_intrusiveNotificationLed">true</bool>
|
||||||
|
|
||||||
<!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
|
<!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
|
||||||
when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
|
when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
|
||||||
where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
|
where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
|
||||||
|
|
9
resource-overlay/device/LineagePlatform/Android.bp
Normal file
9
resource-overlay/device/LineagePlatform/Android.bp
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
//
|
||||||
|
// SPDX-FileCopyrightText: The LineageOS Project
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
runtime_resource_overlay {
|
||||||
|
name: "LineagePlatformDevice",
|
||||||
|
vendor: true,
|
||||||
|
}
|
13
resource-overlay/device/LineagePlatform/AndroidManifest.xml
Normal file
13
resource-overlay/device/LineagePlatform/AndroidManifest.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="lineageos.platform.device.lineage">
|
||||||
|
|
||||||
|
<overlay
|
||||||
|
android:isStatic="true"
|
||||||
|
android:priority="800"
|
||||||
|
android:targetPackage="lineageos.platform" />
|
||||||
|
</manifest>
|
|
@ -0,0 +1,53 @@
|
||||||
|
<?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>
|
||||||
|
</resources>
|
Loading…
Reference in a new issue