1. 程式人生 > 實用技巧 >應用程式程序。比如Launcher、SystemUI

應用程式程序。比如Launcher、SystemUI

Android系統中的程序(這裡不包括init等底層的程序)都是通過Zygote fork而來的,那這些程序的啟動流程都是怎樣的呢?

   這裡將Android程序分為兩個部分:

(1)系統框架程序SystemServer程序。它是Zygote建立的第一個程序,是在系統啟動過程中,Zygote程序啟動時直接fork而來的。

(2)應用程式程序。比如Launcher、SystemUI,其它應用程式等的程序。這些應用程式程序的啟動大致包含兩個步驟:

        1)AMS向Zygote程序傳送建立程序的請求;

        2)Zygote接受請求,建立並啟動應用程式程序。

    本文將圍繞上述幾點,基於Android P(API28)的原始碼,來梳理Android程序的建立與啟動過程。內容的主要物件是應用開發者,所以力求簡潔和完整,內容大體如下:

https://m.newsmth.net/article/BBSNewbie/251158
https://exp.newsmth.net/topic/b6bea9b6336d7eaacef6b2f803890c4f
https://m.newsmth.net/article/BBSNewbie/
https://exp.newsmth.net/topic/
https://m.newsmth.net/article/BBSNewbie/251160
https://exp.newsmth.net/topic/63f556e74ed2833f898a54b9be811d42
https://m.newsmth.net/article/BBSNewbie/251161


https://exp.newsmth.net/topic/f705637bd435c1fe2ce29ab889c38ffe
https://m.newsmth.net/article/BBSNewbie/251162
https://exp.newsmth.net/topic/2f8dccc3b70c6072d06ceef5b5645931
https://m.newsmth.net/article/BBSNewbie/251163
https://exp.newsmth.net/topic/6b3106c7a291910980269e1ca21b4212
https://m.newsmth.net/article/BBSNewbie/251164
https://exp.newsmth.net/topic/1ca246d415857156d0373625ddb472e4

https://m.newsmth.net/article/BBSNewbie/251165
https://exp.newsmth.net/topic/aa252a21c68626809874344dbdb2aeae
https://m.newsmth.net/article/BBSNewbie/251166
https://exp.newsmth.net/topic/f1beea6a690cb7a32b67650b71db730e
https://m.newsmth.net/article/BBSNewbie/251167
https://exp.newsmth.net/topic/f1ac587ee71e46871f2b584ae37f2f2a
https://m.newsmth.net/article/BBSNewbie/251168
https://exp.newsmth.net/topic/434c47a51f95b064de798d95c5899b79
https://m.newsmth.net/article/BBSNewbie/251169
https://exp.newsmth.net/topic/3694cc2577370c144654ae78d5d274af
https://m.newsmth.net/article/BBSNewbie/251170
https://exp.newsmth.net/topic/48a9caf2aaddf4c1921978ea5830b101
https://m.newsmth.net/article/BBSNewbie/251171
https://exp.newsmth.net/topic/b094b61b67fe2f6c2bbe4298758acac9
https://m.newsmth.net/article/BBSNewbie/251172
https://exp.newsmth.net/topic/466797fe36242610d76562482177787c
https://m.newsmth.net/article/BBSNewbie/251173
https://exp.newsmth.net/topic/24c82496d9a98ceed92b331282f131b2
https://m.newsmth.net/article/BBSNewbie/251174
https://exp.newsmth.net/topic/cb6f2d005415283f84838f96b93d1bc5
https://m.newsmth.net/article/BBSNewbie/251175
https://exp.newsmth.net/topic/eceb8f158d4f64a4507bda84157e0f18
https://m.newsmth.net/article/BBSNewbie/251176
https://exp.newsmth.net/topic/7844e2d3c16b3c8e7f749ca0b06ffe4b