Info List of JNI methods

Description

Java Native Interface (JNI) allows Java code to interact with native applications and libraries written in Rust, C, C++ and assembly

Improper use of the Java Native Interface renders the application vulnerable to security flaws present in other programming languages, like memory corruption.

Recommendation

Native code must adhere to Secure Coding best practices to protect against vulnerabilities in unmanaged code like memory corruption.

Technical details

File lib/armeabi-v7a/libimagepipeline.so:

MethodSignatureAddress
nativeTranscodeJpeg(Ljava/io/InputStream;Ljava/io/OutputStream;III)V0x3d00c
nativeTranscodeJpegWithExifOrientation(Ljava/io/InputStream;Ljava/io/OutputStream;III)V0x3d018
nativeCopyBitmap(Landroid/graphics/Bitmap;ILandroid/graphics/Bitmap;II)V0x3d028
nativePinBitmap(Landroid/graphics/Bitmap;)V0x3d034
nativeAllocate(I)J0x3d040
nativeFree(J)V0x3d04c
nativeCopyToByteArray(J[BII)V0x3d058
nativeCopyFromByteArray(J[BII)V0x3d064
nativeMemcpy(JJI)V0x3d070
nativeReadByte(J)B0x3d07c

File lib/armeabi-v7a/libnative-filters.so:

MethodSignatureAddress
nativeIterativeBoxBlur(Landroid/graphics/Bitmap;II)V0x400c
nativeToCircleFilter(Landroid/graphics/Bitmap;Z)V0x4018
nativeToCircleWithBorderFilter(Landroid/graphics/Bitmap;IIZ)V0x4024

File lib/armeabi-v7a/libjcore118.so:

MethodSignatureAddress
Java_cn_jiguang_service_Protocol_GetSdkVersion0xc59
Java_cn_jiguang_service_Protocol_getCerTificate0xc5d

File lib/armeabi-v7a/liblivenessdetection_v2.4.4.so:

MethodSignatureAddress
Java_com_megvii_livenessdetection_Detector_nativeDetection0x2ae14
Java_com_megvii_livenessdetection_Detector_nativeEncode0x2b250
Java_com_megvii_livenessdetection_Detector_nativeFaceQuality0x2aff4
Java_com_megvii_livenessdetection_Detector_nativeGetVersion0x2b1c8
Java_com_megvii_livenessdetection_Detector_nativeRawInit0x2a7d0
Java_com_megvii_livenessdetection_Detector_nativeRelease0x2ad9c
Java_com_megvii_livenessdetection_Detector_nativeReset0x2adb4
Java_com_megvii_livenessdetection_Detector_waitNormal0x2b1e0
Java_com_megvii_livenessdetection_LivenessLicenseManager_nativeCheckLicense0x2ec50
Java_com_megvii_livenessdetection_LivenessLicenseManager_nativeGenAuthMsg0x2b8a4
Java_com_megvii_livenessdetection_impl_EncodeImpl_nativeEncode0x2b4a8