How to build an image file ? - EVO 4G Q&A, Help & Troubleshooting

can anyone tell me how to build an android .img file
i would like to take a system folder and data and turn them in to a system.img
and data.img
can anyone point in the right area

Related

read/edit .img files

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.

help with file permissions, converting .IMG files to update.zip ROMs.

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.

[Q] Error in compressing a rom folder

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?

[Q] How to package a lollipop update file

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?

TWRP Backup to Image Files

I've successfully rooted my Pixel C running Android 7.0, booted into TWRP, and made a set of backup files. These are 11 files with extensions like .win, .win.md5, .win000, .win001, and .win001.md5. Is there a way to convert these to image files?
[email protected] said:
I've successfully rooted my Pixel C running Android 7.0, booted into TWRP, and made a set of backup files. These are 11 files with extensions like .win, .win.md5, .win000, .win001, and .win001.md5. Is there a way to convert these to image files?
Click to expand...
Click to collapse
what is the purpose of creating image files ?
not sure if there is an tool existing .. but you can build an image file by hand.
rename the twrp backup files and add the extension ".tar" -> data.ext4.win000.tar
( data.ext4.win003 -> data.ext4.win003.tar )
untar all the files into one folder.
build a new image file.
as well you can use "dd" command .. to make a full dump of the partition.
this will be a big image file (approx. 25GB) .. the complete data partition.
just shrink the raw image afterwards .. (resize2fs -M)
If you have encrpyted data partition you need to decrypt ..
anyway .. the most important partition is "data" .. make a backup of data only.
flash the other partitions from stock/custom images and use fastboot.
hope this helps ...

Categories

Resources