rosemary: Add hotword blobs

This commit is contained in:
Matsvei Niaverau
2023-05-31 16:56:39 +02:00
parent 2445c22e90
commit c34998ce4c
6 changed files with 54 additions and 0 deletions
+31
View File
@@ -49,6 +49,30 @@ android_app_import {
privileged: true,
}
android_app_import {
name: "HotwordEnrollmentOKGoogleCORTEXM4",
owner: "xiaomi",
apk: "proprietary/product/priv-app/HotwordEnrollmentOKGoogleCORTEXM4/HotwordEnrollmentOKGoogleCORTEXM4.apk",
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
product_specific: true,
}
android_app_import {
name: "HotwordEnrollmentXGoogleCORTEXM4",
owner: "xiaomi",
apk: "proprietary/product/priv-app/HotwordEnrollmentXGoogleCORTEXM4/HotwordEnrollmentXGoogleCORTEXM4.apk",
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
product_specific: true,
}
dex_import {
name: "mediatek-common",
owner: "xiaomi",
@@ -103,6 +127,13 @@ dex_import {
jars: ["proprietary/framework/mediatek-telephony-common.jar"],
}
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: "vendor.mediatek.hardware.gpu@1.0-service",
owner: "xiaomi",
@@ -0,0 +1,19 @@
<?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>
+4
View File
@@ -31,6 +31,7 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/rosemary/proprietary/lib64/libmtkavenhancements.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libmtkavenhancements.so \
vendor/xiaomi/rosemary/proprietary/lib64/libvcodec_cap.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libvcodec_cap.so \
vendor/xiaomi/rosemary/proprietary/lib64/libvcodec_capenc.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libvcodec_capenc.so \
vendor/xiaomi/rosemary/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/rosemary/proprietary/system_ext/lib/vendor.mediatek.hardware.mtkradioex@1.0.so:$(TARGET_COPY_OUT_SYSTEM_EXT)/lib/vendor.mediatek.hardware.mtkradioex@1.0.so \
vendor/xiaomi/rosemary/proprietary/system_ext/lib/vendor.mediatek.hardware.videotelephony@1.0.so:$(TARGET_COPY_OUT_SYSTEM_EXT)/lib/vendor.mediatek.hardware.videotelephony@1.0.so \
vendor/xiaomi/rosemary/proprietary/system_ext/lib64/libapuwareapusys.mtk.so:$(TARGET_COPY_OUT_SYSTEM_EXT)/lib64/libapuwareapusys.mtk.so \
@@ -2580,6 +2581,8 @@ PRODUCT_PACKAGES += \
libfmjni \
libwifi-hal-mtk \
ImsService \
HotwordEnrollmentOKGoogleCORTEXM4 \
HotwordEnrollmentXGoogleCORTEXM4 \
mediatek-common \
mediatek-framework \
mediatek-ims-base \
@@ -2589,6 +2592,7 @@ PRODUCT_PACKAGES += \
mediatek-telecom-common \
mediatek-telephony-base \
mediatek-telephony-common \
com.android.hotwordenrollment.common.util \
vendor.mediatek.hardware.gpu@1.0-service \
android.hardware.neuralnetworks@1.3-service-mtk-dsp-gpu \
android.hardware.wifi.hostapd \