[Tool] [Windows] Auto Tool Unpack Repack Rom Android .DAT [No Cygwin] [No Linux]
***(Marshmallow Supported)***
Develop by MTK THAI ROM MODDER (Thiland) Group
Create Tool by: Kritsada Chaitan
SS:
Youtube : https://www.youtube.com/watch?v=nKYozWOETIU
-NOTE 1.-
***First Install Needed For Use This Tool.***
1. Java SDK
2. Python v3.xx
-NOTE 2.-
***First Copy system.new.dat , system.transfer.list To "Paste-DAT-Here" Folder.***
Download:
MEGA
Thank you Original Thread by: "xpirt" https://forum.xda-developers.com/member.php?u=5132229
Thanks for the tool
Bebooo43 said:
Thanks for the tool
Click to expand...
Click to collapse
Good.... ^^
It is a wonderful tool, brother.
is this tool works fine?
Getting error about incompatible operating system when recompressing dat so I tried on windows and got the same do I have to install the java or the phyton to a certain directory or the auto tool to a certain directory it extracted fine thanks in advance for the feedback
Can someone lend a hand.... Program works great. After removing a couple apps, one from 'app' another from 'priv-app', I made a zip file with 7zip and tried flashing but it fails. Is 7zip okay to make a zip file? was I not supposed to remove a 'priv-app' ? I can't find any solid guides on editing a MM rom. thanks in advance.
i succesfully unpack .dat files and repack .dat files (without edit anything) using this tool .
then i replace the repack .dat file to the rom and zip it and flash it .
but the problem is, when i flash i get error 7 system partition has unexpected contents after ota update . any solution ?
can't unpack system.new.dat cm14 (7.1)
Thank you very much, really useful
update - https://forum.xda-developers.com/an...tool-tool-unpack-repack-dat-img-v2-0-t3284806
Is it work for N based ROMs
tooolll
worked for me also...
t.y.
please update it to new version waiting for it.
Related
Hi everyone!
I'm asking for a fix!
I did the conversion of files for all existing tutorials and it doesn't work!
Procedure:
========
1) Downloaded at LG sources my original Firmware: V10B_00.KDZ
2) Extract .CAB files by LG Utils, Extract with Winrar the dz.file, Extract files by DzDecrypt
Now I used CYGWIN Linux apps emulator:
===============================
3) Used unmbn to generate zImage_Ramdisk.mbn.new
4) Extract all system files with unyaffsmbn
Note: a error happens when i try to extract APKs: "invalid CEN header (bad signature)", All other system files are ok!
What i should do?
Note2: Can someone convert this files for me without errors?
h t t p ://csmg.lgmobile.com:9002 /swdata /WEBSW /GW620f /ABTMBK /V10b_00 /V10B_00.kdz
Thanks!
No one can help me?
Thks!
i know the process is right, but why only in gw620 the process doesn't work?
MTK recovery porting method
Difficulty Level – Medium
Requirements –
1. Developing Skill
2. .img unpack-repack tool ( kitchen or other tool)
3. Notepad++
4. Brain
5. Little Respect
So Let’s start.......
Step 1 : Unpack both ( stock and port) recovey.img
How to Unpack-Repack without kitchen? Follow this tool/guide -->
http://forum.xda-developers.com/tools/general/tool-boot-recovery-img-tools-windows-t2839670/post54644719#post54644719
Step 2 : Now open the default.prop file with NotePAD++ from the Extracted “rmdisk” FOLDER.
Open those build.prop file do all Changes the all changeable things what you can just like that we do when PORTING ROM.
Then COPY the ueventd, meta & factory files those are in (.vc) FILES from the STOCK “rmdisk” FOLDER to PORT…
Step 3 : FROM rmdisk>etc FOLDER open recovery.fstab FILE with NP++ .... REPLACE the from your Stock block with PORT mmcblk ……If you want replace with StockRecovery rmdisk>res>recovery.fstab or with workable RECOVERY. JUST replace the emmc block . If you dont know your phone’s emmc block then dont do this. It maybe harmful.
Step 4 : Now all the works for POTING is now Finished..... Repack the port recovery .img . Flash it. Enjoy.
NOTE : works with CWM based Recoverys like- CTR, COT. Other may not work.
Credits:
arnav
DO AT YOUR OWN RISK. I AM NOT RESPONSIBLE ANY KIND OF DAMAGE. THANK YOU.
DON'T FORGET TO HIT THANKS IF I HELPED YOU
Would this work with a Qualcomm device?
Open those build.prop file do all Changes the all changeable things what you can just like that we do when PORTING ROM
Click to expand...
Click to collapse
What is this? total waste of time. Guide means explaining things..
Back up
aalakib07 said:
MTK recovery porting method
Difficulty Level – Medium
Requirements –
1. Developing Skill
2. .img unpack-repack tool ( kitchen or other tool)
3. Notepad++
4. Brain
5. Little Respect
So Let’s start.......
Step 1 : Unpack both ( stock and port) recovey.img
How to Unpack-Repack without kitchen? Follow this tool/guide -->
http://forum.xda-developers.com/tools/general/tool-boot-recovery-img-tools-windows-t2839670/post54644719#post54644719
Step 2 : Now open the default.prop file with NotePAD++ from the Extracted “rmdisk” FOLDER.
Open those build.prop file do all Changes the all changeable things what you can just like that we do when PORTING ROM.
Then COPY the ueventd, meta & factory files those are in (.vc) FILES from the STOCK “rmdisk” FOLDER to PORT…
Step 3 : FROM rmdisk>etc FOLDER open recovery.fstab FILE with NP++ .... REPLACE the from your Stock block with PORT mmcblk ……If you want replace with StockRecovery rmdisk>res>recovery.fstab or with workable RECOVERY. JUST replace the emmc block . If you dont know your phone’s emmc block then dont do this. It maybe harmful.
Step 4 : Now all the works for POTING is now Finished..... Repack the port recovery .img . Flash it. Enjoy.
NOTE : works with CWM based Recoverys like- CTR, COT. Other may not work.
Credits:
arnav
DO AT YOUR OWN RISK. I AM NOT RESPONSIBLE ANY KIND OF DAMAGE. THANK YOU.
DON'T FORGET TO HIT THANKS IF I HELPED YOU
Click to expand...
Click to collapse
can the backup of the recovery used instead of stock recovery(couldn't find it anywhere)
This tiny program allow you to create Samsung 4Files Firmware/Rescue Firmware that will include PDA, MODEM, CSC, BOOTLOADER.
Firstly, I would like to thank jamesjerss for his shell execution on Cygnwin.
But this utility aint need Cygwin anymore.
And my friend , Ye Lin Aung ( Myanmar MPX-Team ) for helping me
Usage:
1. Click Open to choose .tar.md5 which is in your firmware zip
Click Unpack button to unpack rom first
Finally , click Make button and wait for finished
4 files will out in Samsung Firmware Maker’s directory
Requirement: Microsoft DotNet 4.0 Framework
Dependencies: libarchive2, bzip, ICSharpCode’s ShareZipLib, CustomControls, sfk
for any bugs and feedback .. : [email protected]
TwizzyIndy said:
This tiny program allow you to create Samsung 4Files Firmware/Rescue Firmware that will include PDA, MODEM, CSC, BOOTLOADER.
Firstly, I would like to thank jamesjerss for his shell execution on Cygnwin.
But this utility aint need Cygwin anymore.
And my friend , Ye Lin Aung ( Myanmar MPX-Team ) for helping me
Usage:
1. Click Open to choose .tar.md5 which is in your firmware zip
Click Unpack button to unpack rom first
Finally , click Make button and wait for finished
4 files will out in Samsung Firmware Maker’s directory
Requirement: Microsoft DotNet 4.0 Framework
Dependencies: libarchive2, bzip, ICSharpCode’s ShareZipLib, CustomControls, sfk
for any bugs and feedback .. : [email protected]
Click to expand...
Click to collapse
this tool wrong worked, beacause put the img partitions to c:/samsung folder (in tar.md5 package) !!
new vers. pls mr. TwizzyIndy.. i9301i not supported !!!
Thankssssss
Thanks bro,this is really great
Trying this tool .......
TwizzyIndy said:
This tiny program allow you to create Samsung 4Files Firmware/Rescue Firmware that will include PDA, MODEM, CSC, BOOTLOADER.
Firstly, I would like to thank jamesjerss for his shell execution on Cygnwin.
But this utility aint need Cygwin anymore.
And my friend , Ye Lin Aung ( Myanmar MPX-Team ) for helping me
Usage:
1. Click Open to choose .tar.md5 which is in your firmware zip
Click Unpack button to unpack rom first
Finally , click Make button and wait for finished
4 files will out in Samsung Firmware Maker’s directory
Requirement: Microsoft DotNet 4.0 Framework
Dependencies: libarchive2, bzip, ICSharpCode’s ShareZipLib, CustomControls, sfk
for any bugs and feedback .. : [email protected]
Click to expand...
Click to collapse
The created tar files are wrong, they are created with subfolders inside (c:/samsung/), am I doing something wrong?
?
So is it good or not
New Version
Hello, Thanks For This Awesome Soft, Please Update
All Files aren't supported By Your Soft,
no support for galaxy J7
does not extract all files, just select few. Garbage.
Thanks man it works
Currently not working, Hasn't been updated in a while...
***********************Unpack Repack nb0 Rom******************
Here Is a nb0 tool that unpacks and packs SUT nb0 factory images Used By Some manufactures like Infocus,
Requirements-
Window pc with java Installed
How to unpack
1. Paste your stock Rom File, something.nb0 in Tools Folder
2. Rename it to firmware.nb0
3. Run unpack.exe file hit enter , Done, check unpack Folder Your extracted Rom IS Present,
How To Repack-
1. cut whole Rom From unpack folder and paste in Repack Folder[ you can edit your images],
Like System app etc, don't change name]
2. Run Pack.exe hit enter Done,
3. Your New Rom Is readdy with the name System.nb0 in tools folder
Downloads-
MOD Edit :- Links Removed
bro after i unpack firmware.nb0 file theres no file that related to system.img.???
Incomplete unpacking
Sir please help to completely unpack nb0 file as sut is not working nor my phone's flashier with scatter file is available online. My phone is Infocus m330 with mediatek mt6592 chipset. It's bootloader locked with hard brick that not showing any sign of active other than when connected to pc can be flashed with v com drivers
Please help
Going to test it now ?
Thank you mate
link is dead
Thread Closed.
Thanks
SacredDeviL666.
A tool to Repack the firmware image system.new.dat Nougat 7.x.x
the author of the tool by Karan Sangaj thank you :good: on XDA haven't found the original post
The usage is very simple, I hope many will be useful.
thanks for the help ajsmsg78
1) install Python 2.7.13
2) original post File contexts.bin converter thank you
another File context tools thank you
video instruction
https://www.youtube.com/watch?v=OsHWPdIgGjY
https://plus.google.com/u/0/collection/EiQ1NE
sory for my English
cannot convert my_new_system.img.
how to convert it exactly?
Any solution??
Traceback (most recent call last):
File "C:\Users\pc\Desktop\Android Unpack Repack Nougat\tools\img2sdat.py", line 10, in <module>
import common, blockimgdiff, sparse_img
File "C:\Users\pc\Desktop\Android Unpack Repack Nougat\tools\common.py", line 112
print " running: ", " ".join(args)
^
Esakren17 said:
Any solution??
Traceback (most recent call last):
File "C:\Users\pc\Desktop\Android Unpack Repack Nougat\tools\img2sdat.py", line 10, in <module>
import common, blockimgdiff, sparse_img
File "C:\Users\pc\Desktop\Android Unpack Repack Nougat\tools\common.py", line 112
print " running: ", " ".join(args)
^
Click to expand...
Click to collapse
I am getting the same error as this, what should I do to fix it?
Have installed python v2.7.13+3.6.1, latest java jdk and jre and .NET framework v4.7 and running windows 10, it had worked on the first try but started showing this error suddenly.
It works, but after install ROM the battery discharges very quickly and heats up... I think that incorrectly exposed file permissions, because if i flash "system" folder with setting simlinks and set_metadata in updater-script ROM works fine and battery is ok.
ROM work only with system.img, system.new.dat dont flash, error 7 in TWRP...
best tools ,thanks!!
raghuM said:
I am getting the same error as this, what should I do to fix it?
Have installed python v2.7.13+3.6.1, latest java jdk and jre and .NET framework v4.7 and running windows 10, it had worked for the first time but started showing this error suddenly
Click to expand...
Click to collapse
same here
Anyway to repack oreo
Got a problem with this tool.....
it works perfectly to extracting system.new.dat and unpack system.img I modify and remove some files in the system folder (remove some apks and fonts, add some hosts....) so the size of the system folder change and when I type the 04 option got this error message.....
0 [main] make_ext4fs 7236 cygwin_exception:pen_stackdumpfile: Dumping stack trace to make_ext4fs.exe.stackdump
Impossible de trouver C:\Users\RAYMAN95\Desktop\Android Unpack Repack Nougat\temp_size.txt
How is it possible to made some modifications and repack it to system.new.dat????
thank's for the help
This tool is very nice.... But please help me guys... On the last step I'm failed to repack system.img to new.system.dat... SYNTAX ERROR... how to fix it?
By the way it is very great tool... Thx to Dev ^^
Can't Unpack system.img
Ok Bro .. That's awesome Tutorial.
I have the system.img of Note 8 AP file .. I try to unpack it directly but it Ext4Extractor.exe is stopping working.
I don't have system.new.dat file so I'm trying to unpack system.img directly but it doesn't work.
As these images show the error:
https://imgur.com/a/jlZvb
Thank you very much for your tools very easy to use Thank you again
iMenesi said:
Ok Bro .. That's awesome Tutorial.
I have the system.img of Note 8 AP file .. I try to unpack it directly but it Ext4Extractor.exe is stopping working.
I don't have system.new.dat file so I'm trying to unpack system.img directly but it doesn't work.
As these images show the error:
https://imgur.com/a/jlZvb
Click to expand...
Click to collapse
The link is not working.
You need to have a custom ROM, and in it system.transfer.list and system.new.dat.
Use this method:
[DEV] sdat2img 1.0 - img2sdat 1.2 ◦ Unpack/re-pack android DAT files
For a long time I use and have not found Android ROM 5.1.1 - 8.0.0, which can not be unpacked using sdat2img.py.
Thank you authors @xpirt , @luxi78 , @howellzhu !
You dont need a custom rom or the system.transfer.list, or system.new.dat. This unpacks images just fine. It will not unpack factory images tho. I got it to work just fine unpacking nexus 6 system.img by placing the image in the output_converted_dat_to_ext4 folder then telling the bat file what the size is and unpacking it. Do the same thing for oreo and the ext4 exe crashes.
ze7zez said:
The link is not working.
You need to have a custom ROM, and in it system.transfer.list and system.new.dat.
Use this method:
[DEV] sdat2img 1.0 - img2sdat 1.2 ◦ Unpack/re-pack android DAT files
For a long time I use and have not found Android ROM 5.1.1 - 8.0.0, which can not be unpacked using sdat2img.py.
Thank you authors @xpirt , @luxi78 , @howellzhu !
Click to expand...
Click to collapse
iMenesi said:
Ok Bro .. That's awesome Tutorial.
I have the system.img of Note 8 AP file .. I try to unpack it directly but it Ext4Extractor.exe is stopping working.
I don't have system.new.dat file so I'm trying to unpack system.img directly but it doesn't work.
As these images show the error:
https://imgur.com/a/jlZvb
Click to expand...
Click to collapse
greeshan said:
It works, but after install ROM the battery discharges very quickly and heats up... I think that incorrectly exposed file permissions, because if i flash "system" folder with setting simlinks and set_metadata in updater-script ROM works fine and battery is ok.
ROM work only with system.img, system.new.dat dont flash, error 7 in TWRP...
Click to expand...
Click to collapse
flash "system" folder with setting simlinks and set_metadata in updater-script ROM
Click to expand...
Click to collapse
How did you fix the problem?
How did you do that?
master.robot said:
How did you fix the problem?
How did you do that?
Click to expand...
Click to collapse
i use commands set_metdata(xxxx); after block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
Is this tool work with oreo roms ?
wgmmmx said:
Is this tool work with oreo roms ?
Click to expand...
Click to collapse
No i think
link77kz said:
A tool to Repack the firmware image system.new.dat Nougat 7.x.x
the author of the tool by Karan Sangaj thank you :good: on XDA haven't found the original post
The usage is very simple, I hope many will be useful.
thanks for the help ajsmsg78
1) install Python 2.7.13
2) original post File contexts.bin converter thank you
another File context tools thank you
video instruction
https://www.youtube.com/watch?v=OsHWPdIgGjY
https://plus.google.com/u/0/collection/EiQ1NE
sory for my English
Click to expand...
Click to collapse
rom isn't booting after editing system.new.dat. any help ?
For anyone having syntax errors converting systemsparse.img to system.new.dat just download the updated img2sdat files from the link below and extract all files ending in .py to the tools folder of this batch tool. There's also an updated sdat2img.py linked below which goes in the same tools folder. Overwrite all the old files when prompted.
Edit: I've attached a zip that has the tools already updated. Maybe the OP can update the first post?
img2sdate update: https://github.com/xpirt/img2sdat
sdat2img update: https://github.com/xpirt/sdat2img