klte-common: Add shim for libwvm.so

Change-Id: I1ac58a108783ae1aabe3f3f061b2444925f684db
This commit is contained in:
Arne Coucheron 2016-11-05 19:13:10 +02:00 committed by Kevin F. Haggerty
parent 1c64c859bd
commit 9e0927fc01
4 changed files with 34 additions and 1 deletions

View File

@ -124,6 +124,10 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal-engine-8974.conf:system/etc/thermal-engine-8974.conf
# Widevine
PRODUCT_PACKAGES += \
libshim_wvm
# Wifi
PRODUCT_PACKAGES += \
libnetcmdiface \

8
libshims/Android.mk Normal file
View File

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := wvm_shim.cpp
LOCAL_SHARED_LIBRARIES := libstagefright_foundation
LOCAL_MODULE := libshim_wvm
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)

21
libshims/wvm_shim.cpp Normal file
View File

@ -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 */
extern "C" int _ZN7android16MediaBufferGroupC1Ej();
extern "C" int _ZN7android16MediaBufferGroupC1Ev() {
return _ZN7android16MediaBufferGroupC1Ej();
}

View File

@ -29,7 +29,7 @@ import init.qcom.usb.rc
import init.target.rc
on early-init
export LD_SHIM_LIBS /system/lib/libril.so|libril_shim.so
export LD_SHIM_LIBS "/system/lib/libril.so|libril_shim.so:/system/vendor/lib/libwvm.so|libshim_wvm.so"
# Increase max readahead size to 512 KB
write /sys/block/mmcblk0/queue/read_ahead_kb 512