avicii: Switch to PN553 NFC

Change-Id: Ia90aa2163fc69e75b4378936386629ec47456a93
This commit is contained in:
KakatkarAkshay
2023-01-25 15:42:20 +05:30
committed by AmolAmrit
parent e575c0efb3
commit 73d30c6b7a
4 changed files with 31 additions and 14 deletions

View File

@@ -286,8 +286,7 @@ PRODUCT_PACKAGES += \
# NFC
PRODUCT_PACKAGES += \
android.hardware.nfc_snxxx@1.2-service \
android.hardware.secure_element@1.2.vendor \
android.hardware.nfc@1.2-service \
com.android.nfc_extras \
NfcNci \
Tag

View File

@@ -15,14 +15,39 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.nxp.eventprocessor</name>
<version>1.0</version>
<interface>
<name>INxpEseEvtProcessor</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.nxp.nxpnfc</name>
<version>2.0</version>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>INxpNfc</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.nxp.uwb</name>
<version>1.0</version>
<interface>
<name>IUwb</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.nxpnq330.nxpese</name>
<version>1.0</version>
<interface>
<name>INxpEse</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.oneplus.faceunlock.hal</name>
<version>1.0</version>

View File

@@ -58,15 +58,9 @@ function blob_fixup() {
odm/bin/hw/vendor.oplus.hardware.biometrics.fingerprint@2.1-service)
grep -q libshims_fingerprint.oplus.so "${2}" || "${PATCHELF}" --add-needed libshims_fingerprint.oplus.so "${2}"
;;
odm/etc/init/wlchgmonitor.rc)
sed -i "/disabled/d;/seclabel/d" "${2}"
;;
odm/etc/vintf/manifest/manifest_oplus_fingerprint.xml)
sed -ni "/android.hardware.biometrics.fingerprint/{x;s/hal format/hal override=\"true\" format/;x};x;1!p;\${x;p}" "${2}"
;;
odm/lib64/libpwirissoft.so)
"${SIGSCAN}" -p "72 1F 00 94" -P "1F 20 03 D5" -f "${2}"
;;
product/etc/sysconfig/com.android.hotwordenrollment.common.util.xml)
sed -i "s/\/my_product/\/product/" "${2}"
;;
@@ -74,8 +68,7 @@ function blob_fixup() {
sed -i "s/android.hidl.base@1.0.so/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/" "${2}"
;;
vendor/etc/libnfc-nxp.conf)
sed -i "s/^NXP_RF_CONF_BLK_9/#NXP_RF_CONF_BLK_9/" "${2}"
sed -i "s/^NXP_RF_CONF_BLK_10/#NXP_RF_CONF_BLK_10/" "${2}"
sed -i "/NXP_NFC_DEV_NODE/ s/pn553/nq-nci/" "${2}"
;;
vendor/lib64/hw/com.qti.chi.override.so)
grep -q libcamera_metadata_shim.so "${2}" || "${PATCHELF}" --add-needed libcamera_metadata_shim.so "${2}"

View File

@@ -866,9 +866,9 @@ vendor/lib64/unnhal-acc-hta.so
vendor/lib64/unnhal-acc-hvx.so
# NFC
odm/etc/nfc/libnfc-mtp-SN100.conf_19805:vendor/etc/libnfc-nxp.conf
odm/etc/nfc/libnfc-nci.conf_19805:vendor/etc/libnfc-nci.conf
odm/lib/libsn100u_fw.so:vendor/lib/libsn100u_fw.so
odm/etc/nfc/libnfc-nci.conf_20801:vendor/etc/libnfc-nci.conf
odm/etc/nfc/libnfc-nxp.conf_20801:vendor/etc/libnfc-nxp.conf
odm/lib/libpn553_fw.so:vendor/lib64/libpn553_fw.so
# OMX
vendor/lib/libAlacSwDec.so