Amos or Activity Manager.
Service is a system process provided by Android to manage the running status of activity and other Android
components.
It performs date process and memory management of activities, services, content providers and broadcast
receivers.
Amos is responsible to do the following tasks.
It manages and schedules the activity lifecycle of all applications so when we use the applications.
Amos is responsible to manage the back stack of all the activities which we have visited.
It is also responsible to start or kill the process of the application.
So.
Amos is also responsible to create the process associated with an application.
We'll see how that is getting created later in this tutorial.
It is also responsible to start or schedule the service lifecycle.
It also manages the lifecycle of the services register, broadcast receiver and receive and distribute
broadcast.
So CMS is also responsible to manage the broadcast receivers, is responsible for receiving and distributing
the broadcast across the apps.
It is responsible to start and publish content providers.
They are also responsible for scheduling tasks.
Amos also does the crash handling of applications.
It is also responsible to query the current operating status of the Android OS.
So as we could understand from this point, AMS is a core part of Android OS.
It manages the core components, the activities, services, content providers and broadcast receivers
of the Android OS.
You can find the AMS code under framework folder, under framework folder.
Most of the AMS code you can find under base services core java com.
Android server AMP stands for activity manager and also under base core java Android App folder.