I've successfully scripted the automated creation of a file structure into which the contents of BOOT.IMG, SYSTEM.IMG, DATA.IMG, CACHE.IMG and SD-EXT.IMG are extracted. The script also creates a valid update-script file under ./META-DATA/....
The only issue I have is that I'm using windows so the .IMG files extracted as a yaffs file system, looses the original file permissions. I need someway to recreate the permissions in the update.zip.
Thats all.
Having a way of converting a nandroid backup to an update.zip means you can very easily cook custom roms from a nandroid backup, and port ROMs across phones using a portable .ZIP format.
Related
Does someone know how to mount/read/edit the .img files in the ROM?
I Know it is a small filesystem.
I googled for an hour and still don't know how it works.
For example the Radio ROM, i'd like to read the contents, Why is it for about 25MB's
Is it possible to tweak the contents and stuff.
Not sure about radio rom.
unyaffs for system.img
unpack-bootimg.pl/repack-bootimg.pl for boot.img
I think you want unyaffs. I used it to decompile a nandroid backup .img so i could take some files form it.
EDIT: Damn you Adam!
unyaffs says `Broken image`
So that won't work.
will try: unpack-bootimg.pl/repack-bootimg.pl
but i think it's for the boot.img file.
also intresting to look at.
i have decompressed a rom to modify a file in it, and i have compressed the folder again but while intalling it in recovery i get bad zip file.
Is there something i should do while compressing the folder in order to make it work in recovery?
In TWRP, when you flash a rom you are pointing it to a .zip file, or bootloader or modem or whatever. Great, but when I create a backup of my rom in TWRP it doesnt make a flashable .zip it just makes 4 .win files. If I then go into TWRP and select restore it asks for the location of the .zip and if I go to that location obviously there is none to be found. Do I just use like winrar or 7zip and make it a .zip or what? I dont understand this and I better because If I ever need it Im screwed.
TWRP backups are not zip files. You point it to where TWRP created the backup folder.
I read somewhere that Google has changed the system used for the standard update zip file.
Therefore you have to convert some .dat files to .img files and .img files to a standard readable folder.
This I understand, however how do I reverse the process above to get back to the .dat file and get a lolipop compatible flashable zip?
i am stuck with a problem and need your help, i created a data partition backup from TWRP, but when i tried to restore it gives an error extrac(tor) fail 255 i understand the data win files got corrupted, but i used winrar to extract all the data win files & got /data folder with most of the files inside, now i want to create a twrp flashable zip to write the extracted data to data partition of my htc10, i dont know how to create update script for mounting and writing to data partition if someone can please help in creating a simple zip file with correct meta-inf folder i'll copy my extracted files & flash to get my data back. please do reply guys i am counting upon you fellow members