Skip to content

Commit

Permalink
feat(star): Also keep 'fsg.mbn'
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoninoScordino committed Sep 27, 2024
1 parent 15c0759 commit 9c0f250
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions extractor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,13 @@ if $(7z l -ba "${romzip}" | grep -q radio.img); then
## Extract 'radio.img.sparse'
"${star}" "${PWD}/radio.img" ${PWD} 2>/dev/null

## Delete everything that's not 'NON-HLOS.bin'
find "${PWD}/" -type f ! -name 'NON-HLOS.bin' -delete
## Delete everything that's not 'NON-HLOS.bin' and 'fsg.mbn'
find "${PWD}/" -type f ! -name 'NON-HLOS.bin' -and ! -name 'fsg.mbn' -delete
mv ${PWD}/fsg.mbn ${outdir}/fsg.mbn

## Move 'NON-HLOS.bin' to 'radio.img.sparse'
mv "${PWD}/NON-HLOS.bin" "${PWD}/radio.img.sparse"

## Conver from sparse to RAW
${simg2img} "${PWD}/radio.img.sparse" "${outdir}/radio.img" 2>/dev/null

Expand Down

0 comments on commit 9c0f250

Please sign in to comment.