diff --git a/Android.bp b/Android.bp index 74026e7..53a4f33 100644 --- a/Android.bp +++ b/Android.bp @@ -8044,6 +8044,86 @@ cc_prebuilt_library_shared { soc_specific: true, } +cc_prebuilt_library_shared { + name: "libjc_keymint.nxp", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/libjc_keymint.nxp.so", + ], + shared_libs: [ + "libkeymint_shim", + "android.hardware.security.rkp-V3-ndk", + "android.hardware.security.secureclock-V1-ndk", + "android.hardware.security.sharedsecret-V1-ndk", + "lib_android_keymaster_keymint_utils-v36", + "libbase-v36", + "libbinder", + "libcppbor", + "libkeymaster_portable", + "libkeymaster_messages", + "libsoft_attestation_cert", + "liblog", + "libcrypto", + "libcutils", + "libutils", + "libjc_keymint_transport.nxp", + "libbinder_ndk", + "libmemunreachable", + "android.hardware.security.keymint-V3-ndk-v36", + "android.hardware.secure_element-V1-ndk", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "64", + prefer: true, + soc_specific: true, +} + +cc_prebuilt_library_shared { + name: "libjc_keymint_transport.nxp", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/libjc_keymint_transport.nxp.so", + ], + shared_libs: [ + "libkeymint_shim", + "android.hardware.security.keymint-V3-ndk-v36", + "android.se.omapi-V1-ndk", + "android.hardware.secure_element-V1-ndk", + "libbase-v36", + "liblog", + "libcutils", + "libutils", + "libhardware", + "libhardware_legacy", + "libhidlbase", + "libbinder_ndk", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "64", + prefer: true, + soc_specific: true, +} + cc_prebuilt_library_shared { name: "libjpeg-alpha-oal_vendor", owner: "xiaomi", @@ -39419,6 +39499,48 @@ cc_prebuilt_binary { soc_specific: true, } +cc_prebuilt_binary { + name: "android.hardware.security.keymint-service.strongbox.nxp", + owner: "xiaomi", + target: { + android_arm64: { + srcs: [ + "proprietary/vendor/bin/hw/android.hardware.security.keymint-service.strongbox.nxp", + ], + shared_libs: [ + "libkeymint_shim", + "android.hardware.security.rkp-V3-ndk", + "android.hardware.security.sharedsecret-V1-ndk", + "lib_android_keymaster_keymint_utils-v36", + "android.se.omapi-V1-ndk", + "libbase-v36", + "libbinder_ndk", + "libcppbor", + "libcrypto", + "libkeymaster_portable", + "libjc_keymint.nxp", + "libjc_keymint_transport.nxp", + "liblog", + "libutils", + "libhidlbase", + "android.hardware.security.keymint-V3-ndk-v36", + "android.hardware.secure_element-V1-ndk", + "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.security.keymint@3.0-service.mitee", owner: "xiaomi", diff --git a/Android.mk b/Android.mk index e9544b7..b8ad7a8 100644 --- a/Android.mk +++ b/Android.mk @@ -6,27 +6,27 @@ LOCAL_PATH := $(call my-dir) ifeq ($(TARGET_DEVICE),klee) -$(call add-radio-file-sha1-checked,radio/apusys.img,5a3c6354f3f7569297ab70a7892b98a0850ec3ee) -$(call add-radio-file-sha1-checked,radio/audio_dsp.img,70222bd8f6ab17b074e4c232e8cb2a459a47f363) -$(call add-radio-file-sha1-checked,radio/ccu.img,17613beb9aa5664d080737edad04b7b916285fbf) -$(call add-radio-file-sha1-checked,radio/connsys_bt.img,f85604f7382a7f81aef3c2bc35ee417ae8157935) -$(call add-radio-file-sha1-checked,radio/connsys_gnss.img,b34970d21b91e8df69cd0375aa0def701e3f96d5) -$(call add-radio-file-sha1-checked,radio/connsys_wifi.img,48938bca651f63fa89e8cd9874014287ee0078e1) -$(call add-radio-file-sha1-checked,radio/dpm.img,4638f7e79932842218c42d20233f6ce3adb1428b) -$(call add-radio-file-sha1-checked,radio/gpueb.img,4376fc04595aef9dc1b8cba02dfc343066056088) -$(call add-radio-file-sha1-checked,radio/gz.img,63b828122ddbc2feb959e2400c01e8863f38798f) +$(call add-radio-file-sha1-checked,radio/apusys.img,4f604a09f40e451101982665f70d4f7c98c77518) +$(call add-radio-file-sha1-checked,radio/audio_dsp.img,0c7eb8b8380fd3c466f64344abd9dae0a64bc852) +$(call add-radio-file-sha1-checked,radio/ccu.img,3e7c6d237a4233ecbd72163664f8b6bc700e2090) +$(call add-radio-file-sha1-checked,radio/connsys_bt.img,7babe218777f01a4445d032bbd08ffe3c62f5855) +$(call add-radio-file-sha1-checked,radio/connsys_gnss.img,a5dc7a9a34fd2f31f5a3e9ca6307c4e7408df6bd) +$(call add-radio-file-sha1-checked,radio/connsys_wifi.img,49d4e0525252a8c688f8553adf4662bf77a1245c) +$(call add-radio-file-sha1-checked,radio/dpm.img,8f1897943c289fa86b189c4fc22ce7e0d1b10304) +$(call add-radio-file-sha1-checked,radio/gpueb.img,755c52047d8b254ea74ec2f78c885895b2e4543e) +$(call add-radio-file-sha1-checked,radio/gz.img,3cfda24bca968c0e5a51cb206dc64c2ac9173b0a) $(call add-radio-file-sha1-checked,radio/lk.img,8daa12bb697144e3e08e5af9cb29f94e66b174af) $(call add-radio-file-sha1-checked,radio/logo.img,3be6266df215b2caa139f5ab20be2a2ed5ed816d) $(call add-radio-file-sha1-checked,radio/mcf_ota.img,dab58a013fa6c325b70d7fa0386e1733d63a1296) -$(call add-radio-file-sha1-checked,radio/mcupm.img,f92fff8a793528207174fa88e58d0d9cc9b83bfb) -$(call add-radio-file-sha1-checked,radio/modem.img,1827481baca37b53b6d06c41979ab9d4fcd48d21) -$(call add-radio-file-sha1-checked,radio/mvpu_algo.img,e1e219e2d6de9211f8ac5e3ee1793513284b432b) -$(call add-radio-file-sha1-checked,radio/pi_img.img,f99bd71528031a8f6c89656d12b226f732810064) +$(call add-radio-file-sha1-checked,radio/mcupm.img,6b213b6ee51f5cdc291b5c48f37eeda5ac820681) +$(call add-radio-file-sha1-checked,radio/modem.img,35302da1c059ba80c9ad753385813049478c0a59) +$(call add-radio-file-sha1-checked,radio/mvpu_algo.img,abdfffece3012cf734a2e37ecd48da0b3f618d36) +$(call add-radio-file-sha1-checked,radio/pi_img.img,06cebd2f0d9fb9ea4604d5e8981421ac5f276039) $(call add-radio-file-sha1-checked,radio/preloader_raw.img,58b36a1e257e4e4362b39b825ab673f1c9dd77fd) $(call add-radio-file-sha1-checked,radio/scp.img,fe0e8beffd43c05cdb99e15acbdfbc21f0f27b1a) -$(call add-radio-file-sha1-checked,radio/spmfw.img,a7da4d1eb341ec55006b3f5ef2f347267d10e7ba) -$(call add-radio-file-sha1-checked,radio/sspm.img,08bfe1e3750f2f9d625d5231d7f13b7a7b93d277) -$(call add-radio-file-sha1-checked,radio/tee.img,58114c171cc388f75d195e69d85e4a6e51717c02) -$(call add-radio-file-sha1-checked,radio/vcp.img,31e7740d123690161ec08cf4270acbc369a99582) +$(call add-radio-file-sha1-checked,radio/spmfw.img,2b5405d6cb2be6c5f6fdc9c55b485cef7e6e2876) +$(call add-radio-file-sha1-checked,radio/sspm.img,d5a1cf25e0b72fd6ed2282bb35d6bfa45b37fdac) +$(call add-radio-file-sha1-checked,radio/tee.img,9826abf470bd0ba90d8c4fae4d21db921a387480) +$(call add-radio-file-sha1-checked,radio/vcp.img,26a886d43a35485c199cf6782b8f76df0953f679) endif diff --git a/klee-vendor.mk b/klee-vendor.mk index 6f51e4e..0acabd6 100644 --- a/klee-vendor.mk +++ b/klee-vendor.mk @@ -608,6 +608,7 @@ PRODUCT_COPY_FILES += \ vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.identity@5.0-service.mitee.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.identity@5.0-service.mitee.rc \ vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.neuralnetworks-shim-service-mtk.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.neuralnetworks-shim-service-mtk.rc \ vendor/xiaomi/klee/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/klee/proprietary/vendor/etc/init/android.hardware.security.keymint-service.strongbox.nxp.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.security.keymint-service.strongbox.nxp.rc \ vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.security.keymint.mitee@3.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.security.keymint.mitee@3.0-service.rc \ vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.tetheroffload-V1-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.tetheroffload-V1-service.rc \ vendor/xiaomi/klee/proprietary/vendor/etc/init/camerahalserver.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/camerahalserver.rc \ @@ -736,6 +737,7 @@ PRODUCT_COPY_FILES += \ vendor/xiaomi/klee/proprietary/vendor/etc/nnapi_powerhal.json:$(TARGET_COPY_OUT_VENDOR)/etc/nnapi_powerhal.json \ vendor/xiaomi/klee/proprietary/vendor/etc/p10_36_02_0a_dsc_vdo_dbi.bin:$(TARGET_COPY_OUT_VENDOR)/etc/p10_36_02_0a_dsc_vdo_dbi.bin \ vendor/xiaomi/klee/proprietary/vendor/etc/p10_42_02_0b_dsc_vdo_dbi.bin:$(TARGET_COPY_OUT_VENDOR)/etc/p10_42_02_0b_dsc_vdo_dbi.bin \ + vendor/xiaomi/klee/proprietary/vendor/etc/permissions/android.hardware.hardware_keystore.jc-strongbox-keymint.nxp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.hardware_keystore.jc-strongbox-keymint.nxp.xml \ vendor/xiaomi/klee/proprietary/vendor/etc/permissions/android.hardware.identity_credential.mitee.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.identity_credential.mitee.xml \ vendor/xiaomi/klee/proprietary/vendor/etc/permissions/camera_extensions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/camera_extensions.xml \ vendor/xiaomi/klee/proprietary/vendor/etc/permissions/com.mediatek.hardware.vow.gva.tflite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.mediatek.hardware.vow.gva.tflite.xml \ @@ -1365,6 +1367,8 @@ PRODUCT_PACKAGES += \ libion_mtk \ libion_ulit \ libipsec_ims_shr \ + libjc_keymint.nxp \ + libjc_keymint_transport.nxp \ libjpeg-alpha-oal_vendor \ libjpeg-alpha_vendor \ libjpegdecoder_klee \ @@ -2362,6 +2366,7 @@ PRODUCT_PACKAGES += \ android.hardware.identity-service.mitee@5.0 \ android.hardware.neuralnetworks-shim-service-mtk \ android.hardware.secure_element@1.2-service-mediatek \ + android.hardware.security.keymint-service.strongbox.nxp \ android.hardware.security.keymint@3.0-service.mitee \ android.hardware.graphics.allocator-V2-service-mediatek.mt6899 \ camerahalserver \ diff --git a/proprietary/system_ext/priv-app/ImsService/ImsService.apk b/proprietary/system_ext/priv-app/ImsService/ImsService.apk index 8a2563d..decfdba 100644 Binary files a/proprietary/system_ext/priv-app/ImsService/ImsService.apk and b/proprietary/system_ext/priv-app/ImsService/ImsService.apk differ diff --git a/proprietary/vendor/bin/hw/android.hardware.security.keymint-service.strongbox.nxp b/proprietary/vendor/bin/hw/android.hardware.security.keymint-service.strongbox.nxp new file mode 100755 index 0000000..2dc608b Binary files /dev/null and b/proprietary/vendor/bin/hw/android.hardware.security.keymint-service.strongbox.nxp differ diff --git a/proprietary/vendor/etc/init/android.hardware.security.keymint-service.strongbox.nxp.rc b/proprietary/vendor/etc/init/android.hardware.security.keymint-service.strongbox.nxp.rc new file mode 100644 index 0000000..53912f3 --- /dev/null +++ b/proprietary/vendor/etc/init/android.hardware.security.keymint-service.strongbox.nxp.rc @@ -0,0 +1,8 @@ +service vendor.keymint-strongbox /vendor/bin/hw/android.hardware.security.keymint-service.strongbox.nxp + class early_hal + user 2901 + +capabilities SYS_ADMIN SYS_NICE WAKE_ALARM + +on property:ese_manager.status=running + stop vendor.keymint-strongbox diff --git a/proprietary/vendor/etc/permissions/android.hardware.hardware_keystore.jc-strongbox-keymint.nxp.xml b/proprietary/vendor/etc/permissions/android.hardware.hardware_keystore.jc-strongbox-keymint.nxp.xml new file mode 100644 index 0000000..ca49e71 --- /dev/null +++ b/proprietary/vendor/etc/permissions/android.hardware.hardware_keystore.jc-strongbox-keymint.nxp.xml @@ -0,0 +1,17 @@ + + + + + + + diff --git a/proprietary/vendor/lib64/libjc_keymint.nxp.so b/proprietary/vendor/lib64/libjc_keymint.nxp.so new file mode 100644 index 0000000..9a2edb0 Binary files /dev/null and b/proprietary/vendor/lib64/libjc_keymint.nxp.so differ diff --git a/proprietary/vendor/lib64/libjc_keymint_transport.nxp.so b/proprietary/vendor/lib64/libjc_keymint_transport.nxp.so new file mode 100644 index 0000000..fe08052 Binary files /dev/null and b/proprietary/vendor/lib64/libjc_keymint_transport.nxp.so differ diff --git a/radio/apusys.img b/radio/apusys.img old mode 100755 new mode 100644 index 41070aa..df64538 Binary files a/radio/apusys.img and b/radio/apusys.img differ diff --git a/radio/audio_dsp.img b/radio/audio_dsp.img old mode 100755 new mode 100644 index 88fbd28..5f49a1e Binary files a/radio/audio_dsp.img and b/radio/audio_dsp.img differ diff --git a/radio/ccu.img b/radio/ccu.img old mode 100755 new mode 100644 index 3b01f10..cb577ed Binary files a/radio/ccu.img and b/radio/ccu.img differ diff --git a/radio/connsys_bt.img b/radio/connsys_bt.img old mode 100755 new mode 100644 index 1fa7910..2ca6be0 Binary files a/radio/connsys_bt.img and b/radio/connsys_bt.img differ diff --git a/radio/connsys_gnss.img b/radio/connsys_gnss.img old mode 100755 new mode 100644 index 223eb46..4cb0f79 Binary files a/radio/connsys_gnss.img and b/radio/connsys_gnss.img differ diff --git a/radio/connsys_wifi.img b/radio/connsys_wifi.img old mode 100755 new mode 100644 index 85a43ac..bf3790c Binary files a/radio/connsys_wifi.img and b/radio/connsys_wifi.img differ diff --git a/radio/dpm.img b/radio/dpm.img old mode 100755 new mode 100644 index a57cd73..612b046 Binary files a/radio/dpm.img and b/radio/dpm.img differ diff --git a/radio/gpueb.img b/radio/gpueb.img old mode 100755 new mode 100644 index 18e4072..9de0415 Binary files a/radio/gpueb.img and b/radio/gpueb.img differ diff --git a/radio/gz.img b/radio/gz.img old mode 100755 new mode 100644 index 63afdfa..9e48f79 Binary files a/radio/gz.img and b/radio/gz.img differ diff --git a/radio/mcf_ota.img b/radio/mcf_ota.img old mode 100755 new mode 100644 diff --git a/radio/mcupm.img b/radio/mcupm.img old mode 100755 new mode 100644 index a6614d6..d776757 Binary files a/radio/mcupm.img and b/radio/mcupm.img differ diff --git a/radio/modem.img b/radio/modem.img old mode 100755 new mode 100644 index 1414c13..7fa6730 Binary files a/radio/modem.img and b/radio/modem.img differ diff --git a/radio/mvpu_algo.img b/radio/mvpu_algo.img old mode 100755 new mode 100644 index 8142ad5..bf04667 Binary files a/radio/mvpu_algo.img and b/radio/mvpu_algo.img differ diff --git a/radio/pi_img.img b/radio/pi_img.img old mode 100755 new mode 100644 index 025d7c9..87dde3b Binary files a/radio/pi_img.img and b/radio/pi_img.img differ diff --git a/radio/scp.img b/radio/scp.img old mode 100755 new mode 100644 diff --git a/radio/spmfw.img b/radio/spmfw.img old mode 100755 new mode 100644 index 09ddd3e..4089f5e Binary files a/radio/spmfw.img and b/radio/spmfw.img differ diff --git a/radio/sspm.img b/radio/sspm.img old mode 100755 new mode 100644 index 0edac06..9cdcfa7 Binary files a/radio/sspm.img and b/radio/sspm.img differ diff --git a/radio/tee.img b/radio/tee.img old mode 100755 new mode 100644 index a48a35e..048f173 Binary files a/radio/tee.img and b/radio/tee.img differ diff --git a/radio/vcp.img b/radio/vcp.img old mode 100755 new mode 100644 index 8325540..64d222d Binary files a/radio/vcp.img and b/radio/vcp.img differ