Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: What do you think?
Argh! It did not help me! 24 16.78%
Yo! Helped me thanks! 119 83.22%
Voters: 143. You may not vote on this poll

 
Post Reply+
Tip us?
 
bangalorerohan
Old
(Last edited by bangalorerohan; 28th December 2011 at 10:11 AM.)
#1  
bangalorerohan's Avatar
Senior Member - OP
Thanks Meter 919
Posts: 1,319
Join Date: Apr 2011
Location: Bangalore,Karnataka,India
Default [HOWTO][TUT] Create a Custom ROM for Samsung Galaxy i9003

Hey there,



This is a guide on How to create a ROM


For boot sound, boot animation and themeing
Installing cygwin and Setting the kitchen up!
Finalizing , de-odexing, additional option and packing the ROM

Things you will need

-Cygwin
-Android Kitchen
-Patience
-Base ROM

--All files attached at the end--

-MagicISO

PS-> WIndows 7 users set the UAC level to minimum until you finish the whole thing. And also, make sure that nothing wxcept the META-INF folder in your ROM ins capital in letters! Just a small obseravtion in my third ROM! =P

First of all, let us extract the ROM files:

As you can see, In the folder of the XXKPH ROM, you have a system.rfs file. Copy that out to a seperate folder. In case, of any other base ROM, you can find it in the PDA file.

Now use MagicISO in order to extract the system.rfs into a seperate folder!

After that, you may find something with folders like, : app, vendor,etc,media and xbin.


My DOnation E-Mail is pleasepressthethanksbutton@ihatedonations.com



** I am back after a loooong time. So, Give me sometime to see the Developments done **
The Following 50 Users Say Thank You to bangalorerohan For This Useful Post: [ Click to Expand ]
 
bangalorerohan
Old
#2  
bangalorerohan's Avatar
Senior Member - OP
Thanks Meter 919
Posts: 1,319
Join Date: Apr 2011
Location: Bangalore,Karnataka,India
Talking Adding your apps!

Step 2

You are done with the first step!
Now, rename the folder where you have extracted system.rfs to “System” (without quotes) and move it to another folder. Call the new folder as “Custom FW”. Now create a folder called data, in which you create a sub-folder “app”. All the apps what you want to be pre-installed and can be deleted by the user go in here. (only .apk format). If you want apps which the user can not un-install, put the .apk in system/app.


My DOnation E-Mail is pleasepressthethanksbutton@ihatedonations.com



** I am back after a loooong time. So, Give me sometime to see the Developments done **
The Following 19 Users Say Thank You to bangalorerohan For This Useful Post: [ Click to Expand ]
 
bangalorerohan
Old
(Last edited by bangalorerohan; 26th August 2011 at 08:33 PM.)
#3  
bangalorerohan's Avatar
Senior Member - OP
Thanks Meter 919
Posts: 1,319
Join Date: Apr 2011
Location: Bangalore,Karnataka,India
Step 3

You may want to add custom boot sound and some themes,right? Okay! So here is the method.

Cutom Boot sound
First, navigate to /system/etc and find PowerOn.wav. This will enable you to change the boot sound. Replace it with a short tone of .wav format only. Now you,have changed the boot sound

To change the boot animation

1) Download the bootanimation and samsungani file attached below.
2) Put them in the /system/bin folder and replace the existing files there
3) Now download any boot animation, and rename the bootanimation to “sanim.zip”.
4) Now, navigate to /system/media and replace the “ODEanim” with “sanim.zip”
You are done with the bootanimation change

TO change the theme

Just replace the framework-res.apk and twframework-res.apk in the /system/framework folder


My DOnation E-Mail is pleasepressthethanksbutton@ihatedonations.com



** I am back after a loooong time. So, Give me sometime to see the Developments done **
The Following 25 Users Say Thank You to bangalorerohan For This Useful Post: [ Click to Expand ]
 
bangalorerohan
Old
#4  
bangalorerohan's Avatar
Senior Member - OP
Thanks Meter 919
Posts: 1,319
Join Date: Apr 2011
Location: Bangalore,Karnataka,India
Talking Installing Cygwin

Installing the Cygwin and Setting up the Kitchen

Download the Cygwin files attached below. Extract the zip to a folder. Now, you can see 3 icons, a read-me,a setup, and a folder. Choose the setup. Here You will choose install from local directory. Next, Navigate to the the folder of extraction of cygwin and choose the folder Cygwin_packages inside the cygwin extraction folder. Wait for some time. Then, You will come across a list of file. Click the 2-circle-arrows,untill, it displays “install”

After the procedure is complete, run the batch file. Now, minimise it and extract the android kitchen.
Keep it in some location like C:\Kitchen

Now, open the batch file window and type

cd C:\Kitchen

Wait for some time and then when the location the changed, type

./menu

As this is a HTC kitchen, you can't use all the features,

Now, go back to the folder “custom FW” and create a zip ( I repeat zip and NOT rar) of all the folder in the “Custom FW”. After that is done, navigate to the kitchen folder (C:\Ktichen) and palce the .zip in the “original_update” folder


My DOnation E-Mail is pleasepressthethanksbutton@ihatedonations.com



** I am back after a loooong time. So, Give me sometime to see the Developments done **
The Following 20 Users Say Thank You to bangalorerohan For This Useful Post: [ Click to Expand ]
 
