diff --git a/xposed/src/main/cpp/clover.cpp b/xposed/src/main/cpp/clover.cpp index 6ff3210..abee4b8 100644 --- a/xposed/src/main/cpp/clover.cpp +++ b/xposed/src/main/cpp/clover.cpp @@ -93,38 +93,23 @@ FILE* fake_fopen(const char *filename, const char *mode) { return nullptr; } - if (strstr(filename, "libhoudini.so")) { - LOGI("[Shamrock] bypass emu detection"); - return nullptr; - } - if (strstr(filename, "libndk.so")) { - LOGI("[Shamrock] bypass emu detection"); - return nullptr; - } - if (strstr(filename, "libnoxd.so")) { //NoxAppPlayer - LOGI("[Shamrock] bypass emu detection"); - return nullptr; - } - if (strstr(filename, "libnoxspeedup.so")) { //NoxAppPlayer - LOGI("[Shamrock] bypass emu detection"); - return nullptr; - } - if (strstr(filename, "nox-prop")) { //NoxAppPlayer (Useless?) - LOGI("[Shamrock] bypass emu detection"); - return nullptr; - } - if (strstr(filename, "nox-vbox-sf")) { //NoxAppPlayer (Useless?) - LOGI("[Shamrock] bypass emu detection"); - return nullptr; - } - if (strstr(filename, "noxd")) { //NoxAppPlayer (Useless?) - LOGI("[Shamrock] bypass emu detection"); - return nullptr; - } - if (strstr(filename, "noxspeedup")) { //NoxAppPlayer (Useless?) - LOGI("[Shamrock] bypass emu detection"); - return nullptr; + const char* emuSpecFile[] = { + "libhoudini.so", + "libndk.so", + "libnoxd.so", //NoxAppPlayer + "libnoxspeedup.so", //NoxAppPlayer + "nox-prop", //NoxAppPlayer (MayUseless?) + "nox-vbox-sf", //NoxAppPlayer (MayUseless?) + "noxd", //NoxAppPlayer (MayUseless?) + "noxspeedup", //NoxAppPlayer (MayUseless?) + }; + for (const char* keyword : emuSpecFile) { + if (strstr(filename, keyword)) { + LOGI("[Shamrock] bypass emu detection"); + return nullptr; + } } + if (strstr(filename, "libdobby.so")) { LOGI("[Shamrock] bypass dobby detection"); return nullptr;