adjust log level

This commit is contained in:
kotori0 2020-12-14 16:28:57 +08:00
parent 07bbbbf90a
commit 560682bcc7
1 changed files with 7 additions and 7 deletions

View File

@ -220,11 +220,11 @@ namespace edxp {
} }
if (skip_ && !ConfigManager::GetInstance()->IsAppNeedHook("android")) { if (skip_ && !ConfigManager::GetInstance()->IsAppNeedHook("android")) {
skip_ = true; skip_ = true;
LOGW("skip injecting into android because it's whitelisted/blacklisted"); LOGD("skip injecting into android because it's whitelisted/blacklisted");
} }
if (!skip_ && app_modules_list_.empty()) { if (!skip_ && app_modules_list_.empty()) {
skip_ = true; skip_ = true;
LOGW("skip injecting into android because no module hooks it"); LOGD("skip injecting into android because no module hooks it");
} }
if (!skip_) { if (!skip_) {
PreLoadDex(ConfigManager::GetInjectDexPaths()); PreLoadDex(ConfigManager::GetInjectDexPaths());
@ -354,12 +354,12 @@ namespace edxp {
skip = true; skip = true;
} }
if (!skip && !info_res) { if (!skip && !info_res) {
LOGW("skip injecting into %s because it has no data dir", package_name.c_str()); LOGD("skip injecting into %s because it has no data dir", package_name.c_str());
skip = true; skip = true;
} }
if (!skip && is_child_zygote) { if (!skip && is_child_zygote) {
skip = true; skip = true;
LOGW("skip injecting into %s because it's a child zygote", package_name.c_str()); LOGD("skip injecting into %s because it's a child zygote", package_name.c_str());
} }
if (!skip && ((app_id >= FIRST_ISOLATED_UID && app_id <= LAST_ISOLATED_UID) || if (!skip && ((app_id >= FIRST_ISOLATED_UID && app_id <= LAST_ISOLATED_UID) ||
@ -367,18 +367,18 @@ namespace edxp {
app_id <= LAST_APP_ZYGOTE_ISOLATED_UID) || app_id <= LAST_APP_ZYGOTE_ISOLATED_UID) ||
app_id == SHARED_RELRO_UID)) { app_id == SHARED_RELRO_UID)) {
skip = true; skip = true;
LOGW("skip injecting into %s because it's isolated", package_name.c_str()); LOGI("skip injecting into %s because it's isolated", package_name.c_str());
} }
if (!skip && !ConfigManager::GetInstance()->IsAppNeedHook(package_name)) { if (!skip && !ConfigManager::GetInstance()->IsAppNeedHook(package_name)) {
skip = true; skip = true;
LOGW("skip injecting xposed into %s because it's whitelisted/blacklisted", LOGD("skip injecting xposed into %s because it's whitelisted/blacklisted",
package_name.c_str()); package_name.c_str());
} }
if (!skip && empty_list() && !ConfigManager::GetInstance()->IsInstaller(package_name)) { if (!skip && empty_list() && !ConfigManager::GetInstance()->IsInstaller(package_name)) {
skip = true; skip = true;
LOGW("skip injecting xposed into %s because no module hooks it", LOGD("skip injecting xposed into %s because no module hooks it",
package_name.c_str()); package_name.c_str());
} }
return skip; return skip;