aboutsummaryrefslogtreecommitdiff
path: root/libshims
diff options
context:
space:
mode:
authornailyk-fr <nailyk_git@nailyk.fr>2017-02-09 12:46:57 +0100
committernailyk-fr <nailyk_git@nailyk.fr>2017-02-21 20:16:59 +0100
commitf603e0a41a501fde8bad9ba20547a743719fcaf4 (patch)
tree8f231f2468716b48583088c5a851661c9e327d7d /libshims
parentbad9906576b3cc04e9f4c807321457ab240ae430 (diff)
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
Diffstat (limited to 'libshims')
-rw-r--r--libshims/Android.mk29
-rw-r--r--libshims/wvm.c21
2 files changed, 50 insertions, 0 deletions
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);
+}