land: Add IMS shim
Change-Id: I96d0a5ef9391cdf7b211e62300391eb8b931a712
This commit is contained in:
parent
c684ee10cf
commit
3eadfb53b7
4 changed files with 51 additions and 0 deletions
26
libshims/Android.mk
Normal file
26
libshims/Android.mk
Normal 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
19
libshims/MediaBuffer.c
Normal 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() {}
|
|
@ -48,3 +48,7 @@ PRODUCT_PACKAGES += \
|
|||
libcnefeatureconfig \
|
||||
librmnetctl \
|
||||
libxml2
|
||||
|
||||
# Libshims
|
||||
PRODUCT_PACKAGES += \
|
||||
libshims_ims
|
||||
|
|
|
@ -39,6 +39,8 @@ on early-init
|
|||
chmod 0755 /sys/kernel/debug
|
||||
|
||||
on init
|
||||
export LD_SHIM_LIBS /system/vendor/lib64/lib-imsvt.so|libshims_ims.so
|
||||
|
||||
# Set permissions for persist partition
|
||||
mkdir /persist 0771 root system
|
||||
|
||||
|
|
Loading…
Reference in a new issue