From 85b4043ca6f566521dd7953658835b1bb835f27b Mon Sep 17 00:00:00 2001 From: ma34s Date: Sun, 23 Mar 2014 14:54:36 +0900 Subject: binder: Add readuInt64() symbol for LG RIL compatibility * LG RIL libs need readuInt64() (I have no idea why, blame LG) * Instead of having to use liblgderp.so we can just set NEEDS_LGE_RIL_SYMBOLS to incorporate the symbols into the system * Original commits: - http://review.cyanogenmod.org/#/c/61459/ - http://review.cyanogenmod.org/#/c/61460/ Change-Id: I9069dbde7a5800c538b135963b4cf7365a1b3f80 --- include/binder/Parcel.h | 3 +++ libs/binder/Parcel.cpp | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h index 6a69761cf..6e098bf43 100644 --- a/include/binder/Parcel.h +++ b/include/binder/Parcel.h @@ -154,6 +154,9 @@ public: status_t readInt32(int32_t *pArg) const; int64_t readInt64() const; status_t readInt64(int64_t *pArg) const; +#ifdef NEEDS_LGE_RIL_SYMBOLS + status_t readuInt64(uint64_t *pArg) const; +#endif float readFloat() const; status_t readFloat(float *pArg) const; double readDouble() const; diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index e7589b1a5..2805cc9a4 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -1045,6 +1045,15 @@ int64_t Parcel::readInt64() const return readAligned(); } + +#ifdef NEEDS_LGE_RIL_SYMBOLS +status_t Parcel::readuInt64(uint64_t *pArg) const +{ + return readAligned(pArg); +} +#endif + + status_t Parcel::readPointer(uintptr_t *pArg) const { status_t ret; -- cgit v1.2.3