[GUIDE][TUT]::Modifying & Making Your Own Custom Roms::(New Method) - Samsung Galaxy Mini

This is a detailed tutorial about modifying or making your own custom roms....but not as regular method... It is a new method...
So...lets start....
In this Guide...you will come to know how to--
Modifying rom..
Adding apps and removing..
Changing bootanimation, rom's name, fonts, ringtones...etc.
A new and easy method to make the rom....
::Requirements::
Galaxy Mini..
A windows PC.
Some basic knowledge..
Time and Patience(most imp)
::Important Tools::
7zip or any other zip manager>>Download Here<<
Update Zip Packager>>Download Here<<
Notepad++ >>Download Here<<
Dsixda's Kitchen..(OPTIONAL)..>>XDA Link<<
::About "BaseRom".zip::
Now, suppose, your base rom is CyanogenMod7.zip...
So...when u will extract that zip...u will see there...
META-INF (Folder)
system (Folder)
boot.img
META-INF :
This folder contains the files which are related to your recovery....in simple words...these files guide your recovery to flash zip, set permissions and some other things...
So...the change that we want here is to add the text that our recovery shows while flashing the rom...look in the extras for the tut...
boot.img :
This file contains Kernel of ur rom....and it also contains splash screen of ur rom....which u can edit...!! Look in extras..
NOW, the main thing..
::Main Tutorial::
Download your base rom and flash it....(without editing anything).
Flash Gapps..
Flash some other material such as Bravia Engine, Audio Enhancements, Scripts, Tweaks, etc
Flash each n every thing that you want in your rom...
Flash any theming material..which u want in ur rom
If you are modifying some system apps such as phone.apk, systemui.apk, framework-res.apk....then modify them one by one and flash them..
When you are done your theming, tweaking, and rest of the things...(now, you are running your rom having your desired theme, scripts, tweaks...)
Now....go to CWM recovery and do a Nandroid backup..
After the backup is completed...locate to the folder in sd-card where the backup file is created..(SD-Card>clockworkmod>backup>.....)
In this "backup" folder...you will see a folder named as the date when you have taken the backup..
In that folder...you will see a file - system.ext4.tar.
Copy that system.ext4.tar file in your PC...
Extract the file...you will see a folder - system
Now, this "system" folder is your Rom's system folder.. having all scripts, tweaks and theming...
Just delete the folder "lost+found" in that system folder and take this folder to the folder where your META-INF and boot.img are...
IMPORTANT:You have to delete "xbin" folder from the extracted system folder and then u have to copy and paste the original xbin folder to that folder..
::Extras::
Editing build.prop :
Locate to the system folder....open build.prop and edit it as you want by adding lines to it...refer this link...
Adding and Removing Apps :
Under system>>app folder copy the apps that you want to add to your rom...also remove the apps that you want...but click here to know the list of apps that can be removed...
Adding UI print to the meta-inf :
Locate to the file updater-script (META-INF>com>google>android>updater-script).
Open the file updater-script with Notepad++...
Scroll down to the last line of the matter...
Copy and paste the following code exactly below the last line
ui_print("Have A Nice Day");
Click to expand...
Click to collapse
You should type your own desired text at the place of Have A Nice Day..(with "....")
Done!!
After u have done....leave the META-INF folder as it is....for now..
Editing Splash Screen :
Extract the boot.img by using dsixda's kitchen....it is very easy...
After that....refer to this LINK for editing boot splash screen......and then repack the boot.img again using dsixda's kitchen
Editing boot animation of rom :
Download your desired bootanimation.zip.
Rename it "bootanimation.zip".
Now, locate to the folder system>media
You will see a file bootanimation.zip there..
Replace that file with your desired boot animation..(renamed)..
Done!!
Adding ringtones :
Take your ringtone file...it should be in .ogg format..If not then convert it to .ogg..
Locate to the folder system>media>audio>ringtones>
Copy and paste your .ogg files here in ringtones folder..
You can also change notifications, alarm and UI tones like this..
Changing the Fonts :
Take your desired font.ttf file and rename it as DroidSans.ttf..
Locate to the folder system>fonts>
Now, replace the file DroidSans.ttf with your desired DoridSans.ttf...
To change the lock screen clock font...replace the Clocktopia.ttf with your desired one..(rename first)..
Changing the ROM's name :
Note: It will be shown in settings>about phone>
Open build.prop with Notepad++
Find the line-
ro.cm.version="Base rom's name"
Click to expand...
Click to collapse
Type your rom's name instead of "Base rom's name"..
Save..
Done!!
Theming Your Rom :
Refer to the following links for theming guides-
http://forum.xda-developers.com/showthread.php?t=1422116
http://forum.xda-developers.com/showthread.php?t=916814
http://forum.xda-developers.com/showthread.php?t=1342895
http://forum.xda-developers.com/showthread.php?t=821638
http://forum.xda-developers.com/showthread.php?t=1469987
Now you have your MODIFIED : -
META-INF (folder)
system (folder)
boot.img
::Creating your ROM.zip::
Extract the provided UpdateZipPackager.zip
You will see->>placehere(folder)
>>others(folder)
>>script.bat
Now, copy your modified META-INF, system and boot.img in the folder "placehere" in UpdateZipPackager..
Run the script.bat in UpdateZipPackager..
It will ask something...type "n" and press enter..
Now, you will see a list in the script window...
Choose option 2 and press enter..
It will create an update.zip...
This is your roms zip..
Flash your rom and upload it to XDA..!!! Enjoy..!!
Plz...press thanks if I helped you with this guide...

