android 存储
文章平均质量分 96
geshifei
这个作者很懒,什么都没留下…
展开
-
android存储3--初始化.unlock事件的处理
SystemServiceManager收到unlock事件后,遍历service链表,依次执行各个service的onUserUnlocking,对于存储service,执行的是StorageManagerService$Lifecycle中的onUserUnlocking,在这个方法中,存储的StorageSessionController、vold、storaged模块进行各自初始化操作。原创 2023-06-22 17:38:41 · 1481 阅读 · 0 评论 -
android存储2--初始化.存储service的启动
存储有3个关键service:mount、vold、storaged,通过adb shell "service list"可以看到。service代码路径system/vold 目录(注意,虽然vold是一个用户态程序,但它的log默认在内核里,需通过dmesg查看)system/core/storaged 目录mount service负责mount和umount存储设备或存储卷,提供文件系统的访问接口。它的mount、umount请求下发给native层的vold处理。原创 2023-06-19 12:52:34 · 834 阅读 · 0 评论 -
android存储1--初始化.清理环境
开机后,StorageManagerService收到开机广播消息H_BOOT_COMPLETED,按时间顺序完成以下5件事情:代码整体逻辑如下: 代码路径:StorageManagerServiceHandler::handleMessage --> handleBootCompleted --> initIfBootedAndConnected分两种情况:1)用户目录采用硬件加解密(native encryption),此阶段什么事也不做,函数直接返回2)用户目录采用软件加解密(enmulated原创 2023-04-18 12:42:48 · 975 阅读 · 1 评论 -
StorageManagerService.java中的mVold.mount
StorageManagerService.java中的mVold.mount原创 2023-04-07 22:01:21 · 649 阅读 · 0 评论