Change update.zip to system.img boot.img recovery.img - Android Q&A, Help & Troubleshooting

I am trying to change an update.zip file back to the three components system.img, boot.img, and recovery.img. I have tried creating the system.img but when i do so the permissions are wrong on the files. (update script is not run on it to change permissions)
For boot.img i can repackage it by splitting the blob but when i do it i am not sure what base value to use. when using mkbootimg
i was wondering if there was a way to convert it back to those components in some more automated way....
I am not sure but possible emulating the install of update.zip then harvesting the img files?

Related

Help Need Meta-inf

So, my phone recently got soft bricked....
I had the tar file of the XXELK4 leaked firmware and i extracted it, unpacked system.img.
Mounted it as ext4 and extracted the contents.
I want to make a flashable zip file from the system.img contents.
I made a folder called system. In which all app, bin, etc and other folders are.
Then i copied over the boot.img from the tar file...
Now, i need the meta-inf. I tried using some meta-inf from other roms, and removing the aroma functions from them.
Then trying to flash..
I get only a bootloop.
So, could someone provide a clean Meta-inf consisting of only the updater-script and update-binary??

Repack system.img ext4

hi,
for school I'm making a Windows program to unpack system.img, edit it, and repack it.
Is there anyone who know how to do this on windows? without an program? (especially repacking system.img)
I am now using ext4_unpacker and then ext2_explorer link: http://forum.xda-developers.com/showthread.php?t=2285831
this is the result: http://i.imgur.com/NJpDoCM.png
how to repack this? I prefer as system.img so I can flash it with adb, but if that is not possible I can also use my custom recovery (twrp or cwm) to flash it.
and I want to do this without a program, I prefer cmd commands.
(if it's possible to add all thos files to one zip file (update.zip) and then flash it in TWRP, that would be a solution, but is it possible?)

create .img file from directory?

Is it possible to create an .img file from a directory? Lets say a system.img from /system?
Or userdata.img from the userdata?
To have some kind of backup and easily restore the system with fastboot flash ....

Is there any difference?

Good day!
Hi!
In creating flashable zip of /system...
What I've read is to extract system.img from phone and unpack it (convert to .ext4 then extract using some tools) then make it flashable zip.
Is it possible to directly copy the entire /system of the phone and make it a flashable zip?
(Without extracting system.img of the device...)
Thanks!

Question about creating flashable zip

Hi,
I build aosp for my Xperia X, the output are 3 .img files, system.img, boot.img, userdata.img.
So I wanted to ask if it's possible to create a flashable zip for those .img files instead of flashing them using fastboot.
If yes, what should the folder structure look like?
Also could I use a META-INF folder from an other rom? (omnirom for example)
Greetings.

Categories

Resources