diff --git a/services/abilitymgr/src/ability_manager_client.cpp b/services/abilitymgr/src/ability_manager_client.cpp index 89b5bdc6435033b6f767769c08397c5495681916..85accdc733a12c7521dec3e314677d6d704037ee 100644 --- a/services/abilitymgr/src/ability_manager_client.cpp +++ b/services/abilitymgr/src/ability_manager_client.cpp @@ -1798,7 +1798,7 @@ ErrCode AbilityManagerClient::RegisterStatusBarDelegate(sptr& pids) { - TAG_LOGI(AAFwkTag::ABILITYMGR, "call"); + TAG_LOGI(AAFwkTag::ABILITYMGR, "scb call, KillProcessWithPrepareTerminate"); auto abms = GetAbilityManager(); CHECK_POINTER_RETURN_NOT_CONNECTED(abms); return abms->KillProcessWithPrepareTerminate(pids); diff --git a/services/uripermmgr/src/batch_uri.cpp b/services/uripermmgr/src/batch_uri.cpp index 35c7b55c85e94916675978c0aa703d62b414e5da..75ab71d71099b4fff019c1ae738ff4a63092cfa3 100644 --- a/services/uripermmgr/src/batch_uri.cpp +++ b/services/uripermmgr/src/batch_uri.cpp @@ -58,7 +58,6 @@ void BatchUri::InitFileUriInfo(Uri &uriInner, uint32_t index, const uint32_t mod const std::string &callerAlterBundleName, const std::string &targetAlterBundleName) { auto &&authority = uriInner.GetAuthority(); - TAG_LOGD(AAFwkTag::URIPERMMGR, "Authority of uri is %{public}s.", authority.c_str()); // media uri if (authority == "media") { mediaUris.emplace_back(uriInner.ToString()); diff --git a/tools/aa/src/ability_command.cpp b/tools/aa/src/ability_command.cpp index 4b5adb4175e9fe83c0a373b62133a9cade2971ae..aabd679e0eee0b3b7c29588322e6ac30967516f3 100644 --- a/tools/aa/src/ability_command.cpp +++ b/tools/aa/src/ability_command.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2024 Huawei Device Co., Ltd. + * Copyright (c) 2021-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -238,6 +238,10 @@ constexpr struct option LONG_OPTIONS_SEND_MEMORY_LEVEL[] = { AbilityManagerShellCommand::AbilityManagerShellCommand(int argc, char* argv[]) : ShellCommand(argc, argv, TOOL_NAME) { for (int i = 0; i < argc_; i++) { + if (i > 1) { + TAG_LOGI(AAFwkTag::AA_TOOL, "argc greater than 2, ignoring the rest"); + return; + } TAG_LOGI(AAFwkTag::AA_TOOL, "argv_[%{public}d]: %{public}s", i, argv_[i]); } } diff --git a/tools/aa/src/ability_tool_command.cpp b/tools/aa/src/ability_tool_command.cpp index c98a63b2542ac2b12a44159b308e7a865d048f9f..53141106c4bf2ac4cd39f3a9a506676b96445f8d 100644 --- a/tools/aa/src/ability_tool_command.cpp +++ b/tools/aa/src/ability_tool_command.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -103,6 +103,10 @@ const int32_t ARG_LIST_INDEX_OFFSET = 2; AbilityToolCommand::AbilityToolCommand(int argc, char* argv[]) : ShellCommand(argc, argv, ABILITY_TOOL_NAME) { for (int i = 0; i < argc_; i++) { + if (i > 1) { + TAG_LOGI(AAFwkTag::AA_TOOL, "argc greater than 2, ignoring the rest"); + break; + } TAG_LOGI(AAFwkTag::AA_TOOL, "argv_[%{public}d]: %{public}s", i, argv_[i]); }