任国军
f3dc2216e3
Revert "fix CWE-78 command injection in aa tool"
...
This reverts commit ac996bcc6f .
Co-Authored-By: Agent
Signed-off-by: 任国军 <renguojun1@h-partners.com >
2026-06-29 16:43:03 +08:00
任国军
283e2dd301
fix CWE-78 command injection in aa tool
...
Co-Authored-By: Agent
Signed-off-by: 任国军 <renguojun1@h-partners.com >
2026-06-24 22:37:04 +08:00
SKY2001
b68ddd9e42
aa工具CLI化
...
Signed-off-by: SKY2001 <songtianyu10@huawei.com >
Co-Authored-By: Agent
2026-05-06 11:11:11 +08:00
DESKTOP-UGVMD4B\DawnComing
430ac0d9d9
游戏预启动需求
...
Signed-off-by: lidongrui <lidongrui3@huawei.com >
Co-Authored-By: Agent
2026-04-11 20:39:27 +08:00
openharmony_ci
c3ad21928b
!18785 merge master into master
...
aa tset 新增 userID
Created-by: liuzongze
Commit-by: liuzongze
Merged-by: openharmony_ci
Description: **IssueNo**:
https://gitcode.com/openharmony/ability_ability_runtime/issues/14837
**Description**:
**稳定性自检:**
| 自检项 | 自检结果 |
| ------------------------------------------------------------ | -------- |
| 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发 | 不涉及 |
| 成员变量进行赋值或创建需要排查并发 | 不涉及 |
| 谨慎在lambda表达式中使用引用捕获 | 不涉及 |
| 谨慎在未经拷贝的情况下使用外部传入的string、C字符串 | 不涉及 |
| map\vector\list\set等stl模板类使用时需要排查并发 | 不涉及 |
| 谨慎考虑加锁范围 | 不涉及 |
| 在IPC通信中谨慎使用同步通信方式 | 不涉及 |
| 禁止传递this指针至其他模块或线程(特别是eventhandler任务) | 不涉及 |
| 禁止将外部传入的裸指针在内部直接构造智能指针 | 不涉及 |
| 禁止多个独立创建的智能指针管理同一地址 | 不涉及 |
| 禁止在析构函数中抛异步任务 | 不涉及 |
| 禁止js对象在非js线程(例如在IPC线程)创建、使用或销毁 | 不涉及 |
| 禁止在对外接口中未经判空直接使用外部传入的指针 | 不涉及 |
| 禁止接口返回局部变量引用 | 不涉及 |
| 禁止在信号函数中加锁 | 不涉及 |
| 禁止在关键流程(SA启动、应用启动等主流程)执行耗时的操作 | 不涉及 |
| 禁止将同一个cpp编译在不同的so中 | 不涉及 |
**安全编码自检:**
| 自检项 | 自检结果 |
| -------------------------------------------------------------- | -------- |
| 裸指针避免通过隐式转换构造为sptr | 不涉及 |
| json对象在取值之前必须先判断类型,避免类型不匹配 | 不涉及 |
| 序列化时必须对传入的数组大小进行校验,避免出现超大数组 | 不涉及 |
| 避免使用未明确位宽的整型,选择使用int8_t、uint8_t等类型 | 不涉及 |
| 外部传入的路径要做规范化校验,对路径中的.、..、../等特殊字符严格校验 | 不涉及 |
| 指针变量、表示资源描述符的变量、bool变量必须赋初值 | 不涉及 |
| readParcelable获取的对象使用前需要判空 | 不涉及 |
| 分配和释放内存的函数需要成对出现 | 不涉及 |
| 申请内存后异常退出前需要及时进行内存释放 | 不涉及 |
| 内存申请前必须对内存大小进行合法性校验 | 不涉及 |
| 内存分配后必须判断是否成功 | 不涉及 |
| 禁止使用realloc、alloca函数 | 不涉及 |
| 禁止打印文件路径、口令等敏感信息,如有需要,使用private修饰 | 不涉及 |
| 禁止打印内存地址 | 不涉及 |
| 整数之间运算时必须严格检查,确保不会出现溢出、反转、除0 | 不涉及 |
| 禁止对有符号整数进行位操作符运算 | 不涉及 |
| 禁止对指针进行逻辑或位运算 | 不涉及 |
| 循环次数如果收外部数据控制,需要检验其合法性 | 不涉及 |
| 禁止使用内存操作类危险函数,需要使用安全函数 | 不涉及 |
| 谨慎使用不可重入函数 | 不涉及 |
| 必须检查安全函数的返回值,并进行正确处理 | 不涉及 |
| 禁止仅通过TokenType类型判断绕过权限校验 | 不涉及 |
**TDD Result**:

