sm7125: build nfc hal from source

Change-Id: I2a64b9c743c9d04606358e6e31d0d5c6ae4fbfd3
fourteen-wip
Jan Altensen 3 years ago committed by Simon1511
parent d9416cc5f0
commit a9f99a10f0
  1. 2
      common.mk
  2. 33
      configs/framework_compatibility_matrix.xml
  3. 6
      lineage.dependencies
  4. 8
      proprietary-files.txt
  5. 2
      rootdir/etc/init.nfc.samsung.rc
  6. 10
      rootdir/etc/init.qcom.rc
  7. 2
      sepolicy/vendor/file_contexts

@ -228,6 +228,7 @@ PRODUCT_PACKAGES += \
# NFC
PRODUCT_PACKAGES += \
android.hardware.nfc@1.2-service.samsung \
libnfc-nci \
libnfc_nci_jni \
NfcNci \
@ -240,7 +241,6 @@ PRODUCT_COPY_FILES += \
$(COMMON_PATH)/configs/nfc/libnfc-qrd-SN100_38_4MHZ.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-qrd-SN100_38_4MHZ.conf \
$(COMMON_PATH)/configs/nfc/libnfc-sec-vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-sec-vendor.conf \
$(COMMON_PATH)/configs/nfc/nfcee_access.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/nfcee_access.xml \
$(COMMON_PATH)/configs/nfc/nfc_key:$(TARGET_COPY_OUT_SYSTEM)/etc/nfc_key \
$(COMMON_PATH)/configs/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/libnfc-nci.conf
# OMX

@ -278,23 +278,6 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.nxp.hardware.nfc</name>
<version>1.0-1</version>
<version>2.0</version>
<interface>
<name>INqNfc</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.nxp.nxpnfclegacy</name>
<version>1.0</version>
<interface>
<name>INxpNfcLegacy</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.qti.automotive.qcarcam</name>
<version>1.0</version>
@ -968,22 +951,6 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.samsung.hardware.nfc</name>
<version>2.0</version>
<interface>
<name>ISehNfc</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.samsung.hardware.nfc</name>
<version>2.0</version>
<interface>
<name>ISehNfc</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.samsung.hardware.radio</name>
<version>2.1</version>

@ -2,5 +2,9 @@
{
"repository": "android_kernel_samsung_sm7125",
"target_path": "kernel/samsung/sm7125"
}
},
{
"repository": "android_hardware_samsung_nfc",
"target_path": "hardware/samsung/nfc"
}
]

@ -943,17 +943,9 @@ vendor/lib/libhta.so
vendor/lib64/libhta.so
# NFC
vendor/bin/nqnfcinfo
vendor/bin/hw/sec.android.hardware.nfc@1.2-service
vendor/etc/init/sec.android.hardware.nfc@1.2-service.rc
-vendor/etc/vintf/manifest/sec.android.hardware.nfc@1.2-service.xml
vendor/etc/nfc/sec_s3nrn4v_hwreg.bin
vendor/etc/nfc/sec_s3nrn4v_swreg.bin
vendor/firmware/nfc/sec_s3nrn4v_firmware.bin
vendor/lib64/vendor.samsung.hardware.nfc@2.0.so
vendor/lib64/nfc_nci_sec.so
vendor/lib64/libNfcProperties.so
vendor/lib/libsn100u_fw.so
# OMX
vendor/etc/seccomp_policy/mediacodec.policy

@ -21,6 +21,6 @@ on post-fs-data
# NFC KEY
mkdir /data/nfc_log 0750 nfc system
copy /system/etc/nfc_key /data/nfc/Key
# copy /system/etc/nfc_key /data/nfc/Key
chmod 660 /data/nfc/Key
chown nfc nfc /data/nfc/Key

@ -472,11 +472,11 @@ on post-fs-data
mkdir /efs/biometrics 0770 system system
mkdir /efs/biometrics/meta 0770 system system
service nqnfcinfo /system/vendor/bin/nqnfcinfo
class late_start
group nfc
user system
oneshot
#service nqnfcinfo /system/vendor/bin/nqnfcinfo
# class late_start
# group nfc
# user system
# oneshot
service iop /system/vendor/bin/iop
class main

@ -21,4 +21,4 @@
/(vendor|system/vendor)/bin/hw/vendor.samsung.hardware.biometrics.fingerprint@3.0-service u:object_r:hal_fingerprint_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.samsung.sm7125 u:object_r:hal_lineage_fod_default_exec:s0
/(vendor|system/vendor)/bin/hw/android.hardware.vibrator@1.3-service.sm7125 u:object_r:hal_vibrator_default_exec:s0
/(vendor|system/vendor)/bin/hw/sec.android.hardware.nfc@1.2-service u:object_r:hal_nfc_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@1\.2-service\.samsung u:object_r:hal_nfc_default_exec:s0

Loading…
Cancel
Save