mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 07:38:17 +00:00
sm6150-common: Decommonize lights HAL and overlays
* toco and sweet don't have a notification light and since backlight control has been moved to hwc this HAL is not needed for these targets. * Keep the HAL itself in common tree so that devices which need are able to build the lights HAL which is common for all targets with a notification light. Change-Id: Ia4c3c96e49b5ce58f4f55b92a65321fb258f8975
This commit is contained in:
@@ -13,40 +13,6 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<resources>
|
<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 battery light.
|
|
||||||
LIGHTS_RGB_NOTIFICATION_LED = 1
|
|
||||||
// Device has a color adjustable notification 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
|
|
||||||
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">232</integer>
|
|
||||||
|
|
||||||
<!-- Whether device has screen with higher aspect ratio -->
|
<!-- Whether device has screen with higher aspect ratio -->
|
||||||
<bool name="config_haveHigherAspectRatioScreen">true</bool>
|
<bool name="config_haveHigherAspectRatioScreen">true</bool>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -240,9 +240,6 @@
|
|||||||
<string name="config_mms_user_agent_profile_url" translatable="false"
|
<string name="config_mms_user_agent_profile_url" translatable="false"
|
||||||
>http://www.google.com/oha/rdf/ua-profile-kila.xml</string>
|
>http://www.google.com/oha/rdf/ua-profile-kila.xml</string>
|
||||||
|
|
||||||
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
|
|
||||||
<bool name="config_intrusiveNotificationLed">true</bool>
|
|
||||||
|
|
||||||
<!-- This string array should be overridden by the device to present a list of network
|
<!-- This string array should be overridden by the device to present a list of network
|
||||||
attributes. This is used by the connectivity manager to decide which networks can coexist
|
attributes. This is used by the connectivity manager to decide which networks can coexist
|
||||||
based on the hardware -->
|
based on the hardware -->
|
||||||
|
|||||||
@@ -194,10 +194,6 @@ PRODUCT_COPY_FILES += \
|
|||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/security/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
|
$(LOCAL_PATH)/configs/security/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
|
||||||
|
|
||||||
# Lights
|
|
||||||
PRODUCT_PACKAGES += \
|
|
||||||
android.hardware.light@2.0-service.xiaomi_sm6150
|
|
||||||
|
|
||||||
# LiveDisplay
|
# LiveDisplay
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
vendor.lineage.livedisplay@2.1-service.xiaomi_sm6150
|
vendor.lineage.livedisplay@2.1-service.xiaomi_sm6150
|
||||||
|
|||||||
Reference in New Issue
Block a user