summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto97 <albertop2197@gmail.com>2017-03-04 01:14:53 -0800
committerMatt Filetto <matt.filetto@gmail.com>2017-03-04 02:08:49 -0800
commit80ff896b1eb6456ae76a8097b61e14cdbaf28ec6 (patch)
treef11131d2b0ab8572ad0c7b49263aca3b10a4b2a5
parent7d25e700ada87b352b4cfbcf1d1eff460814e563 (diff)
msm8996: Add IMS shim
Change-Id: I6ea1662d2fa478a460ea107f79f75171bf390d7e Signed-off-by: Matt Filetto <matt.filetto@gmail.com>
-rw-r--r--libshims/Android.mk26
-rw-r--r--libshims/MediaBuffer.c19
-rw-r--r--msm8996.mk4
-rwxr-xr-xrootdir/etc/init.qcom.rc3
4 files changed, 52 insertions, 0 deletions
diff --git a/libshims/Android.mk b/libshims/Android.mk
new file mode 100644
index 0000000..188ed55
--- /dev/null
+++ b/libshims/Android.mk
@@ -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)
diff --git a/libshims/MediaBuffer.c b/libshims/MediaBuffer.c
new file mode 100644
index 0000000..1ba3f72
--- /dev/null
+++ b/libshims/MediaBuffer.c
@@ -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 functions! */
+
+void _ZNK7android11MediaBuffer8refcountEv() {}
diff --git a/msm8996.mk b/msm8996.mk
index 8f0bf51..c4cc13f 100644
--- a/msm8996.mk
+++ b/msm8996.mk
@@ -168,6 +168,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
+
# IPACM
PRODUCT_PACKAGES += \
IPACM_cfg.xml \
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index f60e066..8cf02f4 100755
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -41,6 +41,9 @@ on init
# NXP HAL expects /dev/nq-nci
symlink /dev/pn547 /dev/nq-nci
+
+ #shims
+ export LD_SHIM_LIBS /system/vendor/lib64/lib-imsvt.so|libshims_ims.so
on early-boot
# Set RLIMIT_MEMLOCK to 64MB