land: Add IMS shim

Change-Id: I96d0a5ef9391cdf7b211e62300391eb8b931a712
This commit is contained in:
Alberto97 2017-01-14 13:32:26 +00:00 committed by karthick111
parent c684ee10cf
commit 3eadfb53b7
4 changed files with 51 additions and 0 deletions

26
libshims/Android.mk Normal file
View file

@ -0,0 +1,26 @@
# 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 := MediaBuffer.c
LOCAL_SHARED_LIBRARIES := libstagefright_foundation
LOCAL_MODULE := libshims_ims
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)

19
libshims/MediaBuffer.c Normal file
View file

@ -0,0 +1,19 @@
/*
* 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.
*/
/* TODO: Actually provide implementations for these function! */
void _ZNK7android11MediaBuffer8refcountEv() {}

View file

@ -48,3 +48,7 @@ PRODUCT_PACKAGES += \
libcnefeatureconfig \ libcnefeatureconfig \
librmnetctl \ librmnetctl \
libxml2 libxml2
# Libshims
PRODUCT_PACKAGES += \
libshims_ims

View file

@ -39,6 +39,8 @@ on early-init
chmod 0755 /sys/kernel/debug chmod 0755 /sys/kernel/debug
on init on init
export LD_SHIM_LIBS /system/vendor/lib64/lib-imsvt.so|libshims_ims.so
# Set permissions for persist partition # Set permissions for persist partition
mkdir /persist 0771 root system mkdir /persist 0771 root system