sdcard挂载流程
2020-08-04 11:05:05 0 举报
Android中sd卡挂载流程及vold、storageManagerService服务启动流程
作者其他创作
大纲/内容
vm -> handleBlockEvent()
启动vold服务
StorageManagerService -> onVolumeCreated()
VolumeManager vm
启动system server服务
SocketListener -> startListener()
NetlinkManager -> start()
Utils -> createDeviceNode()
NetlinkManager nm
vm -> handleDiskAdded()
读取init.rc文件
PublicVolume -> doCreate()
NetlinkHandler -> start()
process_config()
mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS)
IVold.adil -> mount()
IVoldListener.aidl -> onVolumeCreated()
disk -> readMataData()disk -> readPartitions()
StorageManagerService -> onVolumeCreatedLocked()
disk -> createPublicVolume()
SocketListener -> threadStart()
StorageManagerServiceHandler -> handlerMessage(H_VOLUME_MOUNT)
NetlinkHandler -> onEvent()
disk -> create()
SystemServer.startOtherServices()
Android系统启动
VolumeBase -> create()
NetlinkListener -> onDataAvailable()
obtainMessage(H_VOLUME_MOUNT)
PublicVolume -> doMount()
VoldNativeService -> mount()
0 条评论
回复 删除
下一页