Forráskód Böngészése

cupid: overlay: Add fingerprint overlays

Change-Id: I71ac9af898e929252b826b7e70d47f1575c9e9f7
Arian 2 éve
szülő
commit
b7f5050666

+ 3 - 4
device.mk

@@ -12,13 +12,12 @@ $(call inherit-product, vendor/xiaomi/cupid/cupid-vendor.mk)
 
 # Overlay
 PRODUCT_PACKAGES += \
+    CupidWifiOverlay \
+    FrameworksResCupid \
     SettingsProviderResCupid \
+    SystemUIResCupid \
     WifiResCupid
 
 # Soong namespaces
 PRODUCT_SOONG_NAMESPACES += \
     $(LOCAL_PATH)
-
-# Wifi
-PRODUCT_PACKAGES += \
-    CupidWifiOverlay

+ 10 - 0
overlay/Frameworks/Android.bp

@@ -0,0 +1,10 @@
+//
+// Copyright (C) 2022 The LineageOS Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+
+runtime_resource_overlay {
+    name: "FrameworksResCupid",
+    device_specific: true,
+}

+ 10 - 0
overlay/Frameworks/AndroidManifest.xml

@@ -0,0 +1,10 @@
+<!--
+     Copyright (C) 2022 The LineageOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="android.overlay.cupid">
+    <overlay android:targetPackage="android"
+                   android:isStatic="true"
+                   android:priority="700"/>
+</manifest>

+ 21 - 0
overlay/Frameworks/res/values/arrays.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2022 The LineageOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+    <!-- 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>
+        <item>2163</item>
+        <item>107</item>
+    </integer-array>
+
+    <!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
+         when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
+         where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
+         and Strength as defined in Authenticators.java -->
+    <string-array name="config_biometric_sensors" translatable="false">
+        <item>0:2:15</item>
+    </string-array>
+</resources>

+ 9 - 0
overlay/Frameworks/res/values/config.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2022 The LineageOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+    <!-- How long it takes for the HW to start illuminating after the illumination is requested. -->
+    <integer name="config_udfps_illumination_transition_ms">0</integer>
+</resources>

+ 10 - 0
overlay/SystemUI/Android.bp

@@ -0,0 +1,10 @@
+//
+// Copyright (C) 2022 The LineageOS Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+
+runtime_resource_overlay {
+    name: "SystemUIResCupid",
+    device_specific: true,
+}

+ 10 - 0
overlay/SystemUI/AndroidManifest.xml

@@ -0,0 +1,10 @@
+<!--
+     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.overlay.cupid">
+    <overlay android:targetPackage="com.android.systemui"
+                   android:isStatic="true"
+                   android:priority="700"/>
+</manifest>

+ 9 - 0
overlay/SystemUI/res/values/config.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2022 The LineageOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+    <!-- The radius of the enrollment progress bar, in dp -->
+    <integer name="config_udfpsEnrollProgressBar" translatable="false">113</integer>
+</resources>