Fix snapshot blacklist

This commit is contained in:
LoveSy 2020-11-25 20:25:09 +08:00 committed by 双草酸酯
parent 45b28da6e1
commit 4570d8ff46
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ namespace edxp {
if (!can_access_app_data) {
LOGE("can't access config path, using snapshot black list: %s",
package_name.c_str());
return black_list_default_.count(package_name);
return black_list_default_.count(package_name) == 0;
}
std::string target_path = blacklist_path_ / package_name;
bool res = !path_exists(target_path);