dubai: Setup UDFPS overlay
Change-Id: I230cbdf0f72ff98684b2411c6343307a296d5b08
This commit is contained in:
parent
b0ae4e8029
commit
26e7d71e12
6 changed files with 51 additions and 0 deletions
|
@ -37,6 +37,7 @@ $(call inherit-product, device/motorola/sm7325-common/sm7325.mk)
|
||||||
# Overlay
|
# Overlay
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
FrameworksResDubai \
|
FrameworksResDubai \
|
||||||
|
LineageSystemUIDubai \
|
||||||
SystemUIResDubai
|
SystemUIResDubai
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
|
|
|
@ -199,6 +199,13 @@
|
||||||
-->
|
-->
|
||||||
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
|
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
|
||||||
|
|
||||||
|
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
|
||||||
|
<integer-array name="config_udfps_sensor_props" translatable="false" >
|
||||||
|
<item>540</item> <!-- sensorLocationX -->
|
||||||
|
<item>2164</item> <!-- sensorLocationY -->
|
||||||
|
<item>91</item> <!-- sensorRadius -->
|
||||||
|
</integer-array>
|
||||||
|
|
||||||
<!-- Screen brightness used to dim the screen when the user activity
|
<!-- Screen brightness used to dim the screen when the user activity
|
||||||
timeout expires. May be less than the minimum allowed brightness setting
|
timeout expires. May be less than the minimum allowed brightness setting
|
||||||
that can be set by the user. -->
|
that can be set by the user. -->
|
||||||
|
|
9
resource-overlay/dubai/LineageSystemUI/Android.bp
Normal file
9
resource-overlay/dubai/LineageSystemUI/Android.bp
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
//
|
||||||
|
// Copyright (C) 2022 The LineageOS Project
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
runtime_resource_overlay {
|
||||||
|
name: "LineageSystemUIDubai",
|
||||||
|
vendor: true,
|
||||||
|
}
|
13
resource-overlay/dubai/LineageSystemUI/AndroidManifest.xml
Normal file
13
resource-overlay/dubai/LineageSystemUI/AndroidManifest.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2022 The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.android.systemui.dubai.lineage">
|
||||||
|
|
||||||
|
<overlay
|
||||||
|
android:isStatic="true"
|
||||||
|
android:priority="800"
|
||||||
|
android:targetPackage="com.android.systemui" />
|
||||||
|
</manifest>
|
12
resource-overlay/dubai/LineageSystemUI/res/values/config.xml
Normal file
12
resource-overlay/dubai/LineageSystemUI/res/values/config.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2022 The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
|
<resources>
|
||||||
|
<!-- HBM type of UDFPS overlay.
|
||||||
|
0 - GLOBAL HBM
|
||||||
|
1 - LOCAL HBM
|
||||||
|
-->
|
||||||
|
<integer name="config_udfpsHbmType">0</integer>
|
||||||
|
</resources>
|
9
resource-overlay/dubai/SystemUI/res/values/config.xml
Normal file
9
resource-overlay/dubai/SystemUI/res/values/config.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2022 The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
|
<resources>
|
||||||
|
<!-- The radius of the enrollment progress bar, in DP. -->
|
||||||
|
<integer name="config_udfpsEnrollProgressBar">65</integer>
|
||||||
|
</resources>
|
Loading…
Reference in a new issue