-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8bce67
commit 8ae5c53
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
#pragma author timschneeb | ||
#pragma description Samsung Galaxy Buds firmware archive | ||
#pragma pattern_limit 20000000 | ||
|
||
struct Segment { | ||
u32 unknownHeader1; | ||
u32 unknownHeader2; | ||
u32 unknownHeader3; | ||
u32 romOffsetMaybe; | ||
u8 data[parent.size-16]; | ||
}; | ||
|
||
struct SegmentInfo { | ||
u32 id; | ||
u32 crc32; | ||
Segment* position : u32; | ||
u32 position; | ||
u32 size; | ||
Segment data @ position; | ||
} [[single_color]]; | ||
|
||
struct Header { | ||
struct FirmwareFile { | ||
u32 magic; | ||
u32 totalSize; | ||
u32 segmentsCount; | ||
SegmentInfo segments[segmentsCount]; | ||
SegmentInfo segments[segmentsCount]; | ||
u32 crc32 @ sizeof($) - 0x4;; | ||
}; | ||
|
||
Header header @ 0x0; | ||
|
||
|
||
u32 crc32 @ sizeof($) - 0x4; | ||
FirmwareFile file @ 0x0; |