gale: Kang TMS NFC stack from zircon

Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
wulan17 committed 2025-07-13 16:59:58 +07:00
1 parent 762549c2e2
commit 0205097800
19 files changed
+252 -243

No files matched your search

+244 -212
View File
@@ -5943,41 +5943,6 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "7816-3-T1",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/7816-3-T1.so",
],
shared_libs: [
"vendor.tms.tmsnfc@1.0",
"libbinder_ndk",
"libcutils",
"libhardware",
"libhidlbase",
"libutils",
"liblog",
"libbase",
"android.hardware.nfc@1.0",
"libutilscallstack",
"tms-utils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "android.hardware.camera.provider@2.6-impl-mediatek",
owner: "xiaomi",
@@ -13992,46 +13957,6 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "nfc_nci.thn31nfc.tms",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/nfc_nci.thn31nfc.tms.so",
],
shared_libs: [
"libbase_shim",
"android.hardware.nfc@1.0",
"android.hardware.nfc@1.1",
"android.hardware.nfc@1.2",
"android.hardware.secure_element@1.0",
"libbase",
"libcutils",
"libhardware",
"libhardware_legacy",
"libhidlbase",
"liblog",
"libutils",
"vendor.tms.tmsnfc@1.0",
"tms-utils",
"tms-cos-dl-common",
"tms-cos-dl-ree",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "ov50d40_truly_main_i_mipi_raw_IdxMgr",
owner: "xiaomi",
@@ -14768,106 +14693,6 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "tms-cos-dl-common",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/tms-cos-dl-common.so",
],
shared_libs: [
"vendor.tms.tmsnfc@1.0",
"libbinder_ndk",
"libcutils",
"libhardware",
"libhidlbase",
"libutils",
"liblog",
"libbase",
"tms-utils",
"7816-3-T1",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "tms-cos-dl-ree",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/tms-cos-dl-ree.so",
],
shared_libs: [
"vendor.tms.tmsnfc@1.0",
"libbinder_ndk",
"libcutils",
"libhardware",
"libhidlbase",
"libutils",
"liblog",
"libbase",
"android.hardware.nfc@1.0",
"libutilscallstack",
"tms-utils",
"tms-cos-dl-common",
"7816-3-T1",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "tms-utils",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/tms-utils.so",
],
shared_libs: [
"libbase_shim",
"libcutils",
"libutils",
"liblog",
"libbase",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.mediatek.hardware.camera.atms@1.0",
owner: "xiaomi",
@@ -15373,6 +15198,31 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.tms.nfc-V1-ndk",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/vendor.tms.nfc-V1-ndk.so",
],
shared_libs: [
"libbinder_ndk",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.tms.tmsnfc@1.0",
owner: "xiaomi",
@@ -15957,6 +15807,188 @@ cc_prebuilt_library_shared {
system_ext_specific: true,
}
cc_prebuilt_library_shared {
name: "7816-3-T1",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/odm/lib64/7816-3-T1.so",
],
shared_libs: [
"vendor.tms.tmsnfc@1.0",
"vendor.tms.nfc-V1-ndk",
"android.hardware.nfc-V1-ndk",
"libbinder_ndk",
"libcutils",
"libhardware",
"libhidlbase",
"libutils",
"liblog",
"libbase",
"android.hardware.nfc@1.0",
"libutilscallstack",
"tms-utils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
device_specific: true,
}
cc_prebuilt_library_shared {
name: "nfc_nci.thn31nfc.tms",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/odm/lib64/nfc_nci.thn31nfc.tms.so",
],
shared_libs: [
"libbase_shim",
"android.hardware.nfc@1.0",
"android.hardware.nfc@1.1",
"android.hardware.nfc@1.2",
"android.hardware.secure_element@1.0",
"libbase",
"libcutils",
"libhardware",
"libhardware_legacy",
"libhidlbase",
"liblog",
"libutils",
"vendor.tms.tmsnfc@1.0",
"tms-utils",
"tms-cos-dl-common",
"tms-cos-dl-ree",
"android.hardware.nfc-V1-ndk",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
device_specific: true,
}
cc_prebuilt_library_shared {
name: "tms-cos-dl-common",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/odm/lib64/tms-cos-dl-common.so",
],
shared_libs: [
"vendor.tms.tmsnfc@1.0",
"vendor.tms.nfc-V1-ndk",
"android.hardware.nfc-V1-ndk",
"libbinder_ndk",
"libcutils",
"libhardware",
"libhidlbase",
"libutils",
"liblog",
"libbase",
"tms-utils",
"7816-3-T1",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
device_specific: true,
}
cc_prebuilt_library_shared {
name: "tms-cos-dl-ree",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/odm/lib64/tms-cos-dl-ree.so",
],
shared_libs: [
"vendor.tms.tmsnfc@1.0",
"vendor.tms.nfc-V1-ndk",
"android.hardware.nfc-V1-ndk",
"libbinder_ndk",
"libcutils",
"libhardware",
"libhidlbase",
"libutils",
"liblog",
"libbase",
"android.hardware.nfc@1.0",
"libutilscallstack",
"tms-utils",
"tms-cos-dl-common",
"7816-3-T1",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
device_specific: true,
}
cc_prebuilt_library_shared {
name: "tms-utils",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/odm/lib64/tms-utils.so",
],
shared_libs: [
"libbase_shim",
"libcutils",
"libutils",
"liblog",
"libbase",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
device_specific: true,
}
android_app_import {
name: "ImsService",
owner: "xiaomi",
@@ -16473,43 +16505,6 @@ cc_prebuilt_binary {
soc_specific: true,
}
cc_prebuilt_binary {
name: "android.hardware.nfc@1.2-service-tms",
owner: "xiaomi",
target: {
android_arm64: {
srcs: [
"proprietary/vendor/bin/hw/android.hardware.nfc@1.2-service-tms",
],
shared_libs: [
"nfc_nci.thn31nfc.tms",
"libbase",
"libcutils",
"libhardware",
"liblog",
"libutils",
"android.hardware.nfc@1.0",
"android.hardware.nfc@1.1",
"android.hardware.nfc@1.2",
"libhidlbase",
"vendor.tms.tmsnfc@1.0",
"tms-utils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
strip: {
none: true,
},
prefer: true,
relative_install_path: "hw",
soc_specific: true,
}
cc_prebuilt_binary {
name: "android.hardware.secure_element@1.2-service-mediatek",
owner: "xiaomi",
@@ -17492,6 +17487,43 @@ cc_prebuilt_binary {
system_ext_specific: true,
}
cc_prebuilt_binary {
name: "android.hardware.nfc@1.2-service-tms",
owner: "xiaomi",
target: {
android_arm64: {
srcs: [
"proprietary/odm/bin/hw/android.hardware.nfc@1.2-service-tms",
],
shared_libs: [
"nfc_nci.thn31nfc.tms",
"libbase",
"libcutils",
"libhardware",
"liblog",
"libutils",
"android.hardware.nfc@1.0",
"android.hardware.nfc@1.1",
"android.hardware.nfc@1.2",
"libhidlbase",
"vendor.tms.tmsnfc@1.0",
"tms-utils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
strip: {
none: true,
},
prefer: true,
relative_install_path: "hw",
device_specific: true,
}
install_symlink {
name: "vendor_bin_hw_android_hardware_media_c2@1_2-mediatek",
soc_specific: true,
+8 -10
View File
@@ -364,7 +364,6 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/gale/proprietary/vendor/etc/init/android.hardware.graphics.allocator@4.0-service-mediatek.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.graphics.allocator@4.0-service-mediatek.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/android.hardware.keymaster@4.1-service.beanpod.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.keymaster@4.1-service.beanpod.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/android.hardware.media.c2@1.2-mediatek.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.media.c2@1.2-mediatek.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/android.hardware.nfc@1.2-service-tms.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.nfc@1.2-service-tms.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/android.hardware.secure_element@1.2-service-mediatek.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.secure_element@1.2-service-mediatek.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/android.hardware.tetheroffload-V1-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.tetheroffload-V1-service.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/camerahalserver.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/camerahalserver.rc \
@@ -375,8 +374,6 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/gale/proprietary/vendor/etc/init/init.cccirpcd.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.cccirpcd.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/init.thermal.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.thermal.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/init.thermalloadalgod.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.thermalloadalgod.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/init.thn31.nfc.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.thn31.nfc.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/init.thn31.se.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.thn31.se.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/init.volte_imcb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.volte_imcb.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/init.volte_imsm_93.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.volte_imsm_93.rc \
vendor/xiaomi/gale/proprietary/vendor/etc/init/init.volte_md_status.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.volte_md_status.rc \
@@ -632,7 +629,6 @@ PRODUCT_PACKAGES += \
libvpud_vcodec \
libvt_custom \
vendor.mediatek.hardware.rcs@2.0 \
7816-3-T1 \
android.hardware.camera.provider@2.6-impl-mediatek \
android.hardware.gnss-impl-mediatek \
android.hardware.gnss@2.1-impl-mediatek \
@@ -880,7 +876,6 @@ PRODUCT_PACKAGES += \
libwvkeybox \
libwvkeyboxext \
libmtkcam_streaminfo_plugin-p1stt \
nfc_nci.thn31nfc.tms \
ov50d40_truly_main_i_mipi_raw_IdxMgr \
ov50d40_truly_main_i_mipi_raw_tuning \
ov50d40_truly_main_i_mipi_raw_xts_IdxMgr \
@@ -910,9 +905,6 @@ PRODUCT_PACKAGES += \
sc202cs_sunny_marco_i_mipi_raw_xts_IdxMgr \
sc202cs_sunny_marco_i_mipi_raw_xts_tuning \
sensors.touch.detect \
tms-cos-dl-common \
tms-cos-dl-ree \
tms-utils \
vendor.mediatek.hardware.camera.atms@1.0 \
vendor.mediatek.hardware.camera.bgservice@1.0 \
vendor.mediatek.hardware.camera.bgservice@1.1 \
@@ -930,6 +922,7 @@ PRODUCT_PACKAGES += \
vendor.mediatek.hardware.netdagent@1.0 \
vendor.mediatek.hardware.power@1.1 \
vendor.mediatek.hardware.power@2.0 \
vendor.tms.nfc-V1-ndk \
vendor.tms.tmsnfc@1.0 \
wechat.beanpod \
libcomutils \
@@ -948,6 +941,11 @@ PRODUCT_PACKAGES += \
libvt_avsync \
vendor.mediatek.hardware.videotelephony-V1-ndk \
vendor.mediatek.hardware.videotelephony@1.0 \
7816-3-T1 \
nfc_nci.thn31nfc.tms \
tms-cos-dl-common \
tms-cos-dl-ree \
tms-utils \
ImsService \
mediatek-common \
mediatek-framework \
@@ -975,7 +973,6 @@ PRODUCT_PACKAGES += \
android.hardware.graphics.allocator@4.0-service-mediatek \
android.hardware.keymaster@4.1-service.beanpod \
android.hardware.media.c2@1.2-mediatek-64b \
android.hardware.nfc@1.2-service-tms \
android.hardware.secure_element@1.2-service-mediatek \
camerahalserver \
mtkfusionrild \
@@ -1008,7 +1005,8 @@ PRODUCT_PACKAGES += \
wlan_assistant \
wmt_launcher \
wmt_loader \
vtservice
vtservice \
android.hardware.nfc@1.2-service-tms
PRODUCT_PACKAGES += \
vendor_bin_hw_android_hardware_media_c2@1_2-mediatek \
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +0,0 @@
service nfc_hal_service.tms /vendor/bin/hw/android.hardware.nfc@1.2-service-tms
class hal
user nfc
group nfc
-13
View File
@@ -1,13 +0,0 @@
# This file needs to be executed by vendor_init at boot of the device,
# in normal and FM mode.
# For factory mode, nfcstackp to create the socket as vendor here
on boot
mkdir /data/vendor/nfc_socket 0770 nfc nfc
mkdir /data/vendor 0777 nfc nfc
mkdir /data/vendor/nfc 0777 nfc nfc
mkdir /data/vendor/nfc/param 0777 nfc nfc
chmod 0660 /dev/tms_nfc
chown nfc nfc /dev/tms_nfc
chmod 0666 /sys/nfc/chip_name
chown nfc nfc /sys/nfc/chip_name
-4
View File
@@ -1,4 +0,0 @@
on boot
mkdir /data/vendor/secure_element 0777 secure_element secure_element
chmod 0660 /dev/tms_ese
chown secure_element secure_element /dev/tms_ese
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.