From 3dfe9b67784c146eb69c24bee4067b98b4507af7 Mon Sep 17 00:00:00 2001 From: xiaozuo00 Date: Wed, 10 Sep 2025 21:15:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AEuri=20Signed-off-by:=20xiaozu?= =?UTF-8?q?o00=20=20Change-Id:=20I4e4ec09d0e2881a3fb?= =?UTF-8?q?c9236b909d98cc71855472?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0c821b7db99963d49e432fe2ce6db2f5e9a3ab24 --- services/bundlemgr/src/bundle_mgr_host_impl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/bundlemgr/src/bundle_mgr_host_impl.cpp b/services/bundlemgr/src/bundle_mgr_host_impl.cpp index 8442248e46..c7108263e8 100644 --- a/services/bundlemgr/src/bundle_mgr_host_impl.cpp +++ b/services/bundlemgr/src/bundle_mgr_host_impl.cpp @@ -86,6 +86,7 @@ const std::string NEW_LINE = "\n"; const std::string ACTION_VIEW_DATA = "ohos.want.action.viewData"; const std::string RESOURCE_NOT_SUPPORT = "warning: dump label failed due to the device not supporting bundle resource!"; +const std::string FILE_URI = "file"; const uint8_t JSON_INDENTATION = 4; const uint64_t BAD_CONTEXT_ID = 0; const uint64_t VECTOR_SIZE_MAX = 200; @@ -6196,6 +6197,7 @@ ErrCode BundleMgrHostImpl::ImplicitQueryAbilityInfosWithDefault(const std::strin Want want; want.SetType(normalizedType); want.SetAction(ACTION_VIEW_DATA); + want.SetUri(FILE_URI); int32_t abilityInfoflags = static_cast(GetAbilityInfoFlag::GET_ABILITY_INFO_DEFAULT); auto uid = IPCSkeleton::GetCallingUid(); int32_t userId = BundleUtil::GetUserIdByUid(uid); -- Gitee