FORUMS
Remove All Ads from XDA

[Tool]Extract and Repack system .DAT/BR and .IMG on android 5-8.1

210 posts
Thanks Meter: 970
 
By JamFlux, Senior Member on 10th September 2017, 06:18 AM
Post Reply Email Thread
13th January 2019, 07:30 PM |#121  
Senior Member
Flag ─░stanbul
Thanks Meter: 41
 
More
Quote:
Originally Posted by JamFlux

Hi XDA people.
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.

UR-Tool



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
-Minor fixes
-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:
-Disable antivirus
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!

Requisites:

-May be Windows update #KB2999226

Credits:

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
7zip developer
ASdev for some cygwin binaries
Free icon
and_PDA for Imgextractor.exe, russian forum
liudongmiao for bootimg tool
Some credits to me, too

Source code:
URTool
Make_ext4fs utility
Feel free to give some improvements


Download center:
UR-Tool Prime V1.8 semi-stable
MD5: bafc6092bbd6408c651e9714b6ae0c79

UR-Tool Prime V1.7 semi-stable
MD5: 23217f3d09df7b991251972aa8d721f6












THAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANKKKKK KKSSSSSSSSSSSSSSSSSSSSSS :v ictory::victor y:
The Following User Says Thank You to ananxd For This Useful Post: [ View ] Gift ananxd Ad-Free
 
 
4th February 2019, 05:21 PM |#122  
Francisco Funes's Avatar
Senior Member
Thanks Meter: 217
 
More
It worked on android 8.1! I ported 2 ROMs for j5 2016!!!! But it doesn't work on pie anyway thank you so much!!!!!!
8th February 2019, 10:57 PM |#123  
Cleopatra Bianchi's Avatar
Senior Member
Flag Milan
Thanks Meter: 324
 
More
info
I have been able to get the UR-Tool without the infected "URTool.exe".

STEPS :
1) Download "UR_Tool_v1.8u.7z".
2) Delete "URTool.exe" inside the folder.
3) Download the following rar :

http://www.mediafire.com/file/41pr1u...l0s/UR-BAT.rar

4) Copy "URTool.bat" & paste it inside "UR_Tool_v1.8u" folder.
5) Click on the bat file.

I have also included two screenshots inside the rar (as proof it is works well).

P.S. :
I hope the developer won't offend if I do it.
The Following 3 Users Say Thank You to Cleopatra Bianchi For This Useful Post: [ View ] Gift Cleopatra Bianchi Ad-Free
9th February 2019, 09:09 PM |#124  
Francisco Funes's Avatar
Senior Member
Thanks Meter: 217
 
More
Quote:
Originally Posted by Cleopatra Bianchi

I have been able to get the UR-Tool without the infected "URTool.exe".

STEPS :
1) Download "UR_Tool_v1.8u.7z".
2) Delete "URTool.exe" inside the folder.
3) Download the following rar :

http://www.mediafire.com/file/41pr1u...l0s/UR-BAT.rar

4) Copy "URTool.bat" & paste it inside "UR_Tool_v1.8u" folder.
5) Click on the bat file.

I have also included two screenshots inside the rar (as proof it is works well).

P.S. :
I hope the developer won't offend if I do it.

Can it port android Pie ROMs?
27th February 2019, 03:55 AM |#125  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by JamFlux

New URTool 1.4u beta has been released:
https://www.androidfilehost.com/?fid...78262903985051
make_ext4fs binary upgraded to android Pie.
Tested and 100% working from android 6.0 to 8.1 with redmi note 3 (sd) ROMs.

does make_ext4fs support pie?
28th April 2019, 07:21 PM |#126  
OP Senior Member
Villavicencio
Thanks Meter: 970
 
More
Quote:
Originally Posted by Nightmare_MYS

does make_ext4fs support pie?

I'm on it.
Time without time for this.
4th May 2019, 08:19 AM |#127  
N'ayam Amarsh'e's Avatar
Senior Member
Thanks Meter: 539
 
Donate to Me
More
Quote:
Originally Posted by JamFlux

I'm on it.
Time without time for this.

Hi, I get fatal error warning on repack - failed to execute script img2sdat
Is there any fix for that?
1st June 2019, 03:26 PM |#128  
Junior Member
Thanks Meter: 4
 
More
I have an *.img file, but the program asks for a zip file.

Also, it says "choose the number". What number is it referring to?
Post Reply Subscribe to Thread

Tags
nougat, oreo, system.img, system.new.dat, unpack

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes