mirror of
https://gitee.com/openharmony/security_appverify
synced 2024-11-23 14:39:58 +00:00
IssueNo:#I9NUTR
Description:修改解析appServicesCapabilities Sig:bundleManager Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: daiyujia <daiyujia@huawei.com> Change-Id: Ic779e1a02f98ac1cebcbb667a1ed1577a86fe9c4
This commit is contained in:
parent
32e7114a67
commit
b70c4cb7d3
@ -230,7 +230,11 @@ void from_json(const json& obj, ProvisionInfo& out)
|
||||
GetStringArrayIfExist(obj, KEY_APP_PRIVILEGE_CAPABILITIES, out.appPrivilegeCapabilities);
|
||||
ParseValidity(obj, out.validity);
|
||||
ParseMetadata(obj, out);
|
||||
GetStringIfExist(obj, KEY_APP_SERVICES_CAPABILITIES, out.appServiceCapabilities);
|
||||
if (obj.find(KEY_APP_SERVICES_CAPABILITIES) != obj.end()) {
|
||||
if (obj[KEY_APP_SERVICES_CAPABILITIES].dump().size() > 0) {
|
||||
out.appServiceCapabilities = obj[KEY_APP_SERVICES_CAPABILITIES].dump();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#define RETURN_IF_STRING_IS_EMPTY(str, msg) \
|
||||
|
Loading…
Reference in New Issue
Block a user