[Q] Need help on unpack and repack system image - Android Q&A, Help & Troubleshooting

Does any one know how can I unpack and repack system images using cygwin? can you give me the complete and understandable tutorials on it? I have tried all of the tutorials here in XDA, but it seems that I can't follow the right way. Please to someone, extend a helping hand on me.

Related

[REQUEST] logo.rle initlogo.rle conversion

I posted this in the HD2 Android NAND forum...but think it might be better asked here.
cmylxgo said:
I have tried for a couple weeks off and on to convert or create an logo.rle to build into my initrd.gz without any luck. I've searched and tried to follow and use the tools and steps in these threads without any luck
http://forum.xda-developers.com/showthread.php?t=443431
http://forum.xda-developers.com/showthread.php?t=868109
I will donate to anyone that can either put up a step by step, which includes links to all required binaries or exes, for either Ubuntu or Windows.
or...
I will donate to anyone that can convert my image to a .rle.
Thanks
-CMYLXGO
Click to expand...
Click to collapse
did you solve this man?
Yes I need help also.
Hi i am currently taking request for initlogo.rle files
heres how.
1. pm me with your png logo and your screen size (eg. 800x480)
2. i will create your initlogo.rle file and send it back to you
3. if you like what you see please consider making a donation.
and if you cant or dont know how to decompile your boot.img etc i will do the whole process.
heres how.
1. upload your rom or your boot.img
2. pm me with a link to your rom or boot.img and attach the image you want
to replace your logo with and your screen size (eg. 800x480)
3. i will do everything and reupload your rom or boot.img and send you a link for you to download it.
IF YOU LIKE MY WORK PLEASE CONSIDER A DONATION TO KEEP ME MOTIVATED
​

Help needed with extracting the ROM

Hello.
Sorry if i might be a bit rude in this post but i'm writing this after 2 hours of messing with various tools and commands so i might one day successfully unpack the ROM and see what's inside of it.
Steps i made are:
Installed cygwin
Unpacked the stock sony ics live with walkman rom with universal extractor, and another attempt with 7zip
converted system.sin to system.img with SIN2IMG
and that's where it all stops.
i have xperia rom manager, and when i try to unpack the system.img to a folder, i get nothing but errors.
tried with flashtool to create yfft2 or whatever it's called, and open it with yaffey - didn't work.
As i'm pulling my hair out right now, i seek for additional information and guidance to finally unpack the stupid ROM.
Thank you.
Btw please, dont tell me to search for answers, because i did my research and i couldn't find a thing. If i somehow missed a thread where it is all explained, please, forgive me, and link it if it's not too hard.
[edit] almost forgot, i tried to extract with yaffsexpert with my phone, didnt work. and also sry for my lack of knowledge about this stuff, i'm trying to learn, but there's a bunch of stuff.....

[Q] Making / editing custom ROM's using Linux

I'm looking for a little bit of help with understanding something.
My ideal place to get to is to eventually provide the community here with custom roms and mods which everyone can enjoy on their devices, just like what all the greats devs do here day in day out.... but before I get there, I'm on a path of discovery. At the minute, I want to take a XDA dev's already pre worked ROM, go in to it and change a few things up.... edit the apps, maybe play with a few apks, change the ringtones etc, and then resign the ROM and flash it to my device.
I've been reading some great tutorials such as http://forum.xda-developers.com/showthread.php?t=1801690 and http://forum.xda-developers.com/showthread.php?t=1843506 which I am finding very helpful, however....
They seem to be geared towards someone working on a windows machine. I dont want to do it in Windows, I want to do it in Linux... I dont wish to use "CygWin" and I would rather do it manually than use a kitchen - I could easily follow these guides in Windows and achieve my stated aim of a slightly modified custom ROM, however, the overall goal here is to acquire knowledge, and enjoy the process as it goes along.
Now, my current understanding under Linux (Mint 13) is that I can download a recovery flashable Zip, go in to it, and just change up some of the files as I desire.... but then I get confused when it comes to repackaging the ROM prior to flashing it to my device. How would I go about doing this?
As a side note, when it seems that all development for these devices is done under Linux / Mac... why do all the newb guides steer you to Windows?
Are you asking how to rezip or how to recompile?
If you're asking about zipping up the folder, go here:
http://forum.xda-developers.com/showthread.php?t=1499885
If you're asking about recompiling, it should state how to do so on the page you got the apktool from.
Hi, thanks for your reply. I guess for now what I am asking is how to get the ROM back to a flashable zip file.
The I believe is that you need to have the ROM signed. The windows tutorials point you to a batch file script that does the signing and creates you an "update.zip" file. What id the alternative to this under linux?
Also, in the post you just provided a link to, someone says that you must also edit an update script to reflect the changes you made, such as any apks removed or added etc, where would I find this?
You need signapk.jar which I believe is included in the android sdk if not just Google and you can find it, once you have that you need a key to sign with, again Google for a testkey.
Then in your terminal you would run:
Code:
java -jar signapk.jar certificate.pem key.pk8 your-update.zip your-signed-update.zip
Sent from my PACman GT-I9100 using xda premium
Excellent, thank you very much.. will play with this later

[Q] How do I Customise My MX Android TV Firmware (Zip.File)

Hi guys im a noob to the forums and to rom customisation in general so im hoping someone can help me.
I have a generic MX dual core, and have been supplied a flash firmware and image from the supplier. This image is basic and does not contain all of the repos that i want, nor the apps that I require.
The image supplied is a zipfile and contains:
factory_update_param.aml
hd18d_mx4.zip
recovery.img
I am able to successfully restore my box with this image (so I know that the image is working fine).
Within the hd18d_mx4.zip there is:
Directotories: data, META-INF, recovery, system
files: boot.img, bootloaded.img, logo.img
I can see the all the system APK files within the system/app folder. The problem is when i try to add another APK file into this directory within the archive (in this case videomix.apk), I am not able to restore the image to the MX device.
Can anyone help me with a noobies guide to do this. I have read that the apk file has to be signed, and the zip file has to be signed also?? But im not quite sure what this means, nor how I go about doing it.
Any help or tutorials will be much appreciate. I have downloaded the APK-multi-tool but dont have a clue what I need to do
Look forward to your replies.
P.S. Im using a windows 64 bit machine and not Linux (if that makes any difference).
I'm facing the same thing, did you end up having luck with this?
If not is there anyone that can assist?

Seeking comprehensive tutorial on creating flashable zips

I have googled this for days, and I cannot seem to find a solution.
I want to find a tutorial to create a flashable zip (for both CWM and TWRP), and I am looking for something that will describe the components, the Edify script, and anything else. I am somewhat familiar with this, but can't seem to create my own.
NOTE: I do not want to use a template, or any other "starting zip". If I want to add files or components to system (fonts, boot animation, or some other mod), I want to learn how to do it from scratch: as if all I have is 7-zip, a suitable text editor, and that is it.
I have modified zip files before by extracting/editing a document, and then re-zipping, but I never have just extracted the whole file and then re-zipped it and had it work successfully.
If I have to use a device specific binary, then I need to know where to find this.
I have been working/flashing zip files for 4 years and am frustrated that I always have to use some "automated tool" or someone's zip template to start with.
I appreciate any help in advance!
Syntropic

Categories

Resources