diff --git a/audio/tegu/prebuilt/libspeechenhancer/Android.bp b/audio/tegu/prebuilt/libspeechenhancer/Android.bp deleted file mode 100644 index 9d4a232..0000000 --- a/audio/tegu/prebuilt/libspeechenhancer/Android.bp +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2024 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. -soong_namespace { -} - -package { - default_applicable_licenses: ["Android-Apache-2.0"], -} - -cc_prebuilt_library_shared { - name: "libspeechenhancer", - vendor: true, - owner: "google", - proprietary: true, - allow_undefined_symbols: true, - arch: { - arm64: { - srcs: ["arm64/libspeechenhancer.so"], - }, - }, - - shared_libs: [ - "libcutils", - "libEGL", - "libGLESv2", - "libbinder_ndk", - "liblog", - "libsync", - "libz", - "libnativewindow", - ], -} diff --git a/audio/tegu/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so b/audio/tegu/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so deleted file mode 100644 index 6bb4b10..0000000 Binary files a/audio/tegu/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so and /dev/null differ diff --git a/device-tegu.mk b/device-tegu.mk index 8afb07a..62c94a3 100644 --- a/device-tegu.mk +++ b/device-tegu.mk @@ -194,11 +194,8 @@ PRODUCT_PACKAGES += \ endif # HdMic Audio -PRODUCT_SOONG_NAMESPACES += device/google/tegu/audio/tegu/prebuilt/libspeechenhancer PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.app.audio.gsenet.version=1 -PRODUCT_PACKAGES += \ - libspeechenhancer # Bluetooth LE Audio PRODUCT_PRODUCT_PROPERTIES += \ diff --git a/tegu/extract-files.py b/tegu/extract-files.py index b88151a..435810e 100755 --- a/tegu/extract-files.py +++ b/tegu/extract-files.py @@ -52,6 +52,12 @@ blob_fixups: blob_fixups_user_type = { .patch_file('osaifu-keitai.patch'), 'vendor/etc/init/init.modem_logging_control.rc': blob_fixup() .regex_replace(' && property:ro.debuggable=0', ''), + 'vendor/lib64/libspeechenhancer.so': blob_fixup() + .clear_symbol_version('AHardwareBuffer_allocate') + .clear_symbol_version('AHardwareBuffer_describe') + .clear_symbol_version('AHardwareBuffer_lock') + .clear_symbol_version('AHardwareBuffer_release') + .clear_symbol_version('AHardwareBuffer_unlock'), } # fmt: skip extract_fns: extract_fns_user_type = { diff --git a/tegu/proprietary-files-vendor.txt b/tegu/proprietary-files-vendor.txt index fc2bc84..0aee66b 100644 --- a/tegu/proprietary-files-vendor.txt +++ b/tegu/proprietary-files-vendor.txt @@ -1943,6 +1943,7 @@ vendor/lib64/libsitril-client.so vendor/lib64/libsitril-gps.so vendor/lib64/libsitril-ims.so vendor/lib64/libsitril.so +vendor/lib64/libspeechenhancer.so vendor/lib64/libstreset24.so vendor/lib64/libsueznanoappclients.so vendor/lib64/libtachyon_core.so diff --git a/tegu/skip-files-vendor.txt b/tegu/skip-files-vendor.txt index 342c160..0a10a03 100644 --- a/tegu/skip-files-vendor.txt +++ b/tegu/skip-files-vendor.txt @@ -688,7 +688,6 @@ lib64/libregex_syntax.dylib.so lib64/libril.so lib64/librilutils.so lib64/libsparse.so -lib64/libspeechenhancer.so lib64/libspeexresampler.so lib64/libssl.so lib64/libstagefright_foundation.so