Commit Graph

12 Commits

Author SHA1 Message Date
yewei0794 02518f9854 feat: restrict reusePid to IN_PROCESS mode and add GetValidAppRunningRecordByPid
- Only set reusePid when MODULAR_OBJECT IN_PROCESS mode (IsInProcess flag)
- Add isInProcess flag to BaseExtensionRecord, set in SetupNewRecord
- Add GetValidAppRunningRecordByPid for PID lookup with validity check
- Revert CheckAppRunningRecordIsExist to original (no reusePid coupling)
- Remove IsProcessMatchedByFieldOrPid, restore inline matching logic
- Move reusePid check before plugin/normal flow in LoadAbility
- Add TDD tests for SetExtensionLoadParam, GetValidAppRunningRecordByPid,
  and LoadAbility reusePid path

Co-Authored-By: Agent

🤖‍ AI[98%] 👌 AI Adopted[98%] 🧑 Human[2%]
Co-authored-by: claude (glm-5.1) <ai@local>

Signed-off-by: yewei0794 <weiyejxnf@163.com>
Change-Id: I00c745f043dbcbbf2879a4f10398825f589049bf
2026-05-25 19:31:30 +08:00
yewei0794 1047dd56ce feat: support callerProcessPid for ModularObject process reuse
Pass caller PID through LoadParam to bypass customProcessFlag/instanceKey
matching in CheckAppRunningRecordIsExist, enabling IN_PROCESS mode to
reuse the caller's existing process record.

Co-Authored-By: Agent
Signed-off-by: yewei0794 <weiyejxnf@163.com>
Change-Id: I34ed4dc3d4b828def0badab3c579c861c763467a
2026-05-25 14:03:03 +08:00
xialiangwei 50d830d524 hyper
Signed-off-by: xialiangwei <2049500708@qq.com>
2026-03-31 20:57:38 +08:00
hid95263212 101ab9335b modify isPreload variable name
Signed-off-by: hid95263212 <yangxiaohu14@huawei.com>
2026-03-01 00:44:13 +08:00
SKY2001 cb9a339373 onMemoryLevel机制优化-2-PR
Signed-off-by: SKY2001 <songtianyu10@huawei.com>
2026-02-24 21:21:47 +08:00
y00939579 9d3647d870 add UT part
Signed-off-by: y00939579 <yaojunwei3@huawei.com>
2026-02-09 14:43:47 +08:00
SKY2001 af6d15abb2 回退onMemoryLevel机制优化相关PR
Signed-off-by: SKY2001 <songtianyu10@huawei.com>
2026-01-07 15:55:09 +08:00
SKY2001 27466337b9 修复aa MemmoryLevel命令异步通知
Signed-off-by: SKY2001 <songtianyu10@huawei.com>
2025-12-09 14:58:02 +08:00
wangzhen 8ba6ca611f Code op
Signed-off-by: wangzhen <wangzhen416@huawei.com>
Change-Id: I04dfa54f18bce3330af4c7658f90347574203a77
2025-11-13 10:30:09 +08:00
AsukaSoryu 098e50df71 fix onappstatechanged in different account
Signed-off-by: gongyuechen<gongyuechen@huawei.com>
2025-10-28 22:08:49 +08:00
SKY2001 c812ba5c02 IsAppRunning增加UserID的区分判断
Signed-off-by: SKY2001 <songtianyu10@huawei.com>
2025-10-19 10:00:00 +08:00
lidongrui d6a9b01e53 addTDD
Signed-off-by: lidongrui <lidongrui3@huawei.com>

Change-Id: Idabff4d788a2c3c3a8a151b19751a9d37dc20d82
2025-09-18 16:25:46 +08:00