klee: Add HyperOS VoiceCommand/vow blobs for soundtrigger
Ship the MTK voice-wakeup stack present on stock HyperOS that the LOS tree omits: system_ext/priv-app/VoiceCommand, libvoicerecognition (+jni), libaudiotoolkit, the VoW training libraries (libvow_ap_train_*, libvow_comp_train) and the com.mediatek.hardware.vow* feature permissions. Companion to the device proprietary-files.txt change; supports the DSP soundtrigger path for screen-off hotword. Change-Id: Ieb5b3ae582da31b30229f2de0d595df16d86ff19 Signed-off-by: kylieeXD <khayloaftck@gmail.com>
This commit is contained in:
28 files changed
+643
No files matched your search
+602
@@ -31325,6 +31325,608 @@ cc_prebuilt_library_shared {
|
||||
system_ext_specific: true,
|
||||
}
|
||||
|
||||
android_app_import {
|
||||
name: "VoiceCommand",
|
||||
owner: "xiaomi",
|
||||
apk: "proprietary/system_ext/priv-app/VoiceCommand/VoiceCommand.apk",
|
||||
certificate: "platform",
|
||||
dex_preopt: {
|
||||
enabled: false,
|
||||
},
|
||||
privileged: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvoicerecognition",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvoicerecognition.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"libstagefright",
|
||||
"libstagefright_foundation",
|
||||
"libmedia",
|
||||
"libstdc++",
|
||||
"libgui",
|
||||
"libsqlite",
|
||||
"libaudiotoolkit",
|
||||
"libaudioclient",
|
||||
"liblog",
|
||||
"libxml2",
|
||||
"libhidlbase",
|
||||
"libvow_comp_train",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvoicerecognition_jni",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvoicerecognition_jni.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libui",
|
||||
"libutils",
|
||||
"libbinder",
|
||||
"libandroid_runtime",
|
||||
"libnativehelper",
|
||||
"libcutils",
|
||||
"libmedia",
|
||||
"libvoicerecognition",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libaudiotoolkit",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libaudiotoolkit.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"libaudioclient",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_comp_train",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_comp_train.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_dddd",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_dddd.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_hhaa",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_hhaa.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_hhha",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_hhha.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_hhhh",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_hhhh.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_nnnn",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_nnnn.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_trip_dddd",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_trip_dddd.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_trip_hhaa",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_trip_hhaa.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_trip_hhha",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_trip_hhha.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_trip_hhhh",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_trip_hhhh.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_trip_nnnn",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_trip_nnnn.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_trip_znnn",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_trip_znnn.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_vaca_dddd",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_vaca_dddd.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_vaca_hhaa",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_vaca_hhaa.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_vaca_hhha",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_vaca_hhha.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_vaca_hhhh",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_vaca_hhhh.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_vaca_nnnn",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_vaca_nnnn.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_vaca_znnn",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_vaca_znnn.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libvow_ap_train_znnn",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system_ext/lib64/libvow_ap_train_znnn.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
system_ext_specific: true,
|
||||
}
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libimsma",
|
||||
owner: "xiaomi",
|
||||
|
||||
@@ -738,6 +738,9 @@ PRODUCT_COPY_FILES += \
|
||||
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.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.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.mediatek.hardware.vow.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 \
|
||||
vendor/xiaomi/klee/proprietary/vendor/etc/permissions/com.mediatek.hardware.vow_dsp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.mediatek.hardware.vow_dsp.xml \
|
||||
vendor/xiaomi/klee/proprietary/vendor/etc/pq_flag.xml:$(TARGET_COPY_OUT_VENDOR)/etc/pq_flag.xml \
|
||||
vendor/xiaomi/klee/proprietary/vendor/etc/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt \
|
||||
vendor/xiaomi/klee/proprietary/vendor/etc/sensor_diag.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/sensor_diag.cfg \
|
||||
@@ -2071,6 +2074,28 @@ PRODUCT_PACKAGES += \
|
||||
libarmnn_ndk.mtk \
|
||||
libcmdl_ndk.mtk \
|
||||
libcomutils \
|
||||
libvoicerecognition \
|
||||
libvoicerecognition_jni \
|
||||
libaudiotoolkit \
|
||||
libvow_comp_train \
|
||||
libvow_ap_train_dddd \
|
||||
libvow_ap_train_hhaa \
|
||||
libvow_ap_train_hhha \
|
||||
libvow_ap_train_hhhh \
|
||||
libvow_ap_train_nnnn \
|
||||
libvow_ap_train_trip_dddd \
|
||||
libvow_ap_train_trip_hhaa \
|
||||
libvow_ap_train_trip_hhha \
|
||||
libvow_ap_train_trip_hhhh \
|
||||
libvow_ap_train_trip_nnnn \
|
||||
libvow_ap_train_trip_znnn \
|
||||
libvow_ap_train_vaca_dddd \
|
||||
libvow_ap_train_vaca_hhaa \
|
||||
libvow_ap_train_vaca_hhha \
|
||||
libvow_ap_train_vaca_hhhh \
|
||||
libvow_ap_train_vaca_nnnn \
|
||||
libvow_ap_train_vaca_znnn \
|
||||
libvow_ap_train_znnn \
|
||||
libimsma \
|
||||
libimsma_adapt \
|
||||
libimsma_rtp \
|
||||
@@ -2278,6 +2303,7 @@ PRODUCT_PACKAGES += \
|
||||
vendor.xiaomi.hardware.mediaeventgatherservice-V1-ndk \
|
||||
com.google.android.widevine.nonupdatable \
|
||||
ImsService \
|
||||
VoiceCommand \
|
||||
MtkGbaService \
|
||||
MtkTelephonyAssist \
|
||||
OpticalTestTool_klee \
|
||||
|
||||
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.
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.
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.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<permissions>
|
||||
<feature name="com.mediatek.hardware.vow.gva.tflite"/>
|
||||
</permissions>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<permissions>
|
||||
<feature name="com.mediatek.hardware.vow.2e2k"/>
|
||||
</permissions>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<permissions>
|
||||
<feature name="com.mediatek.hardware.vow_dsp.riscv"/>
|
||||
</permissions>
|
||||
Reference in new issue
Block a user