顯示具有 養了一隻小綠人 標籤的文章。 顯示所有文章
顯示具有 養了一隻小綠人 標籤的文章。 顯示所有文章

2012年5月6日 星期日

Android Init Language

Introduction
簡單說明:
  • Android根目錄存在一些重要的配置文件,如:init.rc init.xxx.rc。
  • 這些配置文件是由Android Init Language語法所撰寫,解析這些語法的程式碼位於system/core/init。
  • init.rc為核心文件。
接下介紹init.c語法,它主要提供底下這些功能:
  • Runs one-time scripts at startup
  • Sets up the runtime environment
  • Keeps critical processes running
  • Launches the Android framework
  • Responds to device additions/removals
Android Init Language主要是由四個類別組成:
  • Actions
  • Commands
  • Services
  • Options