Fix installer app is not hooked in some cases

This commit is contained in:
solohsu 2019-02-05 21:47:36 +08:00
parent d9aeaf8112
commit 084496b4da
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,10 @@ int is_app_need_hook(JNIEnv *env, jstring appDataDir) {
}
}
env->ReleaseStringUTFChars(appDataDir, app_data_dir);
if (strcmp(package_name, "com.solohsu.android.edxp.manager") == 0) {
// always hook installer app
return 1;
}
bool use_white_list = access(USE_WHITE_LIST, F_OK) == 0;
bool white_list_exists = access(WHITE_LIST_PATH, F_OK) == 0;
bool black_list_exists = access(BLACK_LIST_PATH, F_OK) == 0;