cmi: Move to Xiaomi fingerprint AIDL

Change-Id: I68dba7184034fd37454c7d32a065f041cb611625
This commit is contained in:
basamaryan
2024-09-29 16:41:14 -04:00
committed by Sebastiano Barezzi
parent a4631fc4c3
commit 7d3312b220
12 changed files with 12 additions and 144 deletions

View File

@@ -37,11 +37,6 @@ DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
$(LOCAL_PATH)/overlay-lineage
PRODUCT_PACKAGES += \
xiaomi_cmi_hwlevel_default_overlay \
xiaomi_cmi_hwlevel_p01_overlay \
xiaomi_cmi_hwlevel_p1_overlay
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml

View File

@@ -1,3 +1,10 @@
# PowerShare
on boot
chown system system /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/wireless/reverse_chg_mode
# UDFPS
on property:ro.boot.hwlevel=P0.1
setprop persist.vendor.fingerprint.sensor_location 549|1925|99
on property:ro.boot.hwlevel=P1
setprop persist.vendor.fingerprint.sensor_location 549|1925|99

View File

@@ -1,5 +0,0 @@
runtime_resource_overlay {
name: "xiaomi_cmi_hwlevel_default_overlay",
sdk_version: "current",
vendor: true
}

View File

@@ -1,10 +0,0 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.xiaomi_sm8250.cmi.overlay.hwlevel_default"
android:versionCode="1"
android:versionName="1.0">
<application android:hasCode="false" />
<overlay
android:targetPackage="android"
android:isStatic="true"
android:priority="1"/>
</manifest>

View File

@@ -1,30 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2017 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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>sensorLocationX</item>
<item>sensorLocationY</item>
<item>sensorRadius</item>
-->
<item>540</item>
<item>1907</item>
<item>99</item>
</integer-array>
</resources>

View File

@@ -1,5 +0,0 @@
runtime_resource_overlay {
name: "xiaomi_cmi_hwlevel_p01_overlay",
sdk_version: "current",
vendor: true
}

View File

@@ -1,12 +0,0 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.xiaomi_sm8250.cmi.overlay.hwlevel_p01"
android:versionCode="1"
android:versionName="1.0">
<application android:hasCode="false" />
<overlay
android:requiredSystemPropertyName="ro.boot.hwlevel"
android:requiredSystemPropertyValue="P0.1"
android:targetPackage="android"
android:isStatic="true"
android:priority="2"/>
</manifest>

View File

@@ -1,30 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2017 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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>sensorLocationX</item>
<item>sensorLocationY</item>
<item>sensorRadius</item>
-->
<item>549</item>
<item>1925</item>
<item>99</item>
</integer-array>
</resources>

View File

@@ -1,5 +0,0 @@
runtime_resource_overlay {
name: "xiaomi_cmi_hwlevel_p1_overlay",
sdk_version: "current",
vendor: true
}

View File

@@ -1,12 +0,0 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.xiaomi_sm8250.cmi.overlay.hwlevel_p1"
android:versionCode="1"
android:versionName="1.0">
<application android:hasCode="false" />
<overlay
android:requiredSystemPropertyName="ro.boot.hwlevel"
android:requiredSystemPropertyValue="P1"
android:targetPackage="android"
android:isStatic="true"
android:priority="2"/>
</manifest>

View File

@@ -1,30 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2017 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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>sensorLocationX</item>
<item>sensorLocationY</item>
<item>sensorRadius</item>
-->
<item>549</item>
<item>1925</item>
<item>99</item>
</integer-array>
</resources>

View File

@@ -33,3 +33,8 @@ ro.hardware.audio.primary=cmi
# Display
ro.surface_flinger.set_touch_timer_ms=200
vendor.display.defer_fps_frame_count=2
# Fingerprint
persist.vendor.fingerprint.sensor_location=540|1907|99
persist.vendor.fingerprint.type=udfps_optical
persist.vendor.fingerprint.udfps.control_illumination=true