-::Reserved::-

-:::Reserved:::-

-::::Reserved::::-

-:Reserved:-

nice guide dude!
gonna try this wen i m free from my school homeworks!
Sent from my GT-S5570 using Tapatalk 2

ronakmachhi said:
nice guide dude!
gonna try this wen i m free from my school homeworks!
Sent from my GT-S5570 using Tapatalk 2
Click to expand...
Click to collapse
Ok..bro..but...
I have forgot that word "homework" from...last year...lol...

oj_buddy said:
Ok..bro..but...
I have forgot that word "homework" from...last year...lol...
Click to expand...
Click to collapse
bt unfortunately i ll have to concentrate on that as i m in 12th grade-science stream!
Sent from my GT-S5570 using Tapatalk 2

Great tutorial OJ.....
This should help many who want to create their own roms, but I also fear xda will now get flooded with themed or modified roms.

thats an awesome tutorial buddy
Thanks a lot
-Rik(Rittik)

Greats,, its fast to make a custom rom

all app data will be in the rom that we have creat?????causs i don't want my sms and other thing to be in the rom that i will make.....pleazzz anwers....

lackhoo said:
all app data will be in the rom that we have creat?????causs i don't want my sms and other thing to be in the rom that i will make.....pleazzz anwers....
Click to expand...
Click to collapse
NO, it won't be there.... ALl your apps and data will not be in this rom as we've not included the data folder data.ext4.tar (which is the one to store all your data).
SO, don't worry much about it.

all app data will be in the rom that we have creat?????causs i don't want my sms and other thing to be in the rom that i will make.....pleazzz anwers....
Click to expand...
Click to collapse
Use titanium Backup to backup your apps and Some SMS backup app from market...many of them are available..Then after installing neW ROM just restore
em..thats how i do it
easy and simple
A problem i am facing is..i have created around 2-3 update.zip like the way mentioned above...following every procedure...but while Installing througg CWM it says...Installation aborted
-Rik(Rittik)

yagya said:
Great tutorial OJ.....
This should help many who want to create their own roms, but I also fear xda will now get flooded with themed or modified roms.
Click to expand...
Click to collapse
Thanks man...
But...r u serious yagya..?? Only source builds..???... how do you know it..??
Sent from my GT-S5570 using Tapatalk

Rittik said:
thats an awesome tutorial buddy
Thanks a lot
-Rik(Rittik)
Click to expand...
Click to collapse
Thanks...
Sent from my GT-S5570 using Tapatalk

