I'm trying to port
am start <>
Can't connect to activity manager; is the system running? means
ActivityManagerService is not running as well as other core system services as reflected in the list of running services.
The cause of the problem is
SystemServer. Started by
system_server process acts like a host process for most of the system services to run in. It tries to start the services and dies in case of failure.
How to start
ActivityManagerServiceor which process actually trigger it?
You can't do it manually.
SystemServer is responsible for starting the service.
Regarding the exception, it seems like
BatteryStatsService is failing due to
KernelWakelockReader not being able to read either
/d/wakeup_sources that seem not to exist by the time of polling (try to
cat the pseudofiles). This might be the kernel issue (improperly patched/configured).