diff options
author | Arne Coucheron <arco68@gmail.com> | 2015-11-10 04:58:00 -0500 |
---|---|---|
committer | tilaksidduram <tilaksidduram@gmail.com> | 2015-12-02 09:50:51 +0530 |
commit | e9e28e3b6176332c43b41bb802b3513c7b701faa (patch) | |
tree | d9683a3dadba927a2c9b1b5defd6947a736df05a | |
parent | 719c94bec6f65fe1d8f560da7dced1fa0a3a9646 (diff) | |
download | device_samsung_n7100-e9e28e3b6176332c43b41bb802b3513c7b701faa.zip device_samsung_n7100-e9e28e3b6176332c43b41bb802b3513c7b701faa.tar.gz device_samsung_n7100-e9e28e3b6176332c43b41bb802b3513c7b701faa.tar.bz2 |
Shim library for missing symbols in Samsung blobs
Change-Id: Id8caf67ee8d544fc1fab0fb8b9d13b1f2cb07204
-rw-r--r-- | libsamsung_symbols/Android.mk | 28 | ||||
-rw-r--r-- | libsamsung_symbols/samsung_ril.cpp | 21 | ||||
-rw-r--r-- | n7100.mk | 4 | ||||
-rw-r--r-- | rootdir/init.target.rc | 1 |
4 files changed, 54 insertions, 0 deletions
diff --git a/libsamsung_symbols/Android.mk b/libsamsung_symbols/Android.mk new file mode 100644 index 0000000..c2e942e --- /dev/null +++ b/libsamsung_symbols/Android.mk @@ -0,0 +1,28 @@ +# 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_TAGS := optional +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(); +} @@ -90,6 +90,10 @@ PRODUCT_PACKAGES += \ $(call inherit-product, vendor/cm/config/nfc_enhanced.mk) +# Samsung symbols +PRODUCT_PACKAGES += \ + libsamsung_symbols + # RIL PRODUCT_PROPERTY_OVERRIDES += \ ro.telephony.ril_class=SamsungExynos4RIL \ diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc index 8636c30..fe05cea 100644 --- a/rootdir/init.target.rc +++ b/rootdir/init.target.rc @@ -1,4 +1,5 @@ on init + export LD_PRELOAD "/system/lib/libsamsung_symbols.so" # Vibetonz export VIBE_PIPE_PATH /dev/pipes mkdir /dev/pipes 0771 shell shell |