From 37f74d5284601f18fc26227ff24e9bb922304882 Mon Sep 17 00:00:00 2001 From: WhiteChi Date: Sat, 9 Dec 2023 16:18:30 +0800 Subject: [PATCH] =?UTF-8?q?`Shamrock`:=20=E4=BC=98=E5=8C=96=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xposed/src/main/cpp/clover.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/xposed/src/main/cpp/clover.cpp b/xposed/src/main/cpp/clover.cpp index 796c427..d2f91d3 100644 --- a/xposed/src/main/cpp/clover.cpp +++ b/xposed/src/main/cpp/clover.cpp @@ -96,7 +96,14 @@ FILE* fake_fopen(const char *filename, const char *mode) { LOGI("[Shamrock] bypass emu detection"); 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); } @@ -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*) fopen, (void*) fake_fopen, (void**) &backup_fopen); return true; -} \ No newline at end of file +}