目录 0. 背景介绍 1. bootable/recovery/recovery.cpp 2. bootable/recovery/install/include/install/fuse_sdcard_install.h 3. bootable/recovery/install/fuse_sdcard_install.cpp 4. bootable/recovery/otautil/include/otautil/roots.h 5. bootable/recovery/otautil/roots.cpp 0. 背景介绍 为了方便产品的系统升级和修复,现需要设备进入Android Recovery模式后,会自动检测U盘中的升级包并进行升级。 Created with Raphaël 2.3.0 开始 尝试挂载指定U盘节点 挂载成功? 在U盘内查找force_ota.zip文件 找到force_ota.zip? 发送中断key事件,结束recovery主界面UI显示 调用升级接口进行升级 升级成功? next_action = Device::REBOOT 结束 next_action = Device::REBOOT_RECOVERY 最大尝试次数?