aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Coucheron <arco68@gmail.com>2015-10-11 15:28:00 +0530
committerAndreas Blaesius <skate4life@gmx.de>2016-02-21 11:10:56 -0800
commit028ad5f7ac3fda5c97f119f896e89849d818cd17 (patch)
tree43bae0c7f72dbdddc27dfce22556e7bc32e471b9
parentae7e46a19de150df397ad8eb6da1a9cf7c5a55e9 (diff)
downloaddevice_samsung_espressowifi-028ad5f7ac3fda5c97f119f896e89849d818cd17.zip
device_samsung_espressowifi-028ad5f7ac3fda5c97f119f896e89849d818cd17.tar.gz
device_samsung_espressowifi-028ad5f7ac3fda5c97f119f896e89849d818cd17.tar.bz2
espresso-common: Shim library for missing symbols in Samsung blobs
Change-Id: If4797df7db6b28f6272c42971297c05341f65710
-rw-r--r--espresso-common.mk4
-rw-r--r--libsamsung_symbols/Android.mk25
-rw-r--r--libsamsung_symbols/samsung_ril.cpp21
-rw-r--r--rootdir/etc/init.tab2.rc2
4 files changed, 52 insertions, 0 deletions
diff --git a/espresso-common.mk b/espresso-common.mk
index 1329261..36831d6 100644
--- a/espresso-common.mk
+++ b/espresso-common.mk
@@ -61,6 +61,10 @@ PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=15
+# Samsung symbols
+PRODUCT_PACKAGES += \
+ libsamsung_symbols
+
# Media profiles
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
diff --git a/libsamsung_symbols/Android.mk b/libsamsung_symbols/Android.mk
new file mode 100644
index 0000000..698b1e2
--- /dev/null
+++ b/libsamsung_symbols/Android.mk
@@ -0,0 +1,25 @@
+# Copyright (C) 2015 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 := \
+ samsung_ril.cpp
+
+LOCAL_SHARED_LIBRARIES := libbinder
+LOCAL_MODULE := libsamsung_symbols
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+
+include $(BUILD_SHARED_LIBRARY)
diff --git a/libsamsung_symbols/samsung_ril.cpp b/libsamsung_symbols/samsung_ril.cpp
new file mode 100644
index 0000000..404616d
--- /dev/null
+++ b/libsamsung_symbols/samsung_ril.cpp
@@ -0,0 +1,21 @@
+/*
+ * Copyright (C) 2015 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.
+ */
+
+/* status_t Parcel::writeString16 */
+extern "C" int _ZN7android6Parcel13writeString16EPKDsj();
+extern "C" int _ZN7android6Parcel13writeString16EPKtj() {
+ return _ZN7android6Parcel13writeString16EPKDsj();
+}
diff --git a/rootdir/etc/init.tab2.rc b/rootdir/etc/init.tab2.rc
index 76a4faa..e23e5c3 100644
--- a/rootdir/etc/init.tab2.rc
+++ b/rootdir/etc/init.tab2.rc
@@ -2,6 +2,8 @@ import init.${ro.hardware}.usb.rc
import init.omap4.rc
on init
+ export LD_SHIM_LIBS /system/lib/libril.so|libsamsung_symbols.so
+
symlink /sdcard /mnt/sdcard
symlink /sdcard /storage/sdcard0