Rittik said:
Use titanium Backup to backup your apps and Some SMS backup app from market...many of them are available..Then after installing neW ROM just restore
em..thats how i do it
easy and simple
A problem i am facing is..i have created around 2-3 update.zip like the way mentioned above...following every procedure...but while Installing througg CWM it says...Installation aborted
-Rik(Rittik)
Click to expand...
Click to collapse
Check your framework-res.apk for errors...as well as...check your meta-inf...try with an unedited meta-inf...and also..dont forget to replace that xbin folder with the original one...from base rom...also delete lost + found folder taken from system.ext4.tar ...try everything freshly..dont make anything wrong in update zip packager..in options selection...u will surely get success..
Sent from my GT-S5570 using Tapatalk

After I did the nandroid backup and went my backup folder, I only saw a "system.img" file inside the other folder - no "system.ext4.tar" ...what should I do in this case?

Oj-buddy, I am trying to follow your guide to make a custom ROM, but I find myself in a spot. You said that after I do the nanadroid backup, I'm supposed to go to: sdcard/clockworkmod/backup/(dated folder which contains my rom) where I will see "system.ext4.tar", but that's not what I see ;these are the files I see: android_ secure.img, boot.img, cache.img, data.img, nandroid.md5, recovery.img, sd-ext.img, system.img.....what should I do at this point?

jayrome876 said:
After I did the nandroid backup and went my backup folder, I only saw a "system.img" file inside the other folder - no "system.ext4.tar" ...what should I do in this case?
Click to expand...
Click to collapse
You should use latest CWM recovery for it.....
or you can also extract system.img with magicISO tool...
both system.img and system.ext4.tar are same files..

Related

[Q] I want your help.......?

hi
I have original 2.1 (eclair mod ) installed in my milestone
and i want to customize it ( change status bar, add and remove apps.......)
without installing new custom rom.
so can any help me how to do this ?
thanks in advance
i use 7-Zip to open .apk then you can edit/replace file in apk file
to change or edit .9.png file you need other program like 9patch or draw9patch to save in good format.
the main file to edit is framework-res.apk practically all theme is in that file
all system file does not need signing but all other should be sign before you put back in phone and don't forget to zipaling all file that you touch/edit.
many tutorial are available on the net on how to theme android for more in deep detail.
thanks a lot
I'll try
one more thing please
how to extract the current rom that i am using it and put it into update.zip
like cm6 so i can modify it ( like i want in the previous thread )
thanks in advance
hearts king101 said:
thanks a lot
I'll try
one more thing please
how to extract the current rom that i am using it and put it into update.zip
like cm6 so i can modify it ( like i want in the previous thread )
thanks in advance
Click to expand...
Click to collapse
well first do a nandroid backup of your rom then copy to pc, now extract system.img with unyaffs.
then you have all system file of your rom to play with.
after all your change copy file to sdcard/openrecovery/update/test-update-nosign.zip, don't forget to remove babble
i am using OpenRecovery_v1_46
hope it help
HO!NO! said:
well first do a nandroid backup of your rom then copy to pc, now extract system.img with unyaffs.
then you have all system file of your rom to play with.
after all your change copy file to sdcard/openrecovery/update/test-update-nosign.zip, don't forget to remove babble
i am using OpenRecovery_v1_46
hope it help
Click to expand...
Click to collapse
I did not understand the red part
if it's a program please upload it
if it's not can you tell me what is it?
thank you for your reply
unyaffs is a program to extract files from a yaffs file system image
google it you will find it for sure
I'm so sorry
i found it but i have no idea how to use it
sorry again
hearts king101 said:
I'm so sorry
i found it but i have no idea how to use it
sorry again
Click to expand...
Click to collapse
look for unyaffs.exe
then in a cmd windows type: unyaffs system.img
thank you so much
I've done it and i hope it works
but regarding the nandroid backup there are another files like
boot,bpsw,data.img........
are these files important in making custom rom?
thanks again

[Q]I9001 Battery mod

