Skip to content

fix: enable support for .lz4 compressed partitions in Samsung firmwares#30

Open
diocarvalho wants to merge 1 commit intoSamsung-Loki:mainfrom
diocarvalho:fix-lz4-partition-mapping
Open

fix: enable support for .lz4 compressed partitions in Samsung firmwares#30
diocarvalho wants to merge 1 commit intoSamsung-Loki:mainfrom
diocarvalho:fix-lz4-partition-mapping

Conversation

@diocarvalho
Copy link

Recent Samsung firmwares (Android 12+) have switched to using .lz4 compression for image files inside the .tar archives. Previously, Thor would skip these partitions because it only looked for exact matches with the PIT filenames.

This PR improves the mapping logic to recognize .img.lz4 files and ensures they are correctly decompressed on-the-fly during the flash process. This fix is essential for flashing modern devices like the Galaxy A32 5G.

Samsung recently switched to .lz4 compression for partition images. This update ensures Thor correctly maps these entries to the device PIT.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant