Info Call to native methods

Description

List of all calls to methods using Java Native Interface to interact with native code (written in C/C++).

Recommendation

Data passed to NewStringUTF must be in Modified UTF-8 format

UTF-16 strings are not zero-terminated

Object references should never be compared using == or != in native code. When testing for object equality, the IsSameObject() function should be used instead of ==.

Technical details
  • Method com.gaana.application.GaanaApplication->getEncryptionKey((I Landroid/content/Context;)Ljava/lang/String;)
  • Method com.gaana.application.GaanaApplication->nativeStringFromMethod(()[Ljava/lang/String;)
  • Method com.gaana.application.GaanaApplication->stringFromMethod(()[Ljava/lang/String;)
  • Method com.gaana.application.GaanaApplication->stringFromMethodKey(()[Ljava/lang/String;)
  • Method net.jpountz.lz4.LZ4JNI->LZ4_compressBound((I)I)
  • Method net.jpountz.lz4.LZ4JNI->LZ4_compressHC(([B Ljava/nio/ByteBuffer; I I [B Ljava/nio/ByteBuffer; I I I)I)
  • Method net.jpountz.lz4.LZ4JNI->LZ4_compress_limitedOutput(([B Ljava/nio/ByteBuffer; I I [B Ljava/nio/ByteBuffer; I I)I)
  • Method net.jpountz.lz4.LZ4JNI->LZ4_decompress_fast(([B Ljava/nio/ByteBuffer; I [B Ljava/nio/ByteBuffer; I I)I)
  • Method net.jpountz.lz4.LZ4JNI->LZ4_decompress_safe(([B Ljava/nio/ByteBuffer; I I [B Ljava/nio/ByteBuffer; I I)I)
  • Method net.jpountz.lz4.LZ4JNI->init(()V)