[记录]Android SystemServer
来源:互联网 发布:sqlmap写入webshell 编辑:程序博客网 时间:2024/06/06 19:29
SystemServer是Zygote启动的第一个进程,其主要的作用是启动各种系统服务,比如ActivityManagerService,PackageManagerService,WindowManagerService等服务。
SystemServer.run()
1. 设置全局属性,如DVM参数,Binder属性,SystemServer设定所有binder thread以foreground的优先级执行,并且特别设定binder thread number的值为31,正常APP的binder thread为15。
2. 创建一个system context,此时会调用ActivityThread.systemMain()创建出一个ActivityThread,同时在ActivityThread attach过程中调用ContextImpl:createSystemContext()真正创建出system context。
3. startBoostrapServices如ActivityManagerService,PowerManagerService,PackageManagerService等。
4. startCoreService如BatteryService等。
5. startOtherServices如TelephonyRegistry、NetworkManagementService等。
6. 调用ActivityManagerService.systemReady启动SystemUi。
7. 通过Loop.loop()进入无限循环等待message。
[参考资料]
Android情景分析之深入解析system_server
http://blog.csdn.net/hu3167343/article/details/38375167
[深入理解Android卷一全文-第四章]深入理解zygote
http://blog.csdn.net/innost/article/details/47207845
- [记录]Android SystemServer
- Android SystemServer
- Android SystemServer学习
- Android SystemServer学习
- Android SystemServer学习
- Android SystemServer 启动流程
- Android SystemServer总结
- Android SystemServer 解析
- android L 之 SystemServer
- android L 之SystemServer
- android systemserver启动详解
- android SystemServer详解
- Android 内核 - 05 SystemServer
- Android系统启动-SystemServer下篇
- Android系统启动-SystemServer下篇
- Android SystemServer 启动流程
- Android系统启动-SystemServer
- Android系统启动-SystemServer上篇
- 51Nod-1090 3个数和为0【排序+二分查找】
- Python 旅程开启
- IQKeyboardManager
- 【NOIP2013模拟11.4A组】善良的精灵
- 数论
- [记录]Android SystemServer
- 设计模式-单例模式(Java实现)
- NKOJ-1893 路径方案数
- xmlHttpRequest详解
- f-droid.org|开源Android
- CSS之表单的样式
- AJAX原生写法
- linux内存管理之内存回收机制
- HTML+CSS编写静态网站-37 媒体查询初探