SD卡升级包升级后,如何删除升级包文件
时间:10-02
整理:3721RD
点击:
修改方法如下:
在alps\bootable\recovery.cpp文件如下处修添加code(绿色):
………
if (status != INSTALL_SUCCESS || ui->IsTextVisible()) {
pROMpt_and_wait(device, status);
}
#endif
if(update_package) //add
remove_mota_file(update_package); //add
// Otherwise, get ready to boot the main system...
finish_recovery(send_intent);
ui->Print("Rebooting...\n");
android_reboot(ANDROID_RB_RESTART, 0, 0);
return EXIT_SUCCESS;
}
在alps\bootable\recovery.cpp文件如下处修添加code(绿色):
………
if (status != INSTALL_SUCCESS || ui->IsTextVisible()) {
pROMpt_and_wait(device, status);
}
#endif
if(update_package) //add
remove_mota_file(update_package); //add
// Otherwise, get ready to boot the main system...
finish_recovery(send_intent);
ui->Print("Rebooting...\n");
android_reboot(ANDROID_RB_RESTART, 0, 0);
return EXIT_SUCCESS;
}