Repository navigation
v2.7.0: Samsung page, Samsung firmware tools (nothing written to a phone) - #27
Merged
Merged
Conversation
… images out, build the tars Magisk and Odin use Reads AP, BL, CP, CSC and HOME_CSC (.tar.md5, a folder, or the zip they came in) and checks each file against its MD5 line. Images are taken out with LZ4 undone, streamed so a 9 GB super never sits in memory, and checked against what the LZ4 frame records. The firmware is compared with the phone over adb: model, bootloader binary (an older one is refused, as the phone would refuse it), Android version and CSC, with a note that CSC wipes the phone. Root with Magisk builds a small tar of init_boot (or boot) and vbmeta, sends it to the phone, and fetches and checks magisk_patched-….tar. Tar for Odin packs any images into a .tar.md5. Nothing talks to a phone in Download mode; flashing stays with Odin.
… the firmware zip The actions sit under the contents list, so the model and build no longer wrap letter by letter and sizes are not cut. The file dialog took only three of the five long names, so the end-to-end test now opens the zip a firmware site gives, which also covers unpacking it.
…; Odin is next The README says what is new in 2.6 and 2.7, has a section on the Samsung page with its screenshot, and says Odin (flashing from Download mode) comes next.
ifoknr
marked this pull request as ready for review
October 19, 2026 20:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new Samsung page. It works on Samsung firmware files and never talks to a phone in Download mode; flashing stays with Odin. Download mode (PIT, drivers) is stage 2, on its own branch later.
What it does
.tar.md5files, the folder they are in, or the zip a firmware site gives (unpacked next to it first)..partfiles are removed on failure. An extracted super can be opened in Image Tools.magisk_patched-….tarand checks that its boot image carries Magisk..tar.md5with its MD5 line.Tests
lz4,tar -H ustarandmd5sum -t;tarreads the tars written here, the reallz4 -daccepts the SampleGen frames, and every MD5 line matches.screenshots.ps1, run against the sample firmware SampleGen now writes, with FakeAdb playing a Galaxy S23 Ultra):Generated by Claude Code