diff options
author | RGIB <gibellini.roberto@gmail.com> | 2016-03-16 20:00:47 +0100 |
---|---|---|
committer | Roberto Gibellini <gibellini.roberto@gmail.com> | 2016-03-16 12:06:58 -0700 |
commit | 00de566209909d682c3edd2f3598fecfb723ea01 (patch) | |
tree | 6d3385205f1cd332e1d5d5312bee703d4c46809c | |
parent | 9105b86c4ec39dd272cb85aee30a1b55b40af9ef (diff) | |
download | device_samsung_n5100-00de566209909d682c3edd2f3598fecfb723ea01.zip device_samsung_n5100-00de566209909d682c3edd2f3598fecfb723ea01.tar.gz device_samsung_n5100-00de566209909d682c3edd2f3598fecfb723ea01.tar.bz2 |
n5100 : symbols for libril and gpsd
Change-Id: I49620fc575ae5eb338c2bb6bc0a11a08a3e23b97
-rwxr-xr-x | samsung_symbols/Android.mk | 7 | ||||
-rwxr-xr-x | samsung_symbols/symbols.cpp | 26 |
2 files changed, 26 insertions, 7 deletions
diff --git a/samsung_symbols/Android.mk b/samsung_symbols/Android.mk index ab5dc30..4c58d80 100755 --- a/samsung_symbols/Android.mk +++ b/samsung_symbols/Android.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2015 The CyanogenMod Project +# 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. @@ -16,10 +16,9 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) -LOCAL_SRC_FILES := \ - symbols.cpp +LOCAL_SRC_FILES := symbols.cpp -LOCAL_SHARED_LIBRARIES := libbinder +LOCAL_SHARED_LIBRARIES := libbinder libgui LOCAL_MODULE := libsamsung_symbols LOCAL_MODULE_TAGS := optional diff --git a/samsung_symbols/symbols.cpp b/samsung_symbols/symbols.cpp index 55d3081..65e5c98 100755 --- a/samsung_symbols/symbols.cpp +++ b/samsung_symbols/symbols.cpp @@ -15,13 +15,33 @@ */ #include <stdlib.h> +#include <malloc.h> -// android::Parcel::writeString16(unsigned short const*, unsigned int) extern "C" int _ZN7android6Parcel13writeString16EPKDsj(); - extern "C" int _ZN7android6Parcel13writeString16EPKtj(){ + return _ZN7android6Parcel13writeString16EPKDsj(); +} + +extern "C" int _ZN7android13SensorManager5sLockE; +extern "C" int _ZN7android9SingletonINS_13SensorManagerEE5sLockE = _ZN7android13SensorManager5sLockE; - return _ZN7android6Parcel13writeString16EPKDsj(); +extern "C" int _ZN7android13SensorManager17sPackageInstancesE; +extern "C" int _ZN7android9SingletonINS_13SensorManagerEE9sInstanceE = _ZN7android13SensorManager17sPackageInstancesE; +extern "C" int _ZN7android13SensorManagerD1Ev(); +extern "C" int _ZN7android13SensorManagerC1Ev(){ + return _ZN7android13SensorManagerD1Ev(); } +extern "C" int _ZN7android13SensorManager16createEventQueueENS_7String8Ei(); +extern "C" int _ZN7android13SensorManager16createEventQueueEv(){ + return _ZN7android13SensorManager16createEventQueueENS_7String8Ei(); +} + +extern "C" void *CRYPTO_malloc(int num, const char *file, int line); +extern "C" void *CRYPTO_malloc(int num, const char *file, int line){ + if (num <= 0) + return NULL; + else + return malloc(num); +} |