Hello everyone,
Can someone please inform and post a thread link of a battery mod that works on the i9001? By battery mod I mean small zip file that is installed from recovery and changes the stock battery meter
You can make it yourselt.
1. Use Root Explorer to get your framework-res.apk file
2. Go to http://uot.dakra.lt/ to customize it yourselt.
3. Go to http://forum.xda-developers.com/showthread.php?t=1253707 to download the Root-i9001-Signed.zip
4. Put the modified framework-res.apk in the above zip file and delete the unneeded files.
5. Update the updater-script file, resign the zip file.
6. Flash the zip file in recovery.
Do you like this one?
quest221 said:
You can make it yourselt.
1. Use Root Explorer to get your framework-res.apk file
2. Go to http://uot.dakra.lt/ to customize it yourselt.
3. Go to http://forum.xda-developers.com/showthread.php?t=1253707 to download the Root-i9001-Signed.zip
4. Put the modified framework-res.apk in the above zip file and delete the unneeded files.
5. Update the updater-script file, resign the zip file.
6. Flash the zip file in recovery.
Do you like this one?
Click to expand...
Click to collapse
If you use manveru0's kernal and recovery you can now flash the update files as they come from the kitchen
quest221 said:
You can make it yourselt.
1. Use Root Explorer to get your framework-res.apk file
2. Go to http://uot.dakra.lt/ to customize it yourselt.
3. Go to http://forum.xda-developers.com/showthread.php?t=1253707 to download the Root-i9001-Signed.zip
4. Put the modified framework-res.apk in the above zip file and delete the unneeded files.
5. Update the updater-script file, resign the zip file.
6. Flash the zip file in recovery.
Do you like this one?
Click to expand...
Click to collapse
Hmm... yes, nice, but I'm not in to designing things. I was looking for something that has been already created
what's the version of your Rom?
quest221 said:
what's the version of your Rom?
Click to expand...
Click to collapse
Firmware version : 2.3.4
baseband version I9001XXKP4
Kernel Version : [email protected] #7
Build Number : GINGERBREAD.XXKP4
I use Go launcher (from my opinion it's the best), if you think otherwise please post the better launcher, I am opened to experiment others.
Many thanks,
Ciprian
I don't have a I9001XXKP4 Rom in my hard drive. If you can send your your framework-res.apk, I can make one for you.
quest221 said:
I don't have a I9001XXKP4 Rom in my hard drive. If you can send your your framework-res.apk, I can make one for you.
Click to expand...
Click to collapse
I would like something like http://img225.imageshack.us/img225/9943/smoothbatt.png if it is possible.
I have attached framework-res.apk
opps a
hey guys!
just used this. twice great kitchen, really revamped some of the more boring icons on stock roms. thanks for the tip!!
1framework-res_I9001XXKP4_signed.zip is the file that I updated the updater-script so you can flash it in the in-build recovery.
1framework-res_I9001XXKP4_original_signed.zip is your original file. If there are any issues, you can flash it back in the in-build recovery.
How to:
Copy the zip file to the internal SD card, not the external one, go to recovery, flash it.
quest221 said:
1framework-res_I9001XXKP4_signed.zip is the file that I updated the updater-script so you can flash it in the in-build recovery.
1framework-res_I9001XXKP4_original_signed.zip is your original file. If there are any issues, you can flash it back in the in-build recovery.
How to:
Copy the zip file to the internal SD card, not the external one, go to recovery, flash it.
Click to expand...
Click to collapse
Thanks, exactly what I needed. I flashed it and all is ok
quest221 said:
1framework-res_I9001XXKP4_signed.zip is the file that I updated the updater-script so you can flash it in the in-build recovery.
1framework-res_I9001XXKP4_original_signed.zip is your original file. If there are any issues, you can flash it back in the in-build recovery.
How to:
Copy the zip file to the internal SD card, not the external one, go to recovery, flash it.
Click to expand...
Click to collapse
can i use it on 2.3.6 rom?
nope because you will end up in a bootloop by flashing this
its only for XXKP4
urm, Ive tried to do as you told in post number 2(by cooking it according to my own preference)
but my problem starts from step number 5
5. Update the updater-script file, resign the zip file.
Click to expand...
Click to collapse
I already received the cooked file
but I dont know how to change the update script and end up failing to update using the zip file.
can you please help me?
or link me to a place that really can help me to learn better on changing the update script.
try this one, I updated the updater-script, you can compare it with the one from kitchen.
PS: Forgot to update the update-binary file, now try the new one. It should work.
Thanks!!!! But I got an error that states
E:error in /tmp/sideload/package.zip
(status 2)
I wonder whats wrong.
looked in a thread
http://forum.xda-developers.com/showthread.php?t=1194245&page=3
and from what I understand it seems to be a problem with the update binary. But Im just an end user and this is too much for me.
anyway maybe Ill try to flash the cranium ROM and try to cook again a new one and use your update script.
cheers!!
Hi,
Is there any posibility to change framework-res.apk file without CWM? I don't want to instal CWM becouse of it has a problem with front side cam and I need this cam. It's can't be overwritten when the phone works. Maybe some adb and push command is possible.
Could you help me by describing the whole procedure? Sorry for my English.
@quest221
Can you maybe make one for Android 2.3.5 like the screenshot @ page 1?
I have baseband I9001XXKPF, Build XXKPG
I update the zip file with the new update-binary file.
Is there any posibility to change framework-res.apk file without CWM?
Click to expand...
Click to collapse
Yes, I just use the recovery from Samsung, not the third-party.
Check the post #2, that's the steps. Also replace the update-binary file with the one in my zip file.
Can you maybe make one for Android 2.3.5 like the screenshot @ page 1?
Click to expand...
Click to collapse
Upload your framework-res.apk file.

Help.

Holla amigos...
I need help........again.
See, I'm creating my own rom and my base uses blackhawk. I want to change this to firekernel. I searched xda and Google but I couldn't find anything. All they talk about is how to flash another kernel. I want to know how to include it in rom before flashing. And also, could someone tell me the .XML that is used for Modding the lock screen.
Sent from my GT-S5830 using xda app-developers app
Inside the flashable zip (any flashable zip) you'll find several folders and files. To see where each file gets flashed to, look inside the META-INF folder and search for a file called "updater script".
Its the updater script the one that indicates where each part of the zip will be flashed, so open it with a text editor, take notes where each file ends up, and copy them to their location inside your rom.
dxppxd said:
Inside the flashable zip (any flashable zip) you'll find several folders and files. To see where each file gets flashed to, look inside the META-INF folder and search for a file called "updater script".
Its the updater script the one that indicates where each part of the zip will be flashed, so open it with a text editor, take notes where each file ends up, and copy them to their location inside your rom.
Click to expand...
Click to collapse
And at the start, through dsixda kitchen updater script was converted into update script. Is it the same? Okk. And what about including scripts, I want adrenaline engine. I downloaded the zip. Ignored the Meta -inf and copied the system folders inside the system folder of the working project....Am I right?
Sent from my GT-S5830 using xda app-developers app
If you're using the kitchen its OK, you can add any flashable zip that way, copying the files and folders to their respective location inside your Project. Checking the updater script is only necessary when in doubt of where each thing goes.
Don't use kitchen's updater script and binaries.They won't work,could even brick the device.To change kernel,download firekernel and replace the boot.img in that pack with the one in your rom.Boot.img is the kernel.Scripts go in init.d
Prawesome said:
Don't use kitchen's updater script and binaries.They won't work,could even brick the device.To change kernel,download firekernel and replace the boot.img in that pack with the one in your rom.Boot.img is the kernel.Scripts go in init.d
Click to expand...
Click to collapse
Hey. Thanks for that. Please help me out here: http://forum.xda-developers.com/showthread.php?p=28891130#post28891130

Tweaking rom - begginer question ;)

