Samsung Oreo firmwares use a new compression algorithm for their ext4 firmware files. It’s called a LZ4 format. You can’t open it with a DiskInternals Linux Reader on Windows. You need a tool for LZ4 image. I’m going to show how to use precompiled binary for file extraction. Github developer named Cyan4973 has released utility which allows to extract.
Follow these easy steps:
- Download file from below.
- Put in lz4 folder system.img.ext4.lz4 (which you extracted from the .tar.md5 file)
- Open CMD line for the lz4 folder
- Type lz4.exe -d system.img.lz4 system.img.ext4 (NOTE: LZ4 file must match the one you extracted from the tar file.)
- Wait for the utility to finish, it will say something like that: ,,system.img.lz4 : decoded 2408398332 bytes”
- Proceed to extract the newly created ext4 image
Brief example how to open Command Prompt and use cd command to the directory where you extracted these files.
In order to get “Open Powershell window” you must use SHIFT + RIGHT MOUSECLICK combination.
In next tutorial I will teach how to use ASSAYYED’s KITCHEN and proceed with complete extraction and deodexing the ROM.
This is a most complete method. Without typing any lines of code. Saving You guys from making hands dirty. I’ve made a shell script for that. It requires that you have LZ4 v1.9.2 extracted already. Just extract this make.bat into a lz4_v1_9_2_win64 folder. When extracted into a root directory just double-click on it. Shell will prompt to overwrite if a previous lz4 image(s) exists.
NOTE: Files must be named in order to decode: system.img.lz4, boot.img.lz4, recovery.img.lz4, cache.img.lz4, hidden.img.lz4
How to extract .img.ext4 file?
With what software?
Hey Roham. It can be easily done under linux environment as it is Linux’s native filesystem. For windows I would recommend this tool: https://forum.xda-developers.com/chef-central/android/best-android-roms-editor-assayyedkitchen-t3410545
Thank you so much Sir.it worked 🙂
how to unpack with assayed kitchen
It will be covered in the upcoming guide 🙂
Hello and how to unpack the file ext4 since I have the assayyed kitchen and unpack it to remove apps and repackage it, I also tell you that I install the android 8.1 in my j7 sm-j710mn with odin lo root and install twrp and it works fine and at the same time A day or two passes and I get a sign saying SETTINGS HAS BEEN STOPPED, change to another rom thinking it could be the problem rom the pro in the other rom I install does the same, could someone help?
after unpack how to repack?
how to recompile to system.img.lz4 after decompile?
As of now (18/8/2019) lz4 is up to version 1.9.1. You should include a link to the Github: https://github.com/lz4/lz4/releases
Updated to 1.9.2.