diff --git a/daemon/src/main/cpp/obfuscation.cpp b/daemon/src/main/cpp/obfuscation.cpp index 732213cb..12181902 100644 --- a/daemon/src/main/cpp/obfuscation.cpp +++ b/daemon/src/main/cpp/obfuscation.cpp @@ -36,7 +36,7 @@ #include "obfuscation.h" bool obfuscate_enabled(JNIEnv* env, jclass obfuscation_manager) { - auto method_enabled = JNI_GetMethodID(env, obfuscation_manager, "enabled", "()Z"); + auto method_enabled = JNI_GetStaticMethodID(env, obfuscation_manager, "enabled", "()Z"); auto result = JNI_CallStaticBooleanMethod(env, obfuscation_manager, method_enabled); return result; }