# Overlays

# General Overlays

# • Battery Health Overlay

Overlay Path: overlay-bliss/packages/apps/Settings/res/values/bliss_config.xml
Default status: Disabled

This overlay is required to Enable battery health section.

	<!-- Battery Health -->
    <bool name="config_supportBatteryHealth">true</bool>

This overlay is required to Enable battery charging cycle counts in battery page in setting app.

	<!-- Battery Charging cycle counts -->
    <bool name="config_showChargingCycles">true</bool>

You will need to check your available kernel nodes before selecting them Note that nodes availability depends on kernel version

Example

		<!-- Battery Health Info nodes -->
        <string name="config_batDesCap">/sys/class/power_supply/bms/charge_full_design</string>
        <string name="config_batCurCap">/sys/class/power_supply/bms/charge_now_raw</string>
        <string name="config_batChargeCycle">/sys/class/power_supply/bms/cycle_count</string>

# • Charging Support Overlay

Overlay Path: overlay-bliss/frameworks/base/core/res/res/values/bliss_config.xml
Default status: Disabled

- VOOC Charging ( If your device supports )

This overlay is required to Enable VOOC charging support.

    <!-- Whether device has VOOC charging support -->
    <bool name="config_hasVoocCharger">true</bool>

- WARP Charging ( If your device supports )

This overlay is required to Enable Warp charging support.

    <!-- Whether device has warp charging support -->
    <bool name="config_hasWarpCharger">true</bool>

- Dash Charging ( If your device supports )

This overlay is required to Enable Dash charging support.

    <!-- Whether device has dash charging support -->
    <bool name="config_hasDashCharger">true</bool>

# • Smart Charging

Overlay Path: overlay-bliss/packages/apps/Settings/res/values/bliss_config.xml
Default status: Disabled

This overlay is required to make Smart Charging feature functioning.

    <!-- Smart Charging -->
    <bool name="config_supportSmartFeatures">true</bool>

Example

    <!-- Smart charge sysfs node and value for suspend/resume charging-->
    <integer name="config_smartChargingBatteryLevel">80</integer>
    <integer name="config_smartChargingBatteryResumeLevel">60</integer>
    <string name="config_SmartChargingSysfsNode" translatable="false">/sys/class/power_supply/battery/charging_enabled</string>
    <string name="config_SmartChargingSuspendValue" translatable="false">0</string>
    <string name="config_SmartChargingResumeValue" translatable="false">1</string>

# • Live Display

Overlay Path: overlay-bliss/frameworks/base/core/res/res/values/bliss_config.xml
Default status: Disabled

This overlay is required to make Live Display feature functioning.

    <!-- Default state for LiveDisplay -->
    <bool name="config_enableLiveDisplay">true</bool>

# • Multi usb controller overlay (ONLY FOR ASUS ROG DEVICES)

Overlay Path: overlay-bliss/frameworks/base/core/res/res/values/bliss_config.xml
Default status: Disabled

Since all ROG devices have 2 usb ports. We can use both for mtp, not just as charger.

This overlay is required to add support for Multi USB Controller.

    <!-- Switch USB controller on Asus ROG devices-->
    <bool name="config_switchUsbController">true</bool>

# • High Aspect Ratio

Overlay Path: overlay-bliss/frameworks/base/core/res/res/values/config.xml
Default status: Disabled

This overlay is required to make full screen apps function working properly

    <!-- Define that we use a higher screen ratio (18:9) than standard (16:9) -->
    <bool name="config_haveHigherAspectRatioScreen">true</bool>

# • Multi-colour LED

Overlay Path: overlay-bliss/frameworks/base/core/res/res/values/bliss_config.xml
Default status: Enabled

This overlay is required to Enable Multi-coloured LED lights for supported devices.

    <!-- Does the notification LED support multiple colors?
         Used to decide if the user can change the colors -->
    <bool name="config_multicolorled">false</bool>

# • Call Recording

Overlay Path: overlay/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml
Default status: Disabled

This overlay is required to Enable Call recording on AOSP Dialer's.

	<!-- Enable Call recording -->
	<bool name="call_recording_enabled">true</bool>
	<integer name="call_recording_audio_source">4</integer>

# UDFPS Specific Overlays

# • UDFPS Support

Overlay Path: overlay-bliss/frameworks/base/core/res/res/values/bliss_config.xml

This overlay is required to Enable UDFPS Support. The overlay is used to determine HBM Type for UDFPS. Required inorder for UDFPS to work.

    <!-- HBM type of UDFPS overlay.
            0 - GLOBAL HBM
            1 - LOCAL HBM
    -->
    <integer name="config_udfpsHbmType">0</integer>

# • UDFPS Vendor code

Overlay Path: overlay-bliss/frameworks/base/core/res/res/values/bliss_config.xml

This overlay is used to define vendor code. Required inorder for UDFPS to work.

    <!-- Udfps vendor code -->
    <integer name="config_udfpsVendorCode">0</integer>

# • UDFPS Animations

For UDFPS Animation to work you need 2 things in your device tree source.

  • A Flag in bliss_codename.mk makefile in your respective device tree
  • An overlay to set Default FOD Pressed Color

Flag Required to build UDFPS Animation resources

# UDFPS Animations
EXTRA_UDFPS_ANIMATIONS := true

To set Default UDFPS Pressed color

Overlay Path: overlay-bliss/frameworks/base/core/res/res/values/bliss_config.xml
Default status: Disabled

This overlay is required to set Default UDFPS Pressed Color.

    <!-- Default fod pressed color -->
    <integer name="config_fod_pressed_color">1</integer>

To set UDFPS Animation Offset

Overlay Path: overlay-bliss/frameworks/base/packages/SystemUI/res/values/dimens.xml

This overlay is required to set UDFPS Animation offset for respective devices.

    <!-- Udfps animation offset -->
    <dimen name="udfps_animation_offset">50dp</dimen>

To set UDFPS Animation Size

Overlay Path: overlay-bliss/frameworks/base/packages/SystemUI/res/values/dimens.xml

This overlay is required to set UDFPS Animation size for respective devices.

    <!-- Udfps animation size-->
    <dimen name="udfps_animation_size">176dp</dimen>

To set Color of the UDFPS Pressed view

Overlay Path: overlay-bliss/frameworks/base/core/res/res/values/bliss_config.xml

This overlay is required to set Color of the UDFPS Pressed view for respective devices.

    <!-- Color of the UDFPS Pressed view -->
    <color name="config_udfpsColor">#ffffe6</color>

# • Screen-Off FOD

Overlay Path: overlay/packages/apps/Settings/res/values/bliss_config.xml
Default status: Disabled

This overlay is required to Enable Screen OFF FOD.

    <!-- Screen off FOD -->
    <bool name="config_supportScreenOffFod">true</bool>