Related
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..
I want to add firekernel into VO-1 CM7 rom but i wanna ask if it's ok to just DRAG and DROP kernel files into rom.zip.
It's safe or not ?
Install ROM and then install fire kernel zip....
pvrx said:
Install ROM and then install fire kernel zip....
Click to expand...
Click to collapse
I want to integrate kernel in rom ...
Its safe. Drag and drop boot.img and system files from the kernel's flashable zip into the rom's zip.
tj_droid said:
Its safe. Drag and drop boot.img and system files from the kernel's flashable zip into the rom's zip.
Click to expand...
Click to collapse
Thanx man !
tj_droid said:
Its safe. Drag and drop boot.img and system files from the kernel's flashable zip into the rom's zip.
Click to expand...
Click to collapse
What do u mean?
Do u mean that I can just paste all the kernel files into Rom.zip via WinRAR?
I had tried it today,but it just made my device bootloop...
SOS!!!
Dragonkind said:
What do u mean?
Do u mean that I can just paste all the kernel files into Rom.zip via WinRAR?
I had tried it today,but it just made my device bootloop...
SOS!!!
Click to expand...
Click to collapse
Yes, drag and drop kernel files work 100%.
Just drag the right kernel ...
I'm not a "recognised dev" and honestly I'm only a bit better than a noob but usually to create a flashable rom i do this things:
1)i customize my rom and i flash the kernel i want..
2)i do a nandroid backup, i extract the /system folder which is ".tar" using "zArchive" (I'm not sure about the name you can search on play store "tar opener")
3)i "steal" a meta-inf folder from other rom and finally i create a zip file with a)boot.img; b)meta-inf; c)system.
To do this i don't need to switch my computer on!!
Inviato dal mio GT-S5830 con Tapatalk 2
not available
Make sure you use Notepad++ to edit the updaterscript. If you have problems. Take an updater-script from a working rom and see if it flashes successfully.
---------- Post added at 09:34 AM ---------- Previous post was at 09:33 AM ----------
Copy the entire META-INF folder from any rom and paste it in your rom's zip.
EG- If your rom is based on cm7, copy cm7's meta-inf
I copied META-INF from Adrenaline ROM
And it didn't work
assert failed:raw_boot_img
Could it be a kernel problem (boot.img)
Sent from my GT-S5830 using xda premium
Which boot.img are you using?
You need to use a boot.img from a custom kernel, stock boot.img wont work.
Mate Upload Your Rom and PM it to me and i'll look at what is wrong if u like.
Are you sure you never used any of the Dsixda kitchen tools?
Because they are not compatible with the Ace.
Plus, I hope you never converted it into update-script.
Is your rom CM7 based, or stock based?
Im using stock boot.img
I thought it would work... I don't like custom kernels like nims or CF-Root.
As soon as I get home I'll send you ROM.
It was originally update-script and changed with dsixda kitchen to updater-script.
Stock based
Sent from my GT-S5830L using xda premium
Tovagulet said:
Im using stock boot.img
I thought it would work... I don't like custom kernels like nims or CF-Root.
As soon as I get home I'll send you ROM.
It was originally update-script and changed with dsixda kitchen to updater-script.
Stock based
Sent from my GT-S5830L using xda premium
Click to expand...
Click to collapse
So that's the problem.
Dsixda scripts are not compatible with the Ace.
did the stock rom u are basing this rom on have a Meta-Inf. or was it from a system.img
Tovagulet said:
Im using stock boot.img
I thought it would work... I don't like custom kernels like nims or CF-Root.
As soon as I get home I'll send you ROM.
It was originally update-script and changed with dsixda kitchen to updater-script.
Stock based
Sent from my GT-S5830L using xda premium
Click to expand...
Click to collapse
After creating zip usi.g dsixda kitchen. Extract zip and copy meta-inf folder from.other rom and replace. Stock kernel wont work. Extract the zip of any custom kernel, copy system folder and boot.img and paste in the root directory of extracted files of rom. Zip back everything. It will work.
tj_droid said:
After creating zip usi.g dsixda kitchen. Extract zip and copy meta-inf folder from.other rom and replace. Stock kernel wont work. Extract the zip of any custom kernel, copy system folder and boot.img and paste in the root directory of extracted files of rom. Zip back everything. It will work.
Click to expand...
Click to collapse
Yes exactly.
Do right as he said and your rom will boot.
Cheers.
tj_droid said:
After creating zip usi.g dsixda kitchen. Extract zip and copy meta-inf folder from.other rom and replace. Stock kernel wont work. Extract the zip of any custom kernel, copy system folder and boot.img and paste in the root directory of extracted files of rom. Zip back everything. It will work.
Click to expand...
Click to collapse
So I just replace boot.img with a custom kernel and start building from that?
or after creating the .zip I also have to copy the META-INF from another ROM?
Tovagulet said:
So I just replace boot.img with a custom kernel and start building from that?
or after creating the .zip I also have to copy the META-INF from another ROM?
Click to expand...
Click to collapse
Just replace META-INF in your rom with META-INF from Blackhawk(if stock rom) and make necessary edits.Your rom will work perfectly.I personally haven't had any problem by using stock kernel.
POTATO!!!!
Tovagulet said:
So I just replace boot.img with a custom kernel and start building from that?
or after creating the .zip I also have to copy the META-INF from another ROM?
Click to expand...
Click to collapse
Ok. Read carefully.
After creating the zip via dsixda kitchen. Close it and dont touch it at all. The follow the steps from my last comment.
Buddy.
Just upload your meta-inf..
and i'll look into it.
Got this problem before , it's because the assert command in updater-scripts do not support boot.imgs larger than 4MB .
Just remove the assert() and replace the commands in the proper format (replace commas at the end of command with semi-colons) as well as grab a proper update-binary , your boot.img should work .
Sent from Ursa's claws.
CallMeVentus said:
Got this problem before , it's because the assert command in updater-scripts do not support boot.imgs larger than 4MB .
Just remove the assert() and replace the commands in the proper format (replace commas at the end of command with semi-colons) as well as grab a proper update-binary , your boot.img should work .
Sent from Ursa's claws.
Click to expand...
Click to collapse
I'm working on a Samsung Galaxy GT-B5510, having the same problem trying to install custom ROMs and kernels. All failing with the same error you describe here. However, when I edit the script and rerun it, it does not throw an error but it looks like the kernel is not replaced. The only thing I didn't do was change the update-binary. What do you mean by a "proper" one?
Thanks.
MrRimmer said:
I'm working on a Samsung Galaxy GT-B5510, having the same problem trying to install custom ROMs and kernels. All failing with the same error you describe here. However, when I edit the script and rerun it, it does not throw an error but it looks like the kernel is not replaced. The only thing I didn't do was change the update-binary. What do you mean by a "proper" one?
Thanks.
Click to expand...
Click to collapse
The ones inside the custom ROMs where flashing a custom kernel has been a success in
I give up writing anymore signatures.
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)
Hi there guys, today i shall show you how to make a flashable zip from your cwm backup!
REQUIREMENTS:
Windows OS
The Nandroid Backup
A tool(not mine, attatched below)
Brain
Now, copy all files from your backup to the folder where you extracted the tool.
Now it should look somewhat like this:
Code:
.android_secure.vfat.tar.
nandroid.md5
boot.img
cache.yaffs2.img
data.yaffs2.img
recovery.img
system.img
bkp2zip.bat
unyaffs.exe
cygwin1.dll
Run the "bkp2zip.bat".
Now there should be 3 files:System,Data and boot.img
now zip those three files.........And you should have a flashable update.zip!
TESTED METHOD!
Please note; to prevent confusion this will only work on CWM based backups not TWRP ones.
russell664 said:
Please note; to prevent confusion this will only work on CWM based backups not TWRP ones.
Click to expand...
Click to collapse
I have specified cwm backup bro, but still thanks. This will help avoid any further confusion
Segmentation Fault
<CyberAnarchy> said:
Hi there guys, today i shall show you how to make a flashable zip from your cwm backup!
REQUIREMENTS:
Windows OS
The Nandroid Backup
A tool(not mine, attatched below)
Brain
Now, copy all files from your backup to the folder where you extracted the tool.
Now it should look somewhat like this:
Code:
.android_secure.vfat.tar.
nandroid.md5
boot.img
cache.yaffs2.img
data.yaffs2.img
recovery.img
system.img
bkp2zip.bat
unyaffs.exe
cygwin1.dll
Run the "bkp2zip.bat".
Now there should be 3 files:System,Data and boot.img
now zip those three files.........And you should have a flashable update.zip!
TESTED METHOD!
Click to expand...
Click to collapse
Hello CyberAnarchy,
When i tried to zip that system.img using unyaffs i got a error "Segmentation Fault (Memory Dump made)"
How can i fix this, i use the latest android 4.4 zip package downloaded via sdk manager.
Greetings Niels Koomans.
Flashable zip???
Can u make us a tutorial on making an apk flashing zip plssssssss:laugh:
<CyberAnarchy> said:
Hi there guys, today i shall show you how to make a flashable zip from your cwm backup!
now zip those three files.........And you should have a flashable update.zip!
TESTED METHOD!
Click to expand...
Click to collapse
no need to sign this zip file? just zip it normally? tnx...