android system services startup process

android 系统服务启动流程 速记



init =>

Zygote service =>
main() @ frameworks/base/cmds/app_process/app_main.cpp  =>
startSystemServer() @ ZygoteInit.java =>
init1() @ SystemServer.java =>
JNI =>
android_server_SystemServer_init1() @ com_android_server_SystemServer.cpp =>
system_init() @ system_init.cpp =>
(start SurfaceFlinger, SensorService, AndroidRuntime)
com.android.server.SystemServer.init2() @ SystemServer.java =>
ServerThread.run() @ SystemServer.java

following services are started one after another:

EntropyService
ActivityManagerService
TelephonyRegistry
PackageManagerService
AccountManagerService
ActivityManagerService
LightsService
BatteryService
VibratorService
AlarmManagerService
WindowManagerService
BluetoothService
BluetoothA2dpService
InputMethodManagerService
AccessibilityManagerService
DevicePolicyManagerService
StatusBarManagerService
ClipboardService
NetworkManagementService
TextServicesManagerService
NetworkStatsService
NetworkPolicyManagerService
WifiP2pService
WifiService
ConnectivityService
ThrottleService
MountService
NotificationManagerService
DeviceStorageMonitorService
LocationManagerService
CountryDetectorService
SearchManagerService
DropBoxManagerService
WallpaperManagerService
AudioService
DockObserver
WiredAccessoryObserver
UsbService
UiModeManagerService
BackupManagerService
AppWidgetService
RecognitionManagerService
DiskStatsService
SamplingProfilerService
NetworkTimeUpdateService
...


你可能感兴趣的:(android system services startup process)