- Use uid comparison instead of bundleName in CheckInProcessLaunchMode
to prevent clone app connecting main app's IN_PROCESS extension
- Add MODULAR_OBJECT to IsSupportAppClone for app clone support
- Make AppMgr MakeProcessName not append appCloneIndex for
MODULAR_OBJECT (same as UIExtension)
- Prepend appCloneIndex to processName in CROSS_PROCESS mode
on AMS side; IN_PROCESS mode skips prepend since caller process
already has correct name
- Update and add test cases for all new branches
Co-Authored-By: Agent
Signed-off-by: yewei0794 <weiyejxnf@163.com>
Change-Id: I98cbd3d253d92264333e0d7dd318ac4207cb3a5c
Add service connect management for ModularObject extension type,
including service key generation, config query from Want params,
service record lifecycle management, and thread key generation.
Changes:
- Add ModularObject connect logic in AbilityConnectManager
- Add caller bundle name validation in AbilityManagerService
- Fix nullptr binding in ExtensionAbilityThread callback
- Add unit tests for ModularObject connect functions
Co-Authored-By: Agent
Signed-off-by: yewei0794 <weiyejxnf@163.com>
Change-Id: I6766a35db26f8c7bb29f72adcceef497cc7c3cdf