From f0fcf9fd1903c28c7b553616988dccaddfb7b2ce Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Fri, 13 Jun 2025 17:16:38 +0800 Subject: [PATCH] idl_bundlemgr_ext Signed-off-by: lanhaoyu --- frameworks/src/bundle_test_tool.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/frameworks/src/bundle_test_tool.cpp b/frameworks/src/bundle_test_tool.cpp index f9ebbf6..3e80cb7 100644 --- a/frameworks/src/bundle_test_tool.cpp +++ b/frameworks/src/bundle_test_tool.cpp @@ -33,7 +33,7 @@ #include "bundle_death_recipient.h" #include "bundle_dir.h" #include "bundle_mgr_client.h" -#include "bundle_mgr_ext_proxy.h" +#include "bundle_mgr_ext_client.h" #include "bundle_mgr_proxy.h" #include "bundle_tool_callback_stub.h" #include "common_event_manager.h" @@ -5739,16 +5739,14 @@ ErrCode BundleTestTool::RunAsGetBundleNamesForUidExtCommand() } ErrCode result = ERR_OK; - auto bundleMgrExtProxy = bundleMgrProxy_->GetBundleMgrExtProxy(); - if (bundleMgrExtProxy != nullptr) { - int32_t uidInt = 0; - if (StrToInt(uid, uidInt)) { - result = bundleMgrExtProxy->GetBundleNamesForUidExt(uidInt, bundleNames); - } else { - APP_LOGI("Failed to convert uid"); - return OHOS::ERR_INVALID_VALUE; - } + int32_t uidInt = 0; + if (StrToInt(uid, uidInt)) { + result = BundleMgrExtClient::GetInstance().GetBundleNamesForUidExt(uidInt, bundleNames); + } else { + APP_LOGI("Failed to convert uid"); + return OHOS::ERR_INVALID_VALUE; } + if (result == ERR_OK) { resultReceiver_.append("GetBundleNamesForUidExt success"); std::string msg = "bundle name list:\n{\n"; -- Gitee