bangalorerohan
Old
(Last edited by bangalorerohan; 27th December 2011 at 07:30 AM.)
#5  
bangalorerohan's Avatar
Senior Member - OP
Thanks Meter 919
Posts: 1,319
Join Date: Apr 2011
Location: Bangalore,Karnataka,India
Come back to the Cygwin Batch window. Now you select 1 (i.e. the first option and press enter.

Then, again press 1 twice!

Now after this is done, you can also use option 2 (rooting). You can change the ROM's name using option 8.

Step 5

De-odexing the FW.

In the batch window, choose option 0 and then choose 1.

Using this you can de-odex your FW.

Next, choose 99 to build and pack you ROM

And you are done with the custom ROM

---------------------------------------------------
Thanks to @sakindia123

Extracting and odin build
Code:
xvf ODIN_FILE.tar.md5
NOTE:.md5 is optional

Rebuilding
Code:
$ tar -H ustar -c amss boot.img csc.rfs recovery.img system.rfs >ODIN_FILE.tar
$ md5sum -t ODIN_FILE.tar >>ODIN_FILE.tar (signing the file)
$ mv ODIN_FILE.tar ODIN_FILE.tar.md5
Of course,u Have to put the name of ur file in place of ODIN_FILE
Mounting rfs(on linux)
Code:
 mkdir system_mount
$ mount -o loop system.rfs system_mount
$ cp /folder/application.apk system_mount/app/  (adding aplications)
$ rm system_mount/app/application.apk           (removing applications)
$ cp /folder/application.apk system_mount/app/application.apk  (replacing aplications)
$ umount system_mount
Regards,
Rohan Mallya! =D


My DOnation E-Mail is pleasepressthethanksbutton@ihatedonations.com



** I am back after a loooong time. So, Give me sometime to see the Developments done **
The Following 17 Users Say Thank You to bangalorerohan For This Useful Post: [ Click to Expand ]
 
bangalorerohan
Old
(Last edited by bangalorerohan; 24th February 2012 at 08:53 AM.) Reason: Credits!
#6  
bangalorerohan's Avatar
Senior Member - OP
Thanks Meter 919
Posts: 1,319
Join Date: Apr 2011
Location: Bangalore,Karnataka,India
Default The essential files! :P

For the Kitchen ( thanks to dsixida)

For cygwin
Remeber to thank and vote in the POLL!!
Custom booting files ( one you have to replace for the bootanimation before you add sanim.zip!)(samsungani and bootanimation files)
MagicISO
Credits -.-

Misledz
Ganaboy
ronhoover88
Namaless
Vivek
Erahgon


My DOnation E-Mail is pleasepressthethanksbutton@ihatedonations.com



** I am back after a loooong time. So, Give me sometime to see the Developments done **
The Following 21 Users Say Thank You to bangalorerohan For This Useful Post: [ Click to Expand ]
 
joealley
Old
#7  
Senior Member
Thanks Meter 30
Posts: 125
Join Date: Jul 2011
Very informative posts. I hope this will lead to more ROM for our cellphone.
The Following User Says Thank You to joealley For This Useful Post: [ Click to Expand ]
 
bangalorerohan
Old
(Last edited by bangalorerohan; 27th August 2011 at 05:34 AM.)
#8  
bangalorerohan's Avatar
Senior Member - OP
Thanks Meter 919
Posts: 1,319
Join Date: Apr 2011
Location: Bangalore,Karnataka,India
Talking More things! ☻☻

You can zipalign and sign the ROM in HTC Android Kitchen itself! While COmpiling your ROM, Just select the interactive method! You can do it all there!
If you want to changes the build date and all, you can open the build.prop(present in /system folder) and change the values!


My DOnation E-Mail is pleasepressthethanksbutton@ihatedonations.com



** I am back after a loooong time. So, Give me sometime to see the Developments done **
The Following 3 Users Say Thank You to bangalorerohan For This Useful Post: [ Click to Expand ]
 
bangalorerohan
Old
#9  
bangalorerohan's Avatar
Senior Member - OP
Thanks Meter 919
Posts: 1,319
Join Date: Apr 2011
Location: Bangalore,Karnataka,India
Reserved for future


My DOnation E-Mail is pleasepressthethanksbutton@ihatedonations.com



** I am back after a loooong time. So, Give me sometime to see the Developments done **
The Following 2 Users Say Thank You to bangalorerohan For This Useful Post: [ Click to Expand ]
 
Sine.
Old
#10  
Sine.'s Avatar
Senior Member
Thanks Meter 384
Posts: 585
Join Date: Jan 2011
If I may ask, do you have a source link for this or is it from you?
The road to wisdom? Well, it's plain
and simple to express:
Err
and err
and err again,
but less
and less
and less.
— Piet Hein.


p=36554582 schaggo:
“The one using the search will once rule the world.”
SGNote Int. N7000 - JB4.1.2 Stock XXLSZ w/ PhilZ 4.35 kernel
HP TouchPad - webOS 3.0.4 OC@1.5Ghz / CM9 Nightly
SGS SL i9003 - RemICS 1.7
MK802 Stock 4.0.4

 
Post Reply+
Tags
cook a custom rom, zimage
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...