Update stubs for libnativehelper libnativehelper API changes following NDK API review. Update made with: android_api/gen_proxy_libraries.py --trampolines --json libnativehelper Bug: 188067586 Test: TH Change-Id: I8e44b1d3aef9ad5ac0613f6396df25c0ce6ceed9
diff --git a/libnativehelper/stubs_arm.cc b/libnativehelper/stubs_arm.cc index b6cd163..e0d9d15 100644 --- a/libnativehelper/stubs_arm.cc +++ b/libnativehelper/stubs_arm.cc
@@ -50,16 +50,14 @@ DEFINE_INTERCEPTABLE_STUB_FUNCTION(JniInvocationGetLibrary); DEFINE_INTERCEPTABLE_STUB_FUNCTION(JniInvocationGetLibraryWith); DEFINE_INTERCEPTABLE_STUB_FUNCTION(JniInvocationInit); -DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniCreateFileDescriptor); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniCreateString); -DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniGetFDFromFileDescriptor); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniGetNioBufferBaseArray); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniGetNioBufferBaseArrayOffset); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniGetNioBufferFields); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniGetNioBufferPointer); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniLogException); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniRegisterNativeMethods); -DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniSetFileDescriptorOfFD); +DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniThrowErrnoException); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniThrowException); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniThrowExceptionFmt); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniThrowIOException); @@ -101,16 +99,14 @@ INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", JniInvocationGetLibrary); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", JniInvocationGetLibraryWith); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", JniInvocationInit); - INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniCreateFileDescriptor); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniCreateString); - INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniGetFDFromFileDescriptor); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniGetNioBufferBaseArray); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniGetNioBufferBaseArrayOffset); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniGetNioBufferFields); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniGetNioBufferPointer); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniLogException); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniRegisterNativeMethods); - INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniSetFileDescriptorOfFD); + INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniThrowErrnoException); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniThrowException); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniThrowExceptionFmt); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniThrowIOException);
diff --git a/libnativehelper/stubs_arm64.cc b/libnativehelper/stubs_arm64.cc index b6cd163..e0d9d15 100644 --- a/libnativehelper/stubs_arm64.cc +++ b/libnativehelper/stubs_arm64.cc
@@ -50,16 +50,14 @@ DEFINE_INTERCEPTABLE_STUB_FUNCTION(JniInvocationGetLibrary); DEFINE_INTERCEPTABLE_STUB_FUNCTION(JniInvocationGetLibraryWith); DEFINE_INTERCEPTABLE_STUB_FUNCTION(JniInvocationInit); -DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniCreateFileDescriptor); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniCreateString); -DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniGetFDFromFileDescriptor); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniGetNioBufferBaseArray); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniGetNioBufferBaseArrayOffset); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniGetNioBufferFields); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniGetNioBufferPointer); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniLogException); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniRegisterNativeMethods); -DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniSetFileDescriptorOfFD); +DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniThrowErrnoException); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniThrowException); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniThrowExceptionFmt); DEFINE_INTERCEPTABLE_STUB_FUNCTION(jniThrowIOException); @@ -101,16 +99,14 @@ INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", JniInvocationGetLibrary); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", JniInvocationGetLibraryWith); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", JniInvocationInit); - INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniCreateFileDescriptor); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniCreateString); - INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniGetFDFromFileDescriptor); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniGetNioBufferBaseArray); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniGetNioBufferBaseArrayOffset); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniGetNioBufferFields); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniGetNioBufferPointer); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniLogException); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniRegisterNativeMethods); - INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniSetFileDescriptorOfFD); + INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniThrowErrnoException); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniThrowException); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniThrowExceptionFmt); INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", jniThrowIOException);