emerald-vendor: Use Fenrir LK and sync changes from trees

Signed-off-by: vannashcroft <vannashcroft@proton.me>
This commit is contained in:
2026-07-16 18:07:08 +00:00
parent c63f7d6268
commit 627a225961
12 changed files with 68 additions and 30 deletions
+36 -4
View File
@@ -1500,7 +1500,7 @@ cc_prebuilt_library_shared {
}
cc_prebuilt_library_shared {
name: "android.hardware.security.keymint-V3-ndk-v34",
name: "android.hardware.security.keymint-V3-ndk-v35",
owner: "xiaomi",
strip: {
none: true,
@@ -1508,7 +1508,7 @@ cc_prebuilt_library_shared {
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/android.hardware.security.keymint-V3-ndk-v34.so",
"proprietary/vendor/lib64/android.hardware.security.keymint-V3-ndk-v35.so",
],
shared_libs: [
"libbinder_ndk",
@@ -2032,7 +2032,6 @@ cc_prebuilt_library_shared {
"libcutils",
"libbase",
"libz",
"arm.graphics-V1-ndk_platform",
"android.hardware.graphics.mapper@4.0",
"libgralloctypes",
"libhidlbase",
@@ -33970,6 +33969,30 @@ cc_prebuilt_library_shared {
system_ext_specific: true,
}
android_app_import {
name: "HotwordEnrollmentOKGoogleRISCV",
owner: "xiaomi",
apk: "proprietary/product/priv-app/HotwordEnrollmentOKGoogleRISCV/HotwordEnrollmentOKGoogleRISCV.apk",
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
product_specific: true,
}
android_app_import {
name: "HotwordEnrollmentXGoogleRISCV",
owner: "xiaomi",
apk: "proprietary/product/priv-app/HotwordEnrollmentXGoogleRISCV/HotwordEnrollmentXGoogleRISCV.apk",
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
product_specific: true,
}
android_app_import {
name: "EngineerMode",
owner: "xiaomi",
@@ -33981,6 +34004,15 @@ android_app_import {
system_ext_specific: true,
}
dex_import {
name: "com.android.hotwordenrollment.common.util",
owner: "xiaomi",
jars: [
"proprietary/system_ext/framework/com.android.hotwordenrollment.common.util.jar",
],
system_ext_specific: true,
}
prebuilt_etc_xml {
name: "android.hardware.neuralnetworks-shim-service-mtk.xml",
owner: "xiaomi",
@@ -34411,7 +34443,7 @@ cc_prebuilt_binary {
"libhardware",
"libhidlbase",
"android.hardware.keymaster@4.0",
"android.hardware.security.keymint-V3-ndk-v34",
"android.hardware.security.keymint-V3-ndk-v35",
"android.hardware.security.sharedsecret-V1-ndk",
"android.hardware.security.secureclock-V1-ndk",
"lib_android_keymaster_keymint_utils",
+1 -1
View File
@@ -8,7 +8,7 @@ ifeq ($(TARGET_DEVICE),emerald)
$(call add-radio-file-sha1-checked,radio/dpm.img,c6a1ccd25506ddd4bde8f5ae424f4dc85d76d3b2)
$(call add-radio-file-sha1-checked,radio/gz.img,ae714d5ca3515a323ddde065ebb39cf7311d9799)
$(call add-radio-file-sha1-checked,radio/lk.img,b8cb26bce36bbf1f19edcfd69fb54214bae498f9)
$(call add-radio-file-sha1-checked,radio/lk.img,b6eef4fdd3d8174897dcbb170d8f92d214f5140d)
$(call add-radio-file-sha1-checked,radio/mcupm.img,a424a4a11e9ef48af104466c6fce6bebf95f1d9c)
$(call add-radio-file-sha1-checked,radio/md1img.img,c95cab1897d14f6fa83bab65ad811b8750ee6239)
$(call add-radio-file-sha1-checked,radio/pi_img.img,c2234f9da77319f4b831e1d3a35d6910f69c4263)
+5 -2
View File
@@ -7,6 +7,7 @@ PRODUCT_SOONG_NAMESPACES += \
PRODUCT_COPY_FILES += \
vendor/xiaomi/emerald/proprietary/odm/etc/camera/camerabooster.json:$(TARGET_COPY_OUT_ODM)/etc/camera/camerabooster.json \
vendor/xiaomi/emerald/proprietary/system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/com.android.hotwordenrollment.common.util.xml \
vendor/xiaomi/emerald/proprietary/vendor/etc/AbnormalDisplayLog_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/AbnormalDisplayLog_dynamic.xml \
vendor/xiaomi/emerald/proprietary/vendor/etc/AudioLog_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/AudioLog_dynamic.xml \
vendor/xiaomi/emerald/proprietary/vendor/etc/MNL_Config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/MNL_Config.xml \
@@ -546,7 +547,6 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/emerald/proprietary/vendor/etc/misound_res_spk.bin:$(TARGET_COPY_OUT_VENDOR)/etc/misound_res_spk.bin \
vendor/xiaomi/emerald/proprietary/vendor/etc/mpe.conf:$(TARGET_COPY_OUT_VENDOR)/etc/mpe.conf \
vendor/xiaomi/emerald/proprietary/vendor/etc/nnapi_powerhal.json:$(TARGET_COPY_OUT_VENDOR)/etc/nnapi_powerhal.json \
vendor/xiaomi/emerald/proprietary/vendor/etc/permissions/android.hardware.hardware_keystore.mitee.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.hardware_keystore.mitee.xml \
vendor/xiaomi/emerald/proprietary/vendor/etc/rsc/default/ro.prop:$(TARGET_COPY_OUT_VENDOR)/etc/rsc/default/ro.prop \
vendor/xiaomi/emerald/proprietary/vendor/etc/rsc/default/rw.prop:$(TARGET_COPY_OUT_VENDOR)/etc/rsc/default/rw.prop \
vendor/xiaomi/emerald/proprietary/vendor/etc/rsc/glb/ro.prop:$(TARGET_COPY_OUT_VENDOR)/etc/rsc/glb/ro.prop \
@@ -761,7 +761,7 @@ PRODUCT_PACKAGES += \
APUWareApusysServer \
APUWareHmpServer \
APUWareUtilsServer \
android.hardware.security.keymint-V3-ndk-v34 \
android.hardware.security.keymint-V3-ndk-v35 \
awinic.audio.effect \
com.xiaomi.plugin.capbokeh \
com.xiaomi.plugin.ldc \
@@ -1910,7 +1910,10 @@ PRODUCT_PACKAGES += \
libem_bleoffload_jni \
libem_support_jni \
libem_wifi_jni \
HotwordEnrollmentOKGoogleRISCV \
HotwordEnrollmentXGoogleRISCV \
EngineerMode \
com.android.hotwordenrollment.common.util \
android.hardware.neuralnetworks-shim-service-mtk.xml \
android.hardware.security.keymint-service.mitee.xml \
android.hardware.security.secureclock-service.mitee.xml \
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<permissions>
<library
name="com.android.hotwordenrollment.common.util"
file="/system_ext/framework/com.android.hotwordenrollment.common.util.jar"
/>
</permissions>
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2021 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<permissions>
<feature name="android.hardware.hardware_keystore" version="100" />
</permissions>
LFS Executable → Regular
BIN
View File
Binary file not shown.