Hi!
Since xda-univeristy arised i thought it would be nice to learn something about green droid
I am going to learn about tweaking and theming:and here comes dozens of my questions:
1. I have downloaded Official ics repack by N00BY0815
2. I extracted it and i have:
2 folders ( META-INF and System)
2 files boot.ing and system.img
How can i extract this system.img ?
I tried to use 7zip but it says that" it cannot open it as archive"
Thanks in advance and please for leniency
it can be opened with Diskinternals Linux Reader. if not. use "sgs2toext4.jar" to convert it to .img.ext4 and then open it
Nihiliu said:
Hi!
Since xda-univeristy arised i thought it would be nice to learn something about green droid
I am going to learn about tweaking and theming:and here comes dozens of my questions:
1. I have downloaded Official ics repack by N00BY0815
2. I extracted it and i have:
2 folders ( META-INF and System)
2 files boot.ing and system.img
How can i extract this system.img ?
I tried to use 7zip but it says that" it cannot open it as archive"
Thanks in advance and please for leniency
Click to expand...
Click to collapse
Everything for theming is in the System folder. All the APK's(Applications) Boot.img is probably the recovery image it installs. But to theme you would need to decompile the apks in the system folder
Everythink was in system folder in gingerbread, in this system folder i have only app folder with su.apk and bin folder with su file.
So files i need are in system.img
@broodplank1337 thanks for help, program works well, now i can begin
But first only one question, now i can extract files, but can i pack them using same tool ?
Nihiliu said:
Everythink was in system folder in gingerbread, in this system folder i have only app folder with su.apk and bin folder with su file.
So files i need are in system.img
@broodplank1337 thanks for help, program works well, now i can begin
But first only one question, now i can extract files, but can i pack them using same tool ?
Click to expand...
Click to collapse
I don't know much about S2 but can't you just use 7zip to make it an archive and flash it through rrecovery?
"Anger and intolerance are the enemies of correct understanding." -Mahatma Gandhi
Nihiliu said:
How can i extract this system.img ?
Click to expand...
Click to collapse
Hi. You can use dsixda's Android Kitchen for that.
Nihiliu said:
Everythink was in system folder in gingerbread, in this system folder i have only app folder with su.apk and bin folder with su file.
So files i need are in system.img
@broodplank1337 thanks for help, program works well, now i can begin
But first only one question, now i can extract files, but can i pack them using same tool ?
Click to expand...
Click to collapse
You can pack them with the android kitchen, install the zip, then you do this in terminal emulator to make the system.img file:
Code:
su
cat proc/mounts
now look up the system partition, in my case it's mmcblk0p14
Code:
dd if=/dev/block/mmcblk0p14 of=/sdcard/system.img BS=4096
This will dump the system partition to system.img (for example when making an odin image)

