diff --git a/tools/aa/include/ability_command.h b/tools/aa/include/ability_command.h index d02bc0c30bbea4806de710fc9608963a927436ad..d709ed7d35c60c79baccc3dc9d98ea33f38a72d9 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 54fc5fc2dd036a99a51b4772cac3b157dce528ab..601ca40a79293a566ada51bdd3ae96f180b47acd 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