Today I want to share my private batch tool for unpack and repack android system images.
I'm not an expert in batch scripts for Windows, but I do my effort to make the best that I can do.
This simple tool can:
-Unpack and repack vendor image with common formats like .dat or .dat.br
-Unpack payload.bin ROM and & repack into system.img for A/B devices like Pixel, and Mi A1, etc.
-Unpack & repack system.new.dat compression format used since android Lollipop to Oreo 8.1
-Unpack & repack system.img ext4 raw format
-Unpack & repack new Brotli compression method for android 8.1
-Convert filecontexts.bin to plain contexts file
-Deliver symlinks and permissions from system image
Big Changelog 28-08-2018:
Version 1.8 Semi-Stable:
--Updated make_ext4fs binary to 8.1 version
-Now supporting fs_config for correct system permissions
-Fix for timestamp on Miui ROMs
-Zipalign function added and updated to 8.1 apks
-Code has been cleaned
-Double system.img extraction method for best compatibility when repacking without loosing symlinks
-Added symlinks support for vendor image
-Fixed support for symlinks and permissions for system image
-Added proper credits and sources for binaries.
How to use:
Watch old video
1. Paste a zip ROM into UR-Tool root folder
2. Execute URTool.exe
3. Choose the zip ROM for unpack and/or repack
4. Select unpack and unpack options
5. Enjoy the magic!
-May be Windows update #KB2999226
foquanlin, @nkk71, @SuperR. and @NevaX1 for make_ext4fs utility.
@xpirt for sdat2img & img2sdat tools
@ASSAYYED for his great knowledge in batch script
https://github.com/wuxianlin for sefcontext_decompile code
and @JakeV for parser sefcontext
ASdev for some cygwin binaries
and_PDA for Imgextractor.exe, russian forum
liudongmiao for bootimg tool
Some credits to me, too
Feel free to give some improvements
UR-Tool Prime V1.8 semi-stable
UR-Tool Prime V1.7 semi-stable