mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Merge pull request #144 from PisLuanyao/master
`Clover.cpp`: NoxAppPlayer里的鸡脚so
This commit is contained in:
commit
85cdc86b07
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user