Skip to content

Commit

Permalink
Add move result file
Browse files Browse the repository at this point in the history
  • Loading branch information
huanli233 committed Mar 23, 2024
1 parent 7d5adc1 commit b8ae32b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,14 @@ public int patch(File bootimg, File result) {
}

this.clean();

File patched = new File(fileTempPath, "new-boot.img");
if (!(result == null)) {
logger.info("- 移动修补后的 boot 文件");
copyFile(patched, result);
rmFile(patched);
}

logger.info("- 完成!");

return 0;
Expand Down

0 comments on commit b8ae32b

Please sign in to comment.