System_Extractor-WIN icon indicating copy to clipboard operation
System_Extractor-WIN copied to clipboard

Oreo uses Brotli

Open ALTracer opened this issue 6 years ago • 4 comments

Thank you for this very handy tool, it greatly accelerates OTA unpacking for diffs. I use your WIN and Linux versions (dualboot) pretty often, as Beyond Compare 4 is available on both. (I don't have enough time to forge pull requests now, absolutely overwhelmed with exams)

Except now that I'm into testing LineageOS-15.1 for arm64 rolex, the FS images are packed inside ext4fs, simg "sparse", AND Brotli on top (which is great, thanks Google!). Also Treble introduces two separate partitioins, /system and /vendor -- two images in the ROM.

Please add brotli hooks and distributable .exe /.elf to your (next) .zip releases and add vendor detection and unpacking. P.S. It would be nice to save __statfile.txt for quick efficient checks.

ALTracer avatar May 29 '18 21:05 ALTracer

Added brotli. Added Unpacking. Done. All thanks to tsvietOK.

matriex avatar Jul 10 '18 06:07 matriex

May I know why is this still opened ?

NotesOfReality avatar Jul 22 '18 16:07 NotesOfReality

After merging the pull request Brotli is supported for system.new.dat, but there is no mention of vendor.new.dat (Treble). I can confirm, my ROMs are half unpacked automatically now. I might be able to craft another pull request for that, but .BAT scripting logic sometimes confuses me. These lines should be executed: bin\brotli -jd -o vendor.new.dat vendor.new.dat.br

REM Extracts .new.dat Oreo ROMs 
bin\python\sdat2img.py vendor.transfer.list vendor.new.dat vendor.img.ext4 
ren vendor.img.ext4 *.img 
bin\Imgextractor.exe vendor.img.img -i 
echo Press enter to delete temorary files 
pause 
del vendor.img.img 
del vendor.new.dat 
del vendor.transfer.list 
pause

Besides, we should remove temporary extraction stages as soon as they are no longer needed. Else the folder consumes 6-8 times more space than zip size.

ALTracer avatar Jul 23 '18 00:07 ALTracer

I haven't thought about it, thanks for sharing it so that this projects always improves.

NotesOfReality avatar Jul 25 '18 16:07 NotesOfReality