MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / CheckFlags

Function CheckFlags

Bcore/src/main/cpp/jnihook/JniHook.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool CheckFlags(void *artMethod) {
42 char *method = static_cast<char *>(artMethod);
43 if (!ArtM::HasAccessFlag(method, kAccNative)) {
44 ALOGE("not native method");
45 return false;
46 }
47 ArtM::ClearFastNativeFlag(method);
48 return true;
49}
50
51void JniHook::HookJniFun(JNIEnv *env, jobject java_method, void *new_fun,
52 void **orig_fun, bool is_static) {

Callers 1

HookJniFunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected