summaryrefslogtreecommitdiffstats
path: root/libs/binder
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-03-14 10:31:38 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-03-14 10:31:38 -0700
commit5b00af2435d67ccf806c918f6482949870fd993b (patch)
tree4cccc3c581aa01198dee8e4a72b086da415dceaf /libs/binder
parenta11713ce3e81d7838092168fad110bea3212a9f3 (diff)
parent7212ff29c6f4e4cd192fee6f072e80b36d8a728b (diff)
downloadframeworks_native-5b00af2435d67ccf806c918f6482949870fd993b.zip
frameworks_native-5b00af2435d67ccf806c918f6482949870fd993b.tar.gz
frameworks_native-5b00af2435d67ccf806c918f6482949870fd993b.tar.bz2
am 7212ff29: am 20e154f1: Merge "Second try at adding a compatibility symbol for the MemoryBase constructor."
* commit '7212ff29c6f4e4cd192fee6f072e80b36d8a728b': Second try at adding a compatibility symbol for the MemoryBase constructor.
Diffstat (limited to 'libs/binder')
-rw-r--r--libs/binder/MemoryBase.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/binder/MemoryBase.cpp b/libs/binder/MemoryBase.cpp
index 033066b..5c82330 100644
--- a/libs/binder/MemoryBase.cpp
+++ b/libs/binder/MemoryBase.cpp
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+#define LOG_TAG "MemoryBase"
#include <stdlib.h>
#include <stdint.h>
@@ -44,3 +45,11 @@ MemoryBase::~MemoryBase()
// ---------------------------------------------------------------------------
}; // namespace android
+
+// Backwards compatibility for libdatabase_sqlcipher (http://b/8253769).
+extern "C" void _ZN7android10MemoryBaseC1ERKNS_2spINS_11IMemoryHeapEEEij(void*, void*, ssize_t, size_t);
+extern "C" void _ZN7android10MemoryBaseC1ERKNS_2spINS_11IMemoryHeapEEElj(void* obj, void* h, long o, unsigned int size) {
+ _ZN7android10MemoryBaseC1ERKNS_2spINS_11IMemoryHeapEEEij(obj, h, o, size);
+ ALOGW("Using temporary compatibility workaround for usage of MemoryBase "
+ "private API. Please fix your application!");
+}