framework源码
文章平均质量分 51
renshuguo123723
这个作者很懒,什么都没留下…
展开
-
ServiceManager
ServiceManager是用来管理系统服务的。1.系统启动时向ServiceManager中添加服务系统启动时会启动SystemServer进程,SystemServer进程会开启引导服务,核心服务以及其他服务,这些服务开启成功之后会被添加到ServiceManager中,如:InputManagerService inputManager = new InputManagerService(context);ServiceManager.addService(Context.INP.原创 2021-08-15 16:38:14 · 423 阅读 · 0 评论 -
SystemServer简介
系统启动过程:由init进程->Zygote进程->SystemServer进程。SystemServer由zygote进程启动。启动后,会调用SystemServer.main()方法:SystemServer.javapublic final class SystemServer { public static void main(String[] args) { //创建SystemServer实例并调用run()方法 new Syste原创 2021-01-27 14:36:50 · 714 阅读 · 0 评论