refgd / BlackBox

BlackBox is a virtual engine, it can clone and run virtual application on Android, users don't have to install APK file to run the application on devices. BlackBox control all virtual applications, so you can do anything you want by using BlackBox.
Apache License 2.0
40 stars 6 forks source link

[Other]JniHook.cpp下的CheckFlags不检查系统包 #16

Open yuleniwo opened 1 year ago

yuleniwo commented 1 year ago

Bcore/src/main/cpp/JniHook/JniHook.cpp

//  不检查系统包
if (!strncmp(class_name, "android.", 8) && !CheckFlags(artMethod)) {
    ALOGE("check flags error. class:%s, method:%s", class_name, method_name);
    return;
}

这个是只CheckFlags以"android."打头的包啊? blackbox里面的程序都运行不起来,改成if (strncmp(class_name, "android.", 8) && !CheckFlags(artMethod)) { 发现就可以了。