Skip to content

Commit

Permalink
athene: Add IMS shim
Browse files Browse the repository at this point in the history
Change-Id: I64bb93eeacc40fe47d60b5b3854151e368534dca
  • Loading branch information
Alberto97 authored and rahulsnair committed Sep 10, 2017
1 parent e19603b commit b1dd3e5
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
4 changes: 4 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/etc/sap.conf:system/etc/sap.conf \
$(LOCAL_PATH)/gps/etc/xtwifi.conf:system/etc/xtwifi.conf

# IMS
PRODUCT_PACKAGES += \
libshims_ims

# IRSC
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
Expand Down
26 changes: 26 additions & 0 deletions libshims/Android.mk
Original file line number Diff line number Diff line change
@@ -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 changes: 19 additions & 0 deletions libshims/MediaBuffer.c
Original file line number Diff line number Diff line change
@@ -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() {}
2 changes: 2 additions & 0 deletions rootdir/etc/init.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ on early-init
on init
start qfintverify

export LD_SHIM_LIBS /system/vendor/lib/lib-imsvt.so|libshims_ims.so

# Set permissions for persist partition
mkdir /persist 0771 system system

Expand Down

0 comments on commit b1dd3e5

Please sign in to comment.