From f603e0a41a501fde8bad9ba20547a743719fcaf4 Mon Sep 17 00:00:00 2001 From: nailyk-fr Date: Thu, 9 Feb 2017 12:46:57 +0100 Subject: shinano-common: shim: Add MediaBufferGroup * Add shim for MediaBufferGroup workaround * Blobs have probably be built before this commit: https://github.com/LineageOS/android_frameworks_av/commit/e9a5b96e7927fd4e38623e17ac73e8e4e25877ee which cause libwvm.so not starting due to missing symbol ZN7android16MediaBufferGroupC1Ev Change-Id: I490a2d599c01cd7d8db937d3a9d6eceffaf6a7e6 --- libshims/Android.mk | 29 +++++++++++++++++++++++++++++ libshims/wvm.c | 21 +++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 libshims/Android.mk create mode 100644 libshims/wvm.c (limited to 'libshims') diff --git a/libshims/Android.mk b/libshims/Android.mk new file mode 100644 index 0000000..542e76d --- /dev/null +++ b/libshims/Android.mk @@ -0,0 +1,29 @@ +# +# Copyright (C) 2016 The 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. + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := wvm.c + +LOCAL_SHARED_LIBRARIES := libstagefright_foundation + +LOCAL_MODULE := libshims_wvm +LOCAL_MODULE_TAGS := optional + +LOCAL_32_BIT_ONLY := true + +include $(BUILD_SHARED_LIBRARY) diff --git a/libshims/wvm.c b/libshims/wvm.c new file mode 100644 index 0000000..422a6d5 --- /dev/null +++ b/libshims/wvm.c @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 The CyanogenMod 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. + */ + +/* MediaBufferGroup::MediaBufferGroup */ +int _ZN7android16MediaBufferGroupC1Ej(unsigned int); +int _ZN7android16MediaBufferGroupC1Ev() { + return _ZN7android16MediaBufferGroupC1Ej(0); +} -- cgit v1.2.3