SystemServer class kind of initializes all core system services. Before going into the codeflow its good to know about the SystemService and SystemServiceManager classes SystemSevice : This is the base class for services running in the system process. We can Override and implement the lifecycle event callback methods as needed. The lifecycle of a SystemService: /frameworks/base/services/core/java/com/android/server/SystemService.java The constructor is called and provided with the system Context to initialize the system service. onStart() is called to get the service running. The service should publish its binder interface at this point using publishBinderService() . It may also publish additional local interfaces that other services within the system server may use to access privileged internal functions. onBootPhase(int phase) is called as many times as there are boot pha...