sm8450-common: Build nxp nfc service from source
Change-Id: Ib2294005a1761570c4dab98b7c1a44728406b428
This commit is contained in:
parent
9b6867268a
commit
5e4d14e637
11 changed files with 29 additions and 39 deletions
|
@ -235,7 +235,7 @@ $(foreach sku, $(call to-upper, $(DEVICE_MANIFEST_SKUS)), \
|
||||||
$(eval DEVICE_MANIFEST_$(sku)_FILES := \
|
$(eval DEVICE_MANIFEST_$(sku)_FILES := \
|
||||||
$(COMMON_PATH)/vintf/manifest.xml \
|
$(COMMON_PATH)/vintf/manifest.xml \
|
||||||
$(COMMON_PATH)/vintf/manifest_xiaomi.xml \
|
$(COMMON_PATH)/vintf/manifest_xiaomi.xml \
|
||||||
$(if $(TARGET_NFC_SUPPORTED_SKUS),,$(COMMON_PATH)/vintf/manifest_nfc.xml) \
|
$(if $(TARGET_NFC_SUPPORTED_SKUS),$(COMMON_PATH)/vintf/manifest_no_nfc.xml,) \
|
||||||
))
|
))
|
||||||
|
|
||||||
ifneq ($(TARGET_NFC_SUPPORTED_SKUS),)
|
ifneq ($(TARGET_NFC_SUPPORTED_SKUS),)
|
||||||
|
|
|
@ -309,6 +309,7 @@ PRODUCT_COPY_FILES += \
|
||||||
|
|
||||||
# NFC
|
# NFC
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
android.hardware.nfc-service.nxp \
|
||||||
android.hardware.nfc@1.2.vendor \
|
android.hardware.nfc@1.2.vendor \
|
||||||
libchrome.vendor
|
libchrome.vendor
|
||||||
|
|
||||||
|
|
|
@ -768,20 +768,7 @@ vendor/etc/seccomp_policy/modemManager.policy
|
||||||
vendor/etc/public.libraries.txt
|
vendor/etc/public.libraries.txt
|
||||||
|
|
||||||
# NFC
|
# NFC
|
||||||
vendor/bin/hw/vendor.nxp.hardware.nfc@2.0-service
|
|
||||||
vendor/bin/nqnfcinfo
|
|
||||||
vendor/bin/pnscr
|
|
||||||
vendor/bin/pnscr-mi
|
|
||||||
vendor/bin/pnscr-rf
|
|
||||||
vendor/etc/init/vendor.nxp.hardware.nfc@2.0-service.rc
|
|
||||||
vendor/lib/libsn100u_fw.so
|
|
||||||
vendor/lib/libsn220u_fw.so
|
|
||||||
vendor/lib/nfc_nci.nqx.default.hw.v1.so
|
|
||||||
vendor/lib/vendor.nxp.hardware.nfc@2.0.so
|
|
||||||
vendor/lib64/libsn100u_fw.so
|
vendor/lib64/libsn100u_fw.so
|
||||||
vendor/lib64/libsn220u_fw.so
|
|
||||||
vendor/lib64/nfc_nci.nqx.default.hw.v1.so
|
|
||||||
vendor/lib64/vendor.nxp.hardware.nfc@2.0.so
|
|
||||||
|
|
||||||
# Perf
|
# Perf
|
||||||
vendor/bin/hw/vendor.qti.hardware.perf-hal-service
|
vendor/bin/hw/vendor.qti.hardware.perf-hal-service
|
||||||
|
|
3
sepolicy/vendor/file_contexts
vendored
3
sepolicy/vendor/file_contexts
vendored
|
@ -72,6 +72,9 @@
|
||||||
# Modem
|
# Modem
|
||||||
/dev/smd8 u:object_r:vendor_radio_smd_device:s0
|
/dev/smd8 u:object_r:vendor_radio_smd_device:s0
|
||||||
|
|
||||||
|
# NFC
|
||||||
|
/vendor/bin/hw/android\.hardware\.nfc-service\.nxp u:object_r:hal_nfc_default_exec:s0
|
||||||
|
|
||||||
# Powershare
|
# Powershare
|
||||||
/vendor/bin/hw/vendor\.lineage\.powershare@1\.0-service\.xiaomi u:object_r:hal_lineage_powershare_default_exec:s0
|
/vendor/bin/hw/vendor\.lineage\.powershare@1\.0-service\.xiaomi u:object_r:hal_lineage_powershare_default_exec:s0
|
||||||
|
|
||||||
|
|
2
sepolicy/vendor/hal_nfc.te
vendored
2
sepolicy/vendor/hal_nfc.te
vendored
|
@ -1,4 +1,2 @@
|
||||||
allow hal_nfc_default vendor_nfc_vendor_data_file:dir create_dir_perms;
|
allow hal_nfc_default vendor_nfc_vendor_data_file:dir create_dir_perms;
|
||||||
allow hal_nfc_default vendor_nfc_vendor_data_file:file create_file_perms;
|
allow hal_nfc_default vendor_nfc_vendor_data_file:file create_file_perms;
|
||||||
|
|
||||||
get_prop(hal_nfc_default, vendor_nfc_mi_prop)
|
|
||||||
|
|
1
sepolicy/vendor/init.te
vendored
1
sepolicy/vendor/init.te
vendored
|
@ -1,7 +1,6 @@
|
||||||
set_prop(vendor_init, vendor_fp_prop)
|
set_prop(vendor_init, vendor_fp_prop)
|
||||||
set_prop(vendor_init, vendor_fp_info_prop)
|
set_prop(vendor_init, vendor_fp_info_prop)
|
||||||
set_prop(vendor_init, vendor_thermal_normal_prop)
|
set_prop(vendor_init, vendor_thermal_normal_prop)
|
||||||
set_prop(vendor_init, vendor_nfc_mi_prop)
|
|
||||||
set_prop(vendor_init, vendor_ssr_prop)
|
set_prop(vendor_init, vendor_ssr_prop)
|
||||||
set_prop(vendor_init, vendor_edgnss_qxwz_downloadak_prop)
|
set_prop(vendor_init, vendor_edgnss_qxwz_downloadak_prop)
|
||||||
set_prop(vendor_init, vendor_qcc_prop)
|
set_prop(vendor_init, vendor_qcc_prop)
|
||||||
|
|
3
sepolicy/vendor/property.te
vendored
3
sepolicy/vendor/property.te
vendored
|
@ -18,9 +18,6 @@ vendor_public_prop(vendor_mi_ins_prop)
|
||||||
# Mlipay
|
# Mlipay
|
||||||
vendor_public_prop(vendor_payment_security_prop)
|
vendor_public_prop(vendor_payment_security_prop)
|
||||||
|
|
||||||
# NFC
|
|
||||||
vendor_public_prop(vendor_nfc_mi_prop)
|
|
||||||
|
|
||||||
# Panel
|
# Panel
|
||||||
vendor_public_prop(vendor_panel_info_prop)
|
vendor_public_prop(vendor_panel_info_prop)
|
||||||
|
|
||||||
|
|
4
sepolicy/vendor/property_contexts
vendored
4
sepolicy/vendor/property_contexts
vendored
|
@ -35,10 +35,6 @@ persist.vendor.sys.provision.status u:object_r:vendor_payment_security_prop:s0
|
||||||
vendor.sys.feature_state u:object_r:vendor_payment_security_prop:s0
|
vendor.sys.feature_state u:object_r:vendor_payment_security_prop:s0
|
||||||
vendor.sys.rpmb_state u:object_r:vendor_payment_security_prop:s0
|
vendor.sys.rpmb_state u:object_r:vendor_payment_security_prop:s0
|
||||||
|
|
||||||
# NFC
|
|
||||||
ro.vendor.nfc. u:object_r:vendor_nfc_mi_prop:s0
|
|
||||||
ro.vendor.se. u:object_r:vendor_nfc_mi_prop:s0
|
|
||||||
|
|
||||||
# Sensors
|
# Sensors
|
||||||
persist.vendor.sensors.ins. u:object_r:vendor_mi_ins_prop:s0
|
persist.vendor.sensors.ins. u:object_r:vendor_mi_ins_prop:s0
|
||||||
persist.vendor.sensors.ins_debug u:object_r:vendor_mi_ins_prop:s0
|
persist.vendor.sensors.ins_debug u:object_r:vendor_mi_ins_prop:s0
|
||||||
|
|
2
sepolicy/vendor/service_contexts
vendored
Normal file
2
sepolicy/vendor/service_contexts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# NFC
|
||||||
|
vendor.nxp.nxpnfc_aidl.INxpNfc/default u:object_r:hal_nfc_service:s0
|
|
@ -1,21 +1,15 @@
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2024 The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
<manifest version="1.0" type="device">
|
<manifest version="1.0" type="device">
|
||||||
<!-- NFC HAL service -->
|
<!-- NFC HAL service -->
|
||||||
<hal format="hidl">
|
<hal format="aidl" override="true">
|
||||||
<name>android.hardware.nfc</name>
|
<name>android.hardware.nfc</name>
|
||||||
<transport>hwbinder</transport>
|
<fqname>INfc/default</fqname>
|
||||||
<version>1.2</version>
|
|
||||||
<interface>
|
|
||||||
<name>INfc</name>
|
|
||||||
<instance>default</instance>
|
|
||||||
</interface>
|
|
||||||
</hal>
|
</hal>
|
||||||
<hal format="hidl">
|
<hal format="aidl" override="true">
|
||||||
<name>vendor.nxp.hardware.nfc</name>
|
<name>vendor.nxp.nxpnfc_aidl</name>
|
||||||
<transport>hwbinder</transport>
|
<fqname>INxpNfc/default</fqname>
|
||||||
<version>2.0</version>
|
|
||||||
<interface>
|
|
||||||
<name>INqNfc</name>
|
|
||||||
<instance>default</instance>
|
|
||||||
</interface>
|
|
||||||
</hal>
|
</hal>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
13
vintf/manifest_no_nfc.xml
Normal file
13
vintf/manifest_no_nfc.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2024 The LineageOS Project
|
||||||
|
SPDX-License-Identifier: Apache-2.0
|
||||||
|
-->
|
||||||
|
<manifest version="1.0" type="device">
|
||||||
|
<!-- NFC HAL service -->
|
||||||
|
<hal format="aidl" override="true">
|
||||||
|
<name>android.hardware.nfc</name>
|
||||||
|
</hal>
|
||||||
|
<hal format="aidl" override="true">
|
||||||
|
<name>vendor.nxp.nxpnfc_aidl</name>
|
||||||
|
</hal>
|
||||||
|
</manifest>
|
Loading…
Reference in a new issue