mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 07:10:19 +00:00
修复GrantDmsUriPermission代码问题
Signed-off-by: 段嗣钊 <duansizhao@huawei.com> Change-Id: I529f2e6420488704da2943227dd0adfcd73becfe
This commit is contained in:
parent
8ec347d055
commit
985b447046
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user