Shamrock: 优化检测逻辑

This commit is contained in:
WhiteChi 2023-12-09 16:18:30 +08:00
parent adb7b12c16
commit 37f74d5284

View File

@ -96,7 +96,14 @@ FILE* fake_fopen(const char *filename, const char *mode) {
LOGI("[Shamrock] bypass emu detection"); LOGI("[Shamrock] bypass emu detection");
return nullptr; return nullptr;
} }
if (strstr(filename, "libndk.so")) {
LOGI("[Shamrock] bypass emu detection");
return nullptr;
}
if (strstr(filename, "libdobby.so")) {
LOGI("[Shamrock] bypass dobby detection");
return nullptr;
}
return backup_fopen(filename, mode); return backup_fopen(filename, mode);
} }
@ -120,4 +127,4 @@ Java_moe_fuqiuluo_shamrock_xposed_actions_AntiDetection_antiNativeDetections(JNI
hook_function((void*) __system_property_get, (void *)fake_system_property_get, (void **) &backup_system_property_get); hook_function((void*) __system_property_get, (void *)fake_system_property_get, (void **) &backup_system_property_get);
hook_function((void*) fopen, (void*) fake_fopen, (void**) &backup_fopen); hook_function((void*) fopen, (void*) fake_fopen, (void**) &backup_fopen);
return true; return true;
} }