把LinuxShell里的命令移动到Software对应的目录下
This commit is contained in:
parent
8b5eef8764
commit
2e752fd938
|
@ -1,4 +0,0 @@
|
|||
```
|
||||
lsblk [options] [devices] # 列出块设备的信息
|
||||
```
|
||||
|
|
@ -245,6 +245,27 @@ frameworks/base/core/jni/AndroidRuntime.cpp里的start方法
|
|||
1. 首先把参数保存在strArray里
|
||||
2. 启动VM,此线程将成为VM的主线程,此线程不会返回除非VM退出。
|
||||
|
||||
##### ZygoteInit
|
||||
|
||||
framework/base/core/java/com/android/internal/os/ZygoteInit.java的main方法
|
||||
|
||||
1. 创建一个ZygoteServer对象
|
||||
2. 设置标记不允许新建线程
|
||||
3. 设置Zygote进程的组id
|
||||
4. 性能统计(在一个try代码块里的内容)
|
||||
- 把Zygote启动时间报告给tron(使用`MetricsLogger.histogram`)
|
||||
- 跟踪调试ZygoteInit(`bootTimingsTraceLog.traceBegin`)
|
||||
- 注册Ddms的处理类(`RuntimeInit.enableDdms`)
|
||||
- 在一个for循环里进行参数解析
|
||||
- 在某些配置里,要避免过早地加载资源和类
|
||||
- 初始化垃圾回收
|
||||
- 禁止追踪
|
||||
- Zygote解除挂载根空间
|
||||
- 设置seccomp策略
|
||||
- 在zygote永远进行select循环
|
||||
5. try代码块执行到最后,要执行finally代码块的内容,关闭zygoteServer的套接字。
|
||||
6. 已经退出了select循环,进入了子进程,继续执行命令`caller.run()`。
|
||||
|
||||
#### step6: System Servers
|
||||
|
||||
Zygote启动系统服务,即ZygoteInit类里的startSystemServer方法。
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue