mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
update frameworks/native/runtime/js_runtime_lite.cpp.
Signed-off-by: 查维 <zhawei12@huawei-partners.com>
This commit is contained in:
@@ -479,7 +479,7 @@ void JsRuntimeLite::GetPkgContextInfoListMap(const std::map<std::string, std::st
|
||||
continue;
|
||||
}
|
||||
ParsePkgContextInfoJson(jsonObject, pkgContextInfoList, pkgAliasMap);
|
||||
TAG_LOGI(AAFwkTag::JSRUNTIME, "moduleName: %{public}s parse ok", it->first.c_str());
|
||||
TAG_LOGD(AAFwkTag::JSRUNTIME, "moduleName: %{public}s parse json success", it->first.c_str());
|
||||
pkgContextInfoMap[it->first] = pkgContextInfoList;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8195,7 +8195,7 @@ void AbilityManagerService::RemoveUnauthorizedLaunchReasonMessage(const Want &wa
|
||||
std::string value = want.GetStringParam(Want::PARM_LAUNCH_REASON_MESSAGE);
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "launchReasonMessage:%{public}s", value.c_str());
|
||||
if (!AppUtils::GetInstance().IsSystemReasonMessage(value)) {
|
||||
TAG_LOGW(AAFwkTag::ABILITYMGR, "not in allowlist, remove");
|
||||
TAG_LOGW(AAFwkTag::ABILITYMGR, "not allow, remove");
|
||||
(const_cast<Want &>(want)).RemoveParam(Want::PARM_LAUNCH_REASON_MESSAGE);
|
||||
abilityRequest.want.RemoveParam(Want::PARM_LAUNCH_REASON_MESSAGE);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user