Merge pull request #144 from PisLuanyao/master

`Clover.cpp`: NoxAppPlayer里的鸡脚so
This commit is contained in:
白池 2023-12-10 01:09:21 +08:00 committed by GitHub
commit 85cdc86b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,7 @@ int fake_system_property_get(const char *name, char *value) {
|| strstr(value, "unknown")
|| strstr(value, "emulator")
|| strstr(value, "vbox")
|| strstr(value, "nox") //部分NoxAppPlayer
|| strstr(value, "genymotion")
|| strstr(value, "goldfish")) {
strcpy(value, "qcom");
@ -92,14 +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;
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;