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 bitter.jnibridge.JNIBridge->delete((J)V)
  • Method bitter.jnibridge.JNIBridge->invoke((J Ljava/lang/Class; Ljava/lang/reflect/Method; [Ljava/lang/Object;)Ljava/lang/Object;)
  • Method com.google.googlesignin.GoogleSignInHelper->nativeOnResult((J I Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;)V)
  • Method com.unity3d.player.GoogleARCoreApi->initializeARCore((Landroid/app/Activity;)V)
  • Method com.unity3d.player.GoogleARCoreApi->pauseARCore(()V)
  • Method com.unity3d.player.GoogleARCoreApi->resumeARCore(()V)
  • Method com.unity3d.player.NativeLoader->load((Ljava/lang/String;)Z)
  • Method com.unity3d.player.NativeLoader->unload(()Z)
  • Method com.unity3d.player.ReflectionHelper->nativeProxyFinalize((I)V)
  • Method com.unity3d.player.ReflectionHelper->nativeProxyInvoke((I Ljava/lang/String; [Ljava/lang/Object;)Ljava/lang/Object;)
  • Method com.unity3d.player.ReflectionHelper->nativeProxyLogJNIInvokeException(()V)
  • Method com.unity3d.player.UnityWebRequest->contentLengthCallback((J I)V)
  • Method com.unity3d.player.UnityWebRequest->downloadCallback((J Ljava/nio/ByteBuffer; I)Z)
  • Method com.unity3d.player.UnityWebRequest->errorCallback((J I Ljava/lang/String;)V)
  • Method com.unity3d.player.UnityWebRequest->headerCallback((J Ljava/lang/String; Ljava/lang/String;)V)
  • Method com.unity3d.player.UnityWebRequest->responseCodeCallback((J I)V)
  • Method com.unity3d.player.UnityWebRequest->uploadCallback((J Ljava/nio/ByteBuffer;)I)
  • Method com.unity3d.player.UnityWebRequest->validateCertificateCallback((J [B)Z)
  • Method org.fmod.FMODAudioDevice->fmodGetInfo((I)I)
  • Method org.fmod.FMODAudioDevice->fmodProcess((Ljava/nio/ByteBuffer;)I)
  • Method org.fmod.FMODAudioDevice->fmodProcessMicData((Ljava/nio/ByteBuffer; I)I)
  • Method com.unity3d.player.Camera2Wrapper->initCamera2Jni(()V)
  • Method com.unity3d.player.Camera2Wrapper->nativeFrameReady((Ljava/lang/Object; Ljava/lang/Object; Ljava/lang/Object; I I I)V)
  • Method com.unity3d.player.Camera2Wrapper->nativeSurfaceTextureReady((Ljava/lang/Object;)V)
  • Method com.unity3d.player.GoogleVrProxy->initVrJni(()V)
  • Method com.unity3d.player.GoogleVrProxy->isQuiting(()Z)
  • Method com.unity3d.player.GoogleVrProxy->setVrVideoTransform(([[F)V)
  • Method com.unity3d.player.UnityPlayer->initJni((Landroid/content/Context;)V)
  • Method com.unity3d.player.UnityPlayer->nativeDone(()V)
  • Method com.unity3d.player.UnityPlayer->nativeFocusChanged((Z)V)
  • Method com.unity3d.player.UnityPlayer->nativeInitWebRequest((Ljava/lang/Class;)V)
  • Method com.unity3d.player.UnityPlayer->nativeInjectEvent((Landroid/view/InputEvent;)Z)
  • Method com.unity3d.player.UnityPlayer->nativeIsAutorotationOn(()Z)
  • Method com.unity3d.player.UnityPlayer->nativeLowMemory(()V)
  • Method com.unity3d.player.UnityPlayer->nativeMuteMasterAudio((Z)V)
  • Method com.unity3d.player.UnityPlayer->nativePause(()Z)
  • Method com.unity3d.player.UnityPlayer->nativeRecreateGfxState((I Landroid/view/Surface;)V)
  • Method com.unity3d.player.UnityPlayer->nativeRender(()Z)
  • Method com.unity3d.player.UnityPlayer->nativeRestartActivityIndicator(()V)
  • Method com.unity3d.player.UnityPlayer->nativeResume(()V)
  • Method com.unity3d.player.UnityPlayer->nativeSendSurfaceChangedEvent(()V)
  • Method com.unity3d.player.UnityPlayer->nativeSetInputSelection((I I)V)
  • Method com.unity3d.player.UnityPlayer->nativeSetInputString((Ljava/lang/String;)V)
  • Method com.unity3d.player.UnityPlayer->nativeSoftInputCanceled(()V)
  • Method com.unity3d.player.UnityPlayer->nativeSoftInputClosed(()V)
  • Method com.unity3d.player.UnityPlayer->nativeSoftInputLostFocus(()V)
  • Method com.unity3d.player.UnityPlayer->nativeUnitySendMessage((Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)V)