Hi Team,
We are working on a custom OpenHarmony 4.0 board bring-up and facing issues related to SAMGR, foundation service startup, and Bundle Manager execution.
During boot, SAMGR starts, but several foundation services fail to register/start correctly. As a result:
-
foundation services stop/crash
-
System Ability lookup fails
-
bmcommand is not working -
IPC requests fail through Binder
Observed logs:
C01800/SAMGR: [SA Scheduler][SA: 5100] not in SA profiles
C01800/SAMGR: NOT found service : 5100
C01800/SAMGR: [SA Scheduler][SA: 5100] handle load event by check start
C01800/SAMGR: [SA Scheduler][SA: 5100] not in SA profiles
C01510/BinderInvoker: 124: SendRequest: handle=0 result = 3
C01800/SA_CLIENT: GetSystemAbilityWrapper:sa 5100 is not exist
C01800/SAMGR: [SA Scheduler][SA: 10] not in SA profiles
C01800/SAMGR: NOT found service : 10
C01800/SAMGR: [SA Scheduler][SA: 10] handle load event by check start
C01800/SAMGR: [SA Scheduler][SA: 10] not in SA profiles
C01510/BinderInvoker: 124: SendRequest: handle=0 result = 3
C01800/SA_CLIENT: GetSystemAbilityWrapper:sa 10 is not exist
Current Observations
We confirmed the following:
-
samgrprocess is running -
foundation directories are present in source tree
-
bundlemanager sources are available
-
bundle-related shared libraries are present in
/system/lib64 -
however, required System Abilities are not registered
bm command execution result:
# bm help
error: failed to execute your command.
Source Tree Status
Available:
foundation/systemabilitymgr
foundation/bundlemanager
Some framework directories are not present:
foundation/appexecfwk
foundation/aafwk
base/global/systemabilitymgr
Suspected Root Cause
Currently it appears that:
-
SA profiles are not being loaded/generated properly
-
foundation services are failing during startup
-
BundleMgrService registration is missing
-
product configuration may be incomplete for Standard System services
Questions
-
Where are SA profiles generated and loaded from in OHOS 4.0?
-
What are the mandatory services/configurations required for:
-
BundleMgrService
-
bm command
-
foundation service startup
-
-
Is additional Standard System configuration required for custom board bring-up?
-
Are there any reference product configs for enabling:
-
Bundle Manager
-
Ability framework
-
AppSpawn
-
SA registration
-
Any guidance regarding SA profile loading, foundation service startup, and Bundle Manager initialization would be very helpful.
Thanks