gecko->gaia
b2g 如何启动system app.
gecko/b2g/chrome/content/*.js
runapp.js
shell.js
shell.html
blank.html
gecko/b2g/chrome/content/
shell.html


shell.js 核心部分

疑问:这里的iframe

创建iframe 元素,并对其属性进行赋值,
container就是shell.html body 的id,也即是将iframe(也就是system app iframe) append 到container里,之后继续在SystemAppFrame里进行操作。

发消息等。
launch 处理事件

commandLine到底是如何起来的,直接调xpcom组件,且在前面被b2g Loader 初始化了。


blanck.html

runapp.js开始直接调用XPCOM组件,commandline,通过命令行启动应用?
本文深入探讨了B2G环境下systemapp的启动过程,包括关键文件如runapp.js和shell.js的作用,以及如何通过iframe元素加载systemapp。解析了commandLine组件的启动机制及其与b2gLoader的关系。
2026

被折叠的 条评论
为什么被折叠?



