static int
really_install_package(const char *path, bool* wipe_cache, bool needs_mount)
{
bNeedClearMisc = false;
ui->SetBackground(RecoveryUI::INSTALLING_UPDATE); //lefty_lan注:更新屏幕的提示为正在更新
ui->Print("Finding update package...\n");
// Give verification half the progress bar...
ui->SetProgressType(RecoveryUI::DETERMINATE);
ui->ShowProgress(VERIFICATION_PROGRESS_FRACTION, VERIFICATION_PROGRESS_TIME);
LOGI("Update location: %s\n", path);
// Map the update package into memory.
ui->Print("Opening update package...\n");
char really_path[100];
if (path && needs_mount) {//lefty_lan注:确保更新包所在的路径已经mount
if (path[0] == '@') {
ensure_path_mounted(path+1);
} else {
ensure_path_mounted(path);
}
}
if
install.cpp文件really_install_package函数校验更新包的签名过程分析
最新推荐文章于 2022-03-08 20:07:50 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)