**XTS Result**:
### 是否已执行L0用例
- [ ] 已验证
- [ ] 不涉及。如不涉及,请写明理由
See merge request: openharmony/ability_ability_runtime!18785
2026-04-01 17:23:19 +08:00
liuzongze
8fa0d699e5
aa test方法抽取优化
...
Signed-off-by: liuzongze <liuzongze@h-partners.com >
Change-Id: I21098ee89569be35bd86ad5b2adb686bee6b2a8a
Co-Authored-By: Agent
2026-04-01 11:30:34 +08:00
liuzongze
8ae7d02932
aa tset 新增 userID
...
Signed-off-by: liuzongze <liuzongze@h-partners.com >
Change-Id: I533c09f7b57b958e0f774712a6704b2ae5b76868
2026-03-28 10:03:11 +08:00
Luobniz21
4c20ba8999
aa start: only support -u short option, remove --userId long option
...
Remove the long option --userId to keep consistency with other options.
Only the short option -u is supported for specifying user ID.
Changes:
- Remove {"userId", required_argument, nullptr, 'u'} from LONG_OPTIONS
- Update HELP_MSG_START to remove --userId documentation
- Update code comments to remove --userId references
Signed-off-by: Luobniz21 <luoyicong@h-partners.com >
Co-Authored-By: Agent
2026-03-24 20:08:48 +08:00
Luobniz21
ff31a590a7
aa start: add multi-user support
...
Add -u/--userId option to support starting abilities for specific users.
Changes:
- Add -u option to SHORT_OPTIONS and --userId to LONG_OPTIONS
- Modify RunAsStartAbility to accept and pass userId parameter
- Add userId parameter to MakeWantFromCmd function with backward compatibility
- Add userId parameter to StartAbilityWithWait function
- Update HELP_MSG_START to document the new option
Usage:
aa start -a <ability-name> -b <bundle-name> -u <user-id>
aa start -a <ability-name> -b <bundle-name> --userId <user-id>
Signed-off-by: Luobniz21 <luoyicong@h-partners.com >
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-24 09:42:57 +08:00
zhengzhuolan
a573889ea3
yizhixing
...
Signed-off-by: zhengzhuolan <zhengzhuolan@huawei-partners.com >
2026-02-05 15:18:23 +08:00
Nathan Yang
54d2aa7931
bugfix: aa start --ps --pi
...
Signed-off-by: Nathan Yang <yangxuguang3@huawei.com >
2025-11-21 10:18:42 +08:00
unknown
cde63cd80d
add TDD
...
Signed-off-by: unknown <sijunjie@huawei.com >
2025-08-18 16:14:41 +08:00
openharmony_ci
8f73e39b67
!16071 add TDD
...
Merge pull request !16071 from jerry/master
2025-08-18 02:28:48 +00:00
unknown
a86fed6e80
add TDD
...
Signed-off-by: unknown <sijunjie@huawei.com >
2025-08-16 17:17:12 +08:00
s30030188
57b6211bfd
删除ability_tool
...
Signed-off-by: s30030188 <songjindian1@h-partners.com >
2025-08-15 14:51:30 +08:00
openharmony_ci
e38330b316
!16056 stoi整改
...
Merge pull request !16056 from 杨旭光/bugfix/stoi
2025-08-14 14:30:08 +00:00
Nathan Yang
46b718c1e2
bugfix: stoi
...
Signed-off-by: Nathan Yang <yangxuguang3@huawei.com >
2025-08-14 20:28:57 +08:00
unknown
a98f303c4a
add s
...
Signed-off-by: unknown <sijunjie@huawei.com >
2025-08-14 14:28:32 +08:00
zhaoyrr
817b5f05a1
aa命令问题修复
...
Signed-off-by: zhaoyrr <zhaoyuran@h-partners.com >
2025-08-13 20:59:40 +08:00
unknown
69ddbe2dfd
add -c
...
Signed-off-by: unknown <sijunjie@huawei.com >
2025-08-13 15:37:56 +08:00
unknown
3f17e48dba
remove url
...
Signed-off-by: unknown <sijunjie@huawei.com >
2025-06-19 16:28:29 +08:00
lidongrui
d3758c9927
20250526_1_submit
...
Signed-off-by: lidongrui <lidongrui3@huawei.com >
Change-Id: I8d53829133e9681e3c4665b9460aa27b2de7e8d1
2025-05-26 23:22:44 +08:00
lidongrui
03c964f7d3
Merge branch 'master' into aatest
...
Change-Id: Ia2fab9f7bae54de8727d64c12baa0f510675d911
2025-05-25 11:29:55 +08:00
lidongrui
a33e6f3826
aatest
...
Signed-off-by: lidongrui <lidongrui3@huawei.com >
Change-Id: I456c74cd513e9c08453a5ae5977ef61d97c9d78f
2025-05-24 18:05:37 +08:00
13776621730
f8a4942eb1
description: aa support start with wait
...
Signed-off-by: 13776621730 <zhawei12@huawei-partners.com >
2025-05-15 18:00:17 +08:00
zhangzezhong
6165120966
aa工具错误码规范整改
...
Signed-off-by: zhangzezhong <zhangzezhong8@huawei-partners.com >
2025-02-28 08:58:58 +08:00
l30067926
72921c2780
20250115_1113
...
Signed-off-by: l30067926 <luoyicong@h-partners.com >
Change-Id: I5530c3df10ebbdd36c63f729c5d4aed963b24d6e
2025-01-15 11:13:36 +08:00
yangxuguang-huawei
1779868c02
refactor: WantUtilsTest and aa process
...
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
Change-Id: Ie2fceca70c6731e3a697a14f69e7ce09fb93bb81
2024-09-18 14:32:58 +08:00
yangxuguang-huawei
f243ec2af8
feat: remove aa screen and add help msg for aa process
...
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2024-09-16 17:39:58 +08:00
savior-xzh
109182457c
delete
...
Signed-off-by: savior-xzh <xuzheheng2@huawei.com >
Change-Id: I004ac507ccba5ca52f45fe7e74fdb54efdcd20cd
2024-08-22 19:34:19 +08:00
yangxuguang-huawei
890edc413f
bugfix: aa start window options
...
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2024-07-30 20:27:17 +08:00
rentangyu
78937e020a
The aa startup mode is added. If the .so file fails to be loaded, the detailed error information is displayed.
...
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAA9J3
Signed-off-by: rentangyu <rentangyu@huawei.com >
2024-07-10 15:12:30 +08:00
孙旭辉
111a056037
LXL_code_chang_ability_runtime_Large_functions
...
Signed-off-by: 孙旭辉 <sunxuhui7@huawei.com >
2024-06-21 17:05:10 +08:00
孙旭辉
d081b894d2
update tools/aa/include/accessibility_ability_command.h.
...
Signed-off-by: 孙旭辉 <sunxuhui7@huawei.com >
2024-06-14 03:28:40 +00:00
openharmony_ci
fea2e77b0e
!8834 支持切后台被资源管控杀掉场景的备份恢复
...
Merge pull request !8834 from 张亚菲/zyf
2024-06-07 11:48:20 +00:00
yangxuguang-huawei
fa94334ee6
feat: aa support window position and size
...
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2024-06-07 14:55:18 +08:00
zhangyafei-echo
9c8b1f0ee1
Support recovery when background.
...
Signed-off-by: zhangyafei-echo <zhangyafei12@huawei.com >
Change-Id: I0e000924ab5fa17ad59d998c573e41177803a562
2024-06-07 10:32:48 +08:00
sodanotgreen
9b6092253d
Merge branch 'master' of gitee.com:openharmony/ability_ability_runtime into lmz_develop_aa
...
Signed-off-by: sodanotgreen <limengzheng@huawei.com >
2024-04-28 07:37:41 +00:00
sodanotgreen
19f4e18c49
aa携带多线程参数
...
Signed-off-by: sodanotgreen <limengzheng@huawei.com >
2024-04-25 21:22:51 +08:00
zhongjianfei
3fee5d6588
code review for aa tools
...
Signed-off-by: zhongjianfei <zhongjianfei@huawei.com >
Change-Id: Ibae098e3d332ffc9cec1b423e26ceb278e3e3880
2024-04-19 20:39:36 +08:00
unknown
122dc13040
fix aa
...
Signed-off-by: unknown <sijunjie@huawei.com >
2024-04-15 20:06:45 +08:00
xinking129
325d08a0e3
add aa waiting debug command
...
Signed-off-by: xinking129 <xinxin13@huawei.com >
2024-04-12 07:58:01 +08:00
xinking129
ac5d493350
add aa appdebug command
...
Signed-off-by: xinking129 <xinxin13@huawei.com >
2024-03-23 16:05:33 +08:00
openharmony_ci
6abe2eed79
!7526 feat: aa工具支持隐式启动
...
Merge pull request !7526 from 杨旭光/feat/support-implicit-start-ability
2024-02-01 02:47:39 +00:00
yangxuguang-huawei
eaa9d46751
feat: support implicitly starting ability
...
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2024-01-30 18:55:16 +08:00
openharmony_ci
f9e4e2c072
!7377 feat: aa start新增type/URI/action/entity/parameters选项
...
Merge pull request !7377 from 杨旭光/feature/add-key-value-option
2024-01-23 02:02:14 +00:00
yangxuguang-huawei
0e9215e9d9
refactor based on the optind behaviour
...
Signed-off-by: yangxuguang-huawei <yxg4848@163.com >
2024-01-19 16:32:19 +08:00
yangxuguang-huawei
4f73374805
refactor: help message
...
Signed-off-by: yangxuguang-huawei <yxg4848@163.com >
2024-01-19 10:24:27 +08:00
yangxuguang-huawei
92063bd574
refactor: docstring for -Psn option
...
Signed-off-by: yangxuguang-huawei <yxg4848@163.com >
2024-01-18 17:38:08 +08:00
yangxuguang-huawei
dc2eefd337
refactor: add entity and type docstrings to help
...
Signed-off-by: yangxuguang-huawei <yxg4848@163.com >
2024-01-18 16:01:08 +08:00