The C declarations of JNIEnv and JavaVM are different from the C++ declarations. The “jni.h” include file provides different typedefs depending on whether it’s included into C or C++. For this reason it’s a bad idea to include JNIEnv arguments in header files included by both languages.
i wonder wich one of the declarations have been used in nativedroid? does it even matter for the analysis that the code is c or c++?
From the Android JNI Tips documentation:
The C declarations of JNIEnv and JavaVM are different from the C++ declarations. The “jni.h” include file provides different typedefs depending on whether it’s included into C or C++. For this reason it’s a bad idea to include JNIEnv arguments in header files included by both languages.
i wonder wich one of the declarations have been used in nativedroid? does it even matter for the analysis that the code is c or c++?