diff options
author | Orion Hodson <oth@google.com> | 2021-05-05 16:45:11 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-05-05 16:45:11 +0000 |
commit | 2a9e9c7747c76aec4849e56ae978350506dea57b (patch) | |
tree | 25b6dafdcf2bb6efe4a3747a2aa313de9d887249 | |
parent | 1b16f1ec3c954ed2802dde544aea4c0f9c609ca4 (diff) | |
parent | 3ae128569ed1683e570da350be75d08aa0d7a907 (diff) | |
download | native_bridge_support-2a9e9c7747c76aec4849e56ae978350506dea57b.tar.gz |
Add stubs for renamed libnativehelper NDK API methods am: 3ae128569e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/native_bridge_support/+/14353390
Change-Id: Iafefa271479b0369d1861bb23fb6042b89ec656b
-rw-r--r-- | libnativehelper/stubs_arm.cc | 4 | ||||
-rw-r--r-- | libnativehelper/stubs_arm64.cc | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libnativehelper/stubs_arm.cc b/libnativehelper/stubs_arm.cc index 4a9c073..1281ff3 100644 --- a/libnativehelper/stubs_arm.cc +++ b/libnativehelper/stubs_arm.cc @@ -19,7 +19,9 @@ DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_create); DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_getFD); +DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_getFd); DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_setFD); +DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_setFd); DEFINE_INTERCEPTABLE_STUB_FUNCTION(DlCloseLibrary); DEFINE_INTERCEPTABLE_STUB_FUNCTION(DlGetError); DEFINE_INTERCEPTABLE_STUB_FUNCTION(DlGetSymbol); @@ -70,7 +72,9 @@ DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniUninitializeConstants); static void __attribute__((constructor(0))) init_stub_library() { INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_create); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_getFD); + INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_getFd); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_setFD); + INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_setFd); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", DlCloseLibrary); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", DlGetError); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", DlGetSymbol); diff --git a/libnativehelper/stubs_arm64.cc b/libnativehelper/stubs_arm64.cc index 4a9c073..1281ff3 100644 --- a/libnativehelper/stubs_arm64.cc +++ b/libnativehelper/stubs_arm64.cc @@ -19,7 +19,9 @@ DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_create); DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_getFD); +DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_getFd); DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_setFD); +DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_setFd); DEFINE_INTERCEPTABLE_STUB_FUNCTION(DlCloseLibrary); DEFINE_INTERCEPTABLE_STUB_FUNCTION(DlGetError); DEFINE_INTERCEPTABLE_STUB_FUNCTION(DlGetSymbol); @@ -70,7 +72,9 @@ DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniUninitializeConstants); static void __attribute__((constructor(0))) init_stub_library() { INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_create); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_getFD); + INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_getFd); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_setFD); + INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_setFd); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", DlCloseLibrary); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", DlGetError); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", DlGetSymbol); |