universal7885: Shim libstagefright_omx_utils.so

* F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/android.hardware.media.omx@1.0-service": cannot locate symbol "_ZN7android24MEDIA_MIMETYPE_AUDIO_IMAE" referenced by "/vendor/lib/libstagefright_omx_utils.so"

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I446fc75abf371cc220e40a173e000415a33dd7db
This commit is contained in:
DAndreas Schneider 2020-11-14 22:16:35 +05:30 committed by roynatech2544
commit 5c90c9c663
4 changed files with 36 additions and 0 deletions

View file

@ -70,5 +70,6 @@ patchelf --replace-needed "libkeymaster_portable.so" "libkeymaster_portable-v29.
patchelf --replace-needed "libkeymaster_portable.so" "libkeymaster_portable-v29.so" "${BLOB_ROOT}/vendor/lib/libkeymaster3device.so"
patchelf --replace-needed "libpuresoftkeymasterdevice.so" "libpuresoftkeymasterdevice-v29.so" "${BLOB_ROOT}/vendor/lib64/libkeymaster3device.so"
patchelf --replace-needed "libpuresoftkeymasterdevice.so" "libpuresoftkeymasterdevice-v29.so" "${BLOB_ROOT}/vendor/lib/libkeymaster3device.so"
patchelf --add-needed "libshim_stagefright_foundation.so" "${BLOB_ROOT}/vendor/lib/libstagefright_omx_utils.so"
"${MY_DIR}/setup-makefiles.sh"

12
libshims/Android.mk Normal file
View file

@ -0,0 +1,12 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := MediaDefs.cpp
LOCAL_SHARED_LIBRARIES := libstagefright_foundation
LOCAL_MODULE := libshim_stagefright_foundation
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_VENDOR_MODULE := true
include $(BUILD_SHARED_LIBRARY)

19
libshims/MediaDefs.cpp Normal file
View file

@ -0,0 +1,19 @@
/*
* Copyright (C) 2020 LineageOS 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.
*/
namespace android {
const char *MEDIA_MIMETYPE_AUDIO_IMA = "audio/x-ima";
} // namespece android

View file

@ -105,6 +105,10 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
build/target/product/gsi/gsi_skip_mount.cfg:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/init/config/skip_mount.cfg
# Shims
PRODUCT_PACKAGES += \
libshim_stagefright_foundation
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)