修复GrantDmsUriPermission代码问题

Signed-off-by: 段嗣钊 <duansizhao@huawei.com>
Change-Id: I529f2e6420488704da2943227dd0adfcd73becfe
This commit is contained in:
段嗣钊 2024-11-20 14:51:34 +08:00
parent 8ec347d055
commit 985b447046
2 changed files with 7 additions and 7 deletions

View File

@ -611,11 +611,6 @@ enum {
*/
ERR_ALL_APP_START_BLOCKED = 2097270,
/*
* Result (2097278) for replying failed while executing insight intent.
*/
ERR_INSIGHT_INTENT_EXECUTE_REPLY_FAILED = 2097278,
/**
* Result(2097271) not support multi-instance.
*/
@ -650,11 +645,16 @@ enum {
* Result (2097277) for invalid extension type.
*/
ERR_INVALID_EXTENSION_TYPE = 2097277,
/*
* Result (2097278) for replying failed while executing insight intent.
*/
ERR_INSIGHT_INTENT_EXECUTE_REPLY_FAILED = 2097278,
/*
* Result (2097278) for get target bundle info failed.
*/
ERR_GET_TARGET_BUNDLE_INFO_FAILED = 2097278,
ERR_GET_TARGET_BUNDLE_INFO_FAILED = 2097279,
/**
* Native error(3000000) for target bundle not exist.

View File

@ -3409,7 +3409,7 @@ void AbilityRecord::GrantDmsUriPermission(Want &want, std::string targetBundleNa
return;
}
std::vector<Uri> uriVec;
for (auto &uriStr: uriVec) {
for (auto &uriStr: uriStrVec) {
uriVec.emplace_back(uriStr);
}
auto ret = IN_PROCESS_CALL(UriPermissionManagerClient::GetInstance().GrantUriPermissionPrivileged(uriVec,