From 877f8ce79972a7b021f7671623fc3ad4917dffd8 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 13 Aug 2025 15:37:56 +0800 Subject: [PATCH] add -c Signed-off-by: unknown --- tools/aa/include/ability_command.h | 2 +- tools/aa/src/ability_command.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/aa/include/ability_command.h b/tools/aa/include/ability_command.h index d02bc0c30bb..d709ed7d35c 100644 --- a/tools/aa/include/ability_command.h +++ b/tools/aa/include/ability_command.h @@ -64,7 +64,7 @@ const std::string HELP_MSG_START = "options list:\n" " -h, --help list available commands\n" " [-d ] [-a -b ] [-m ] [-p ] [-D] [-E] [-S] [-N]" - " [-R] [--ps ] " + " [-R] [-c] [--ps ] " " [--pi ] " " [--pb ] " " [--psn ] " diff --git a/tools/aa/src/ability_command.cpp b/tools/aa/src/ability_command.cpp index 54fc5fc2dd0..601ca40a792 100644 --- a/tools/aa/src/ability_command.cpp +++ b/tools/aa/src/ability_command.cpp @@ -66,7 +66,7 @@ constexpr int64_t MAX_WAIT_TIME = 15 * 1000 * 1000; // us const std::string DEVELOPERMODE_STATE = "const.security.developermode.state"; -const std::string SHORT_OPTIONS = "h:d:a:b:e:t:p:m:A:U:CDESNR"; +const std::string SHORT_OPTIONS = "ch:d:a:b:e:t:p:m:A:U:CDESNR"; const std::string RESOLVE_ABILITY_ERR_SOLUTION_ONE = "Check if the parameter abilityName of aa -a and the parameter bundleName of -b are correct"; const std::string RESOLVE_ABILITY_ERR_SOLUTION_TWO = @@ -2102,6 +2102,12 @@ ErrCode AbilityManagerShellCommand::MakeWantFromCmd(Want& want, std::string& win isSandboxApp = true; break; } + case 'c': { + // 'aa start -c' for xts use + // set ability launch reason = continuation + isContinuation = true; + break; + } case 'N': { // 'aa start -N' // wait for debug in appspawn -- Gitee