From 2c1053d88fc07ef0fafddce51cb1d3746102c6bd Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Wed, 19 Feb 2025 10:13:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=BA=94=E7=94=A8=E9=94=81?= =?UTF-8?q?=E5=AF=B9bm=E5=B7=A5=E5=85=B7=E7=9A=84=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lanhaoyu --- frameworks/src/bundle_command.cpp | 1 - frameworks/src/bundle_command_common.cpp | 4 ---- 2 files changed, 5 deletions(-) diff --git a/frameworks/src/bundle_command.cpp b/frameworks/src/bundle_command.cpp index 915ad2e..d04574c 100644 --- a/frameworks/src/bundle_command.cpp +++ b/frameworks/src/bundle_command.cpp @@ -926,7 +926,6 @@ ErrCode BundleManagerShellCommand::RunAsUninstallCommand() InstallParam installParam; installParam.userId = userId; installParam.isKeepData = isKeepData; - installParam.parameters.emplace(Constants::VERIFY_UNINSTALL_RULE_KEY, Constants::VERIFY_UNINSTALL_RULE_VALUE); int32_t uninstallResult = UninstallOperation(bundleName, moduleName, installParam); if (uninstallResult == OHOS::ERR_OK) { resultReceiver_ = STRING_UNINSTALL_BUNDLE_OK + "\n"; diff --git a/frameworks/src/bundle_command_common.cpp b/frameworks/src/bundle_command_common.cpp index 800cfc7..eafb823 100644 --- a/frameworks/src/bundle_command_common.cpp +++ b/frameworks/src/bundle_command_common.cpp @@ -703,10 +703,6 @@ std::map BundleCommandCommon::bundleMessageMap_ = { IStatusReceiver::ERR_INSTALL_ENCRYPTED_BUNDLE_NOT_ALLOWED_FOR_SHELL, "error: Encrypted bundle cannot be installed." }, - { - IStatusReceiver::ERR_UNINSTALL_DISPOSED_RULE_DENIED, - "error: Failed to uninstall the app because the app is locked." - }, { IStatusReceiver::ERR_INSTALL_APPID_NOT_SAME_WITH_PREINSTALLED, "error: Bundle cannot be installed because the appId is not same with preinstalled bundle." -- Gitee