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?
Related
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.
hi,
i want to know how do devs create an apk file that can edit files in system folder. for example sound files etc. generally a flashable zip is created which will replace the stock file with a modified one. The same thing, this time without going into recovery but being able to do it with an app itself.
Yes, ready to learn.
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?
Hi all,
I needed original Build.prop, Boot and stock recovery from my RUU package. I successfully extracted the zip file from .exe file. But I found many zip files (about 25 zip files) in the rom.zip and I couldn't extract any of those 25 zip files. Is there any way to un-zip those files to get stock files to use later?
Wrong thread
Wrong place
Wrong procedure