STOCK ROM (tar file to zip file)

If someone can teach me how convert the rom.... I really appreciate it.
Use this method..
rizal2105 said:
If someone can teach me how convert the rom.... I really appreciate it.
Click to expand...
Click to collapse
Download a valid update.zip to
use as a template - for example,
my CyanogenMod 0.7.
Extract the zip to a new folder and
rename it - let's call the folder
updatezip .
Inside the updatezip folder, delete
the system folder and boot.img
file (as these are the
CyanogenMod files that you don't
want).
For the ROM you want to convert,
extract the contents of its
system.rfs image to a new folder
called system.
Copy this new system folder to the
updatezip folder.
Copy the boot.img file from your
ROM to the updatezip folder.
Re-zip the contents of the
updatezip folder (but not the
updatezip folder itself). If you see
warnings about symlinks not
being added, don't worry - we
don't want to add them anyway.
You need to have some Linux shell
experience in order to do this. You
can't do it from Windows.
rizal2105 said:
If someone can teach me how convert the rom.... I really appreciate it.
Click to expand...
Click to collapse
Use dsxida kitchen
Search about it.
Sent from my Nexus 5 using Tapatalk 2
Thanks for to all of your concerns. I really appreciated.
@sangalgojoe
Thanks Dude???
thanks for this i was seraching for this

Categories

Resources