05 2012 档案
摘要:上回说到,开始调用 ZygoteInit main 函数,main 函数:registerZygoteServer:注册一个 zygote server socket,所有来自客户端的连接都通过 socket 方式连接;preload:预加载系统的类库和资源,这样其他程序启动将不再加载系统资源,只需加载自己程序的资源,这样就达到系统资源在程序之间共享;startSystemServer: private static boolean startSystemServer() throws MethodAndArgsCaller, RuntimeException { ...
阅读全文
摘要:之前这篇,从整体展示了 android 的整个启动流程,为了搞清楚 android 启动到底在代码层面上是如何调用的,将从源代码角度去分析,另所有代码基于 android 4.0 source tree all story begin with the init process startup 故事从 init 进程启动开始init 运行,代码:system/core/init ,入口:system/core/init/init.c main 函数: 1 int main(int argc, char **argv){ 2 3 ... 4 // 初始化文件系统 ...
阅读全文
摘要:声明: 原文地址:http://www.androidenea.com/2009/06/android-boot-process-from-power-on.html,本文章是在基于该文章的翻译,翻译的不好,请笑纳 -):1.PoweronandbootROMcodeexecution开机并执行 boot ROM代码 AtpowerontheCPUwillbeinastatewherenoinitializationshavebeendone.InternalclocksarenotsetupandtheonlymemoryavailableistheinternalRAM.Whenpowe.
阅读全文
摘要:之前这篇,说的不是太详细,今儿再来详细的说说:1.什么是 OutOfMemoryError: 官方引用:Thrown when a request for memory is made that can not be satisfied using the available platform resources. Such a request may be made by both the running application or by an internal function of the VM. 通俗的讲:就是在请求一块内存的时候,当前可用资源不够用来请求时抛出的一种错误。我们知道,
阅读全文

浙公网安备 33010602011771号