Hello Everyone.. This is my first thread...
I would like to share with everyone a tool (System-img-tools) which can be used to unpack or repack System or vendor images.
What it basically does is converting system/vendor.new.dat.br files found in custom roms to system.raw.img
which can be easily mounted and edited accordingly.
Although there are many tools like sdat2img, img2sdat etc. it was a bit complex to extract a system.img from
system.new.dat.br files as one had to first convert system.new.dat.br to system.new.dat and then the dat to img.
Repacking was also equally time consuming.
So I created a this tool in c which uses these binaries to unpack and repack system files a bit more easily.
Please give this tools a try. Suggestions and feedbacks are wholeheartedly welcomed.
It can be cloned from my git repository:-
Code:
git clone https://github.com/itsdrnoob/System-img-tools.git
itsdrnoob said:
Hello Everyone.. This is my first thread...
I would like to share with everyone a tool (System-img-tools) which can be used to unpack or repack System or vendor images.
What it basically does is converting system/vendor.new.dat.br files found in custom roms to system.raw.img
which can be easily mounted and edited accordingly.
Although there are many tools like sdat2img, img2sdat etc. it was a bit complex to extract a system.img from
system.new.dat.br files as one had to first convert system.new.dat.br to system.new.dat and then the dat to img.
Repacking was also equally time consuming.
So I created a this tool in c which uses these binaries to unpack and repack system files a bit more easily.
Please give this tools a try. Suggestions and feedbacks are wholeheartedly welcomed.
It can be cloned from my git repository:-
Click to expand...
Click to collapse
Thanks! -Dr.Noobs1stPatient
---------- Post added at 04:09 AM ---------- Previous post was at 04:06 AM ----------
MufasaMessiah said:
Thanks! -Dr.Noobs1stPatient
Click to expand...
Click to collapse
And that was my first comment! Lol
(Yes, this being my second. I would say for ****s and giggles as the ole adage goes but if you think about it.. all's ****s and giggles have in comment are babies. Hahaha
Hey guys...
This project has been abandoned for some time. The reason is :- I LOST THE SOURCE CODE xD:laugh:.....
I'll be soon coming up with a new and improved system image tool.
Thanks..
itsdrnoob said:
Hey guys...
This project has been abandoned for some time. The reason is :- I LOST THE SOURCE CODE xD:laugh:.....
I'll be soon coming up with a new and improved system image tool.
Thanks..
Click to expand...
Click to collapse
If anyone stumbles across this thread like I did looking for a way to extract system.new.dat.br, it looks like SuperR's Kitchen can handle it.
Was badly looking for an easier way to get system.img from system.new.dat seems, this is by far the easy and straightforward tutorial: How to Extract system.new.dat.br and system.new.dat Files
xavier-fs said:
Was badly looking for an easier way to get system.img from system.new.dat seems, this is by far the easy and straightforward tutorial: How to Extract system.new.dat.br and system.new.dat Files
Click to expand...
Click to collapse
The link is dead?!!
itsdrnoob said:
Hey guys...
This project has been abandoned for some time. The reason is :- I LOST THE SOURCE CODE xD:laugh:.....
I'll be soon coming up with a new and improved system image tool.
Thanks..
Click to expand...
Click to collapse
@itsdrnoob Thread closed! Please advise the moderators team (best via the report function) to re-open the thread when ready to provide your "new and improved system image tool". I think quite a few members are looking forward to it.
Regards
Oswald Boelcke
Senior Moderator
Related
hi i have searched a bit arround in all the different forums to find out how to unpack system images and the repack the files in it to a update.zip untill now i have only found
http://forum.xda-developers.com/showthread.php?t=551711 thread but it is not explained how i setup all the tools and pearl scripts in it. can anyone help me a bit the right
way with even som explanation or some good explained guides and howto?
on purpose thank ya very much!
ye guys are the best!!
Here I present,
An easy to use and effective, Flashable-zip(or update.zip) Signer!
There are many update-zip(flashable zip) Signers available, but this is special.
This Signer WHOLE-FILE signs your update.zips/flashable-zips, so it can pass even recovery's Signature Verification(Tested on CWM 5.0.2.8 on HTC Wildfire S)!
Unfortunately, as I am not very veryGood at C/C++ Programming, this tool does not have a Graphic User Interface(GUI).
I apologize, but as I am new to XDA, I don't know how to insert pictures, "Code:" etc, so this thread may look very ugly to you.
Oh yes! And DON'T EVER delete any file included in the zip, as it will cause the zip signer to malfunction.
I may have made this flashable-zip Signer, but I couldn't have done it without this people:
zeppelinrox ( for teaching me a little C/C++ Programming with his scripts )
The creator of signapk.jar ( an important part of this tool )
Google ( For Creating Android so that these tools can be developed )
YOU! ( for testing out my flashable-zip Signer )
And many more, who I apologize for leaving you out
Guide to using this zip signer
To Use this Signer:
1) Unzip the file(Obviously!)
2) Copy & paste the update-zip(a.k.a flashable zip) that you want to sign into that folder.
3) Run ROM Signer.bat
4) Follow the instructions in the application.
5) When it says "File successfully signed......", You are DONE!
After File signing operation succeeds, check the "signed" folder for your signed zip file.
Thank you for Using my Flashable-zip Signer!
I would appreaciate if you would hit the "Thanks" button.
Portable Java(jPortable by PortableApps.com) DIRECT link
Here are the direct links for the 32-bit & 64-bit Windows Portable version of the Java(R) Runtime Environment:
32-bit : http://jaist.dl.sourceforge.net/pro...Versions/jPortable_7_Update_25_online.paf.exe
64-bit: http://jaist.dl.sourceforge.net/pro...rsions/jPortable64_7_Update_25_online.paf.exe
Just click on the link and the Portable Java RE should start downloading!
Nice work
Marília de Oliveira said:
Nice work
Click to expand...
Click to collapse
Lol didn't expect to see you here. Hi @haoyangw long time no see mate
Hi thanks for this signer! good work!
Please if someone can help me,
i have all firmware files for the Nokia 8110 4G and im not sure how to make the META-INF file what do i need to put in there and how to do it, as im trying to sign the package and it dose not go
yowejowe said:
Hi thanks for this signer! good work!
Please if someone can help me,
i have all firmware files for the Nokia 8110 4G and im not sure how to make the META-INF file what do i need to put in there and how to do it, as im trying to sign the package and it dose not go
Click to expand...
Click to collapse
Sorry let me better understand your issue first, you want to create a flashable update.zip for installing your firmware files right? So you want to create the correct META-INF files from scratch? Do you have TWRP recovery installed on your phone already? Cos it supports a newer kind of META-INF structure that makes a lot easier. Also your firmware files are for installing into the /system partition, or to be flashed? Sorry for having so many questions haha, I can better help you if I understand the technical details
haoyangw said:
Sorry let me better understand your issue first, you want to create a flashable update.zip for installing your firmware files right? So you want to create the correct META-INF files from scratch? Do you have TWRP recovery installed on your phone already? Cos it supports a newer kind of META-INF structure that makes a lot easier. Also your firmware files are for installing into the /system partition, or to be flashed? Sorry for having so many questions haha, I can better help you if I understand the technical details
Click to expand...
Click to collapse
HI thanks for the reply,
i have all .img files for this model i want to flash, its a kaios phone, and i have the original recovery still on it, (will the TWRP recovery work on kaios?) and yes i need to create a META-INF file from scratch.
THANKS FOR MAKING THIS TOOL!!!
You just saved me from a chao of broken bootanimation issue!
I REALLY REALLY APPRECIATE YOU AND I ALMOST CRIED( •̥́ ー •̀ू )!!!
THAAANK YOU!!!!O(≧▽≦)O
Is there a Linux version
This is a thread on how to unpack and repack the system.img.dat file of your Android Rom,to see its content.
Starting from Android 5.x (Lollipop) Custom roms are not compressed like on previous android versions. Earlier all Files were inside the /system folder.And we were able to see all the system files
The problem started in >=5.0 versions because rom size increased and it was necessary to highly compress them again.
You Must Have Following Files Installed in your PC
1. Java SDK = Click here to download java
2. Python 2.xxx= Click here to download Python
How to decompress /Repack these files? Its Sipmle !!
Follow the Instructions Below To do that.
Download the Android Unpack Repack adithyan25.rar from here
Or you can download it from attachments
Run The File And Follow The Instructions As on screen. :good:
Video Tutorial
Special Thanks @xpirt
If you are a good Programmer You Can follow his method .View His Method here
If you Have any doubts or Enquired post in the Comment section
I got an error while repacking the system.img
"Input-IMG\file_contexts: No such file or directory"
Please help.
AmeyRanberg said:
I got an error while repacking the system.img
"Input-IMG\file_contexts: No such file or directory"
Please help.
Click to expand...
Click to collapse
did you copy the files to the creard folder!??... watch the video
adithyan25 said:
did you copy the files to the creard folder!??... watch the video
Click to expand...
Click to collapse
The rom that I had, only had system.img boot.img and those older folders. It didnt have file_contexts. But later I extracted it from boot.img and it worked thanks anyway.
AmeyRanberg said:
The rom that I had, only had system.img boot.img and those older folders. It didnt have file_contexts. But later I extracted it from boot.img and it worked thanks anyway.
Click to expand...
Click to collapse
Great And thank u for trying my app
I falied system.img repacked
Hi~
I wateched your video.
So I succeed system.img unpacked.
But, I tried system.img repack. I failed.
Why failed? T.T
Start Repacking in system.img......
please wait......
Input-IMG\file_contexts: No such file or directory
critical error: main: failed to open input image : No such file or directory
did u copy fule_contexta
Similar to my friends.
http://forum.xda-developers.com/and...tool-tool-unpack-repack-dat-img-v2-0-t3284806
same the tool I make http://forum.xda-developers.com/and...tool-tool-unpack-repack-dat-img-v2-0-t3284806
Kritsada Chaitan said:
same the tool I make http://forum.xda-developers.com/and...tool-tool-unpack-repack-dat-img-v2-0-t3284806
Click to expand...
Click to collapse
yeah tanks for the info... i made this tool using xpirt post and a screen shot of a software that i saw in google... any way great wrks... i made this through java..
AmeyRanberg said:
The rom that I had, only had system.img boot.img and those older folders. It didnt have file_contexts. But later I extracted it from boot.img and it worked thanks anyway.
Click to expand...
Click to collapse
deleted
adithyan25 said:
did u copy fule_contexta
Click to expand...
Click to collapse
what is file_contexta?
I dont understand..
same here. failed while repack
critical error: main: failed to open input image: No such file or directory
its a file along with the rom that you get.. just watch the video
Sent from my ASUS_Z00A using XDA-Developers mobile app
Problem/
No file " system transfer list". Where to get it? Firmware is given under SPFT.
hi @adithyan25
I'm so interested with this topic.
I tried but still stuck on file_context
please also make written tutorial on this thread.
kevin mitnick said:
hi @adithyan25
I'm so interested with this topic.
I tried but still stuck on file_context
please also make written tutorial on this thread.
Click to expand...
Click to collapse
didnt you watch the video??? i think it had all the component you nedd.. still any prblm cmnt below
Sent from my ASUS_Z00A using XDA-Developers mobile app
adithyan25 said:
didnt you watch the video??? i think it had all the component you nedd.. still any prblm cmnt below
Sent from my ASUS_Z00A using XDA-Developers mobile app
Click to expand...
Click to collapse
i did.
but on video, tutorial about dat file..
Still unable to repack the dat.
Windows says rimg2sdat is not a valid Win32 application.
It works under Windows 7 at work but not under Windows XP Pro like I have at home.
Someone got another version? Is there a XP compatible version of rimg2sdat?
Thanks
Kritsada Chaitan said:
same the tool I make http://forum.xda-developers.com/and...tool-tool-unpack-repack-dat-img-v2-0-t3284806
Click to expand...
Click to collapse
Thanks to the original work-works correctly!
Working perfectly with Android 6.0.1, Thanks Dev !!
Hi
i want to know if there is a way to extract and repack the OP6 rom
i found a way to extract the zip into .img files, and found a program that can extract the .img files into standard files/folders
but i still have yet to find a way to repack the files back into a .img to flash via fastboot
can anyone help please.
The best tool is currently Super R's kitchen. Great guy and great Dev, you should support his work.
https://forum.xda-developers.com/ap...dows-linux-superr-s-kitchen-v3-0-0-0-t3601702
mdl054 said:
The best tool is currently Super R's kitchen. Great guy and great Dev, you should support his work.
https://forum.xda-developers.com/ap...dows-linux-superr-s-kitchen-v3-0-0-0-t3601702
Click to expand...
Click to collapse
ive tried this method, doesnt work
I use http://ext2read.blogspot.com/
Ohh, you want to pack the img again, i think linux is the easiest way to go forward.
virtyx said:
ive tried this method, doesnt work
Click to expand...
Click to collapse
Where are you getting stuck? I've had no issues personally
edit* Just checked, working on OnePlus6Oxygen_22_OTA_012_all_1806140300_e4bacf signed zip
you can extract the payload.bin with payload extracter:
windows:
http://www.mediafire.com/file/cx4oodbclxibjf3/payload_dumper-win64.zip/file
WSL / Linux:
https://gist.github.com/ius/42bd02a5df2226633a342ab7a9c60f15
matze19999 said:
you can extract the payload.bin with payload extracter:
windows:
http://www.mediafire.com/file/cx4oodbclxibjf3/payload_dumper-win64.zip/file
WSL / Linux:
https://gist.github.com/ius/42bd02a5df2226633a342ab7a9c60f15
Click to expand...
Click to collapse
I want to repack an IMG file
mdl054 said:
Where are you getting stuck? I've had no issues personally
edit* Just checked, working on OnePlus6Oxygen_22_OTA_012_all_1806140300_e4bacf signed zip
Click to expand...
Click to collapse
I'll try again once I'm behind a PC
were you able to repack an IMG file?
virtyx said:
I'll try again once I'm behind a PC
were you able to repack an IMG file?
Click to expand...
Click to collapse
Yes, the tool extracts payload.bin and further extracts boot.img, system.img, vendor.img etc and allows you to work on them and will repack them after :highfive:
mdl054 said:
Yes, the tool extracts payload.bin and further extracts boot.img, system.img, vendor.img etc and allows you to work on them and will repack them after :highfive:
Click to expand...
Click to collapse
fingers crossed
then we can finally have a decrypt base with no avb on partitions, I'll try this soon, do you mind if I PM you if I get stuck?
do I *need* to donate?
I'll help if I can but it's Super R's work and I'm sure he is more than happy to help if you get stuck.
Hello all.
I haven't posted here for years. My account is still active, but I am no longer allowed to post in specific forums regarding ROMs, so I am asking here.
[moderators: sorry if this is the wrong topic. It is the closest I could find, since my question is not device specific]
I have an Android 9 box which is signed with AOSP test certificates.
I also have an update.zip file for this box.
This box has A/B OTA support, it is working and verified through fastboot.
I want to edit and repackage the update.zip
I know how to do it on old ROMs, but I could not find any tool that can repackage payload.bin
There are several tools to unpack it, and I used one to extract boot.img and system.img
But I can't find any way to package these files back in to payload.bin format.
I tried various google searches and even analyzing the open source unpacking tools, but building a packaging tool from scratch is too complex for me at this point.
Any advice?
Have you found anything for this? I am trying to repack the payload.bin as well from modified IMG files, but I cant find anything on the web.
I extracted this script from linux-86 tools, pretty sure this is the one that repacks all the images into payload.bin, but donno what's the exact code inside it that makes it possible... Understand the last 100 lines & you might succeed.
MPK99 said:
I extracted this script from linux-86 tools, pretty sure this is the one that repacks all the images into payload.bin, but donno what's the exact code inside it that makes it possible... Understand the last 100 lines & you might succeed.
Click to expand...
Click to collapse
MPK99 said:
I extracted this script from linux-86 tools, pretty sure this is the one that repacks all the images into payload.bin, but donno what's the exact code inside it that makes it possible... Understand the last 100 lines & you might succees
Click to expand...
Click to collapse
Please Teach me, how to repack .img files into payload.bin
Did u Already Know How To Repack .img Files Into Payload.bin?
MPK99 said:
I extracted this script from linux-86 tools, pretty sure this is the one that repacks all the images into payload.bin, but donno what's the exact code inside it that makes it possible... Understand the last 100 lines & you might succeed.
Click to expand...
Click to collapse
Hello do you still have this script trying to repack a QCM6125 with magisk and twrp
Edit: Its advised to use superR's kitchen
SuperR Kitchen
forum.xda-developers.com
Hey
I've also tried everything, how do you pack it back into a payload.bin, I only wanted usb rights in the Platform.xml, I didn't want that anymore, that's enough for me, but how do I pack it again, thanks
I'm asking here as I never got an answer, sorry
don't want root
Thanks