arguslab / Argus-SAF

Argus static analysis framework
Apache License 2.0
181 stars 49 forks source link

What type of declarations nativedroid used for JNIEnv and JavaVM? #74

Closed behnamben closed 3 years ago

behnamben commented 4 years ago

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++?