diff options
| author | Arne Coucheron <arco68@gmail.com> | 2016-11-06 14:04:37 +0100 |
|---|---|---|
| committer | Joey Rizzoli <joey@cyanogenmoditalia.it> | 2016-11-06 17:15:22 +0100 |
| commit | 2841505e0fe26b3ee174ec36a50083c6da71a119 (patch) | |
| tree | 6298130ac4a6f17eb415417daebd2d1052abf257 | |
| parent | f60144556f5db024a0ff6db3c93fbc5835ba4e9d (diff) | |
cancro: Add shim for libwvm.so
Change-Id: I469904fba775a13b066082658d70c8206a7af952
Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it>
| -rw-r--r-- | cancro.mk | 4 | ||||
| -rw-r--r-- | libshims/Android.mk | 27 | ||||
| -rw-r--r-- | libshims/wvm.c | 21 | ||||
| -rwxr-xr-x | rootdir/root/init.qcom.rc | 1 |
4 files changed, 53 insertions, 0 deletions
@@ -43,6 +43,10 @@ PRODUCT_PACKAGES += \ libxml2 \ Snap +# DRM +PRODUCT_PACKAGES += \ + libshims_wvm + # Charger PRODUCT_PACKAGES += \ charger_res_images diff --git a/libshims/Android.mk b/libshims/Android.mk new file mode 100644 index 0000000..b2c15bb --- /dev/null +++ b/libshims/Android.mk @@ -0,0 +1,27 @@ +# +# 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. + +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 + +include $(BUILD_SHARED_LIBRARY) diff --git a/libshims/wvm.c b/libshims/wvm.c new file mode 100644 index 0000000..cba3969 --- /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(); +int _ZN7android16MediaBufferGroupC1Ev() { + return _ZN7android16MediaBufferGroupC1Ej(); +} diff --git a/rootdir/root/init.qcom.rc b/rootdir/root/init.qcom.rc index 34e6cfc..f83f3c5 100755 --- a/rootdir/root/init.qcom.rc +++ b/rootdir/root/init.qcom.rc @@ -33,6 +33,7 @@ on early-init write /sys/block/mmcblk0/queue/scheduler "noop" on init + export LD_SHIM_LIBS /system/vendor/lib/libwvm.so|libshims_wvm.so mkdir /persist 0771 system system mkdir /firmware 0771 system system symlink /sdcard /storage/sdcard0 |
