Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE]How to make a custom rom

OP Spex

21st April 2012, 05:44 PM   |  #1  
Spex's Avatar
OP Recognized Contributor / Recognized Themer
Flag Zagreb
Thanks Meter: 2,420
 
2,227 posts
Join Date:Joined: Oct 2011
Donate to Me
More
Hey guys
i made this guide for new users that want to learn something about android development and make their own custom rom
*NOTE:this guide is made for new users, and here u will only learn how to mod custom rom not how to build it from source

Things u need are:
  • "7zip" or "winrar" or "winzip"
  • base rom
  • patience
  • notepad
  • and signer (get it here)


Things u see when extract rom:

1.META-INF
2.system
3.boot.img


U wont need to touch "META-INF" and "boot.img" so open "system" folder.
There u see many folders (and build.prop) but since this is guide for new users we gonna rely only on this folders:


  • app
  • fonts
  • framework
  • media
  • some other folders if u want to use scripts ˙(gonna teach u how just continue reading xD)

Now go to "app" folder
there u see many applications and maybe .odex files
here choose what u want to delete (*NOTE- if u delete application u should delete .odex file)
here is list which apps u can delete
*NOTE-make sure that if u deleted launcher that u replace it with your desired launcher

If u want to change fonts, framework and theme system ui then go to uot kitchen .U will just have to copy and replace files


build.prop
this is where u can change your roms name and add some tweaks

to change roms name u have to change this line
ro.modversion="here write your roms name"

*NOTE-without "" xD
here are some tweaks for build.prop tweaks
just copy<paste them
Quote:

# Signal Tweaks
ro.ril.hsxpa=2
ro.ril.gprsclass=10
ro.ril.hep=1
ro.ril.enable.dtm=1
ro.ril.hsdpa.category=10
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=5

# NetSpeed Tweaks
net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960

# Google DNS Tweak
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4
net.dns1=8.8.8.8
net.dns2=8.8.4.4

# Photo And Video Quality
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
ro.media.enc.jpeg.quality=100

# Touch Responsiveness
debug.performance.tuning=1
video.accelerate.hw=1

# Scrolling Responsiveness
windowsmgr.max_events_per_sec=500

# Call Tweaks
ro.telephony.call_ring.delay=0
ro.lge.proximity.delay=25
mot.proximity.delay=25

# Power Save Tweaks
ro.ril.disable.power.collapse=1
pm.sleep_mode=1

# Performance Tweaks
ro.kernel.android.checkjni=0
ro.config.nocheckin=1

# Disables Debug Icon On Status Bar
persist.adb.notify=0

Scripts

to use scripts like Adrenaline™ Engine | 3.0 | or SlaidyBoost-V2.3
u just have to copy files from folders to the same folder
example for slaidy boost:
when u extract it u will see:
META-INF *folder
system *folder

navigate to "system"
and copy files from "etc" to "etc" rom
*NOTE- copy just files u see in folder not whole folder
and then copy files from "xbin" to xbin in your rom
Last edited by Spex; 28th April 2012 at 02:33 PM.
The Following 89 Users Say Thank You to Spex For This Useful Post: [ View ]
21st April 2012, 05:45 PM   |  #2  
Spex's Avatar
OP Recognized Contributor / Recognized Themer
Flag Zagreb
Thanks Meter: 2,420
 
2,227 posts
Join Date:Joined: Oct 2011
Donate to Me
More
1.Download base rom
-its best to take stock cyanogenmod that isnt already modded or some stock based
2.Extract rom with 7zip or winzip
3.Go to /./"rom"/system/app and delete apps u will replace or just delete
-its best to make rom as light as it can get (list of apps u can delete is given above)
4.Replacing bootanimation
-download bootanimation u want to use and rename it to "bootanimation"
-delete animation u find in /./"rom"/system/media and then paste bootanimation u downloaded

5.Adding scripts
-everything is explained in above post
6.Giving your rom name
-to change roms name u have to change this line in build.prop
ro.modversion="here write your roms name"
*NOTE-without "" xD

7.Adding build.prop tweaks
-explained in above post
8.Compress it in .zip
9.Sign it with signer given above
Last edited by Spex; 22nd April 2012 at 09:43 AM.
The Following 44 Users Say Thank You to Spex For This Useful Post: [ View ]
21st April 2012, 05:50 PM   |  #3  
vishal007's Avatar
Senior Member
Flag Dehradun
Thanks Meter: 216
 
1,144 posts
Join Date:Joined: Sep 2011
More
Plz also post tut for making kernel and rom from source in future
21st April 2012, 05:58 PM   |  #4  
Spex's Avatar
OP Recognized Contributor / Recognized Themer
Flag Zagreb
Thanks Meter: 2,420
 
2,227 posts
Join Date:Joined: Oct 2011
Donate to Me
More
Quote:
Originally Posted by vishal007

Plz also post tut for making kernel and rom from source in future

I dont know to build from source
but there are some guides i think
The Following 7 Users Say Thank You to Spex For This Useful Post: [ View ]
21st April 2012, 06:13 PM   |  #5  
Member
Thanks Meter: 8
 
44 posts
Join Date:Joined: Aug 2011
Thank you mv_style. Good source for beginners.
21st April 2012, 06:24 PM   |  #6  
Spex's Avatar
OP Recognized Contributor / Recognized Themer
Flag Zagreb
Thanks Meter: 2,420
 
2,227 posts
Join Date:Joined: Oct 2011
Donate to Me
More
Quote:
Originally Posted by winkan

Thank you mv_style. Good source for beginners.

np
after u master this
things will go by them self
The Following 2 Users Say Thank You to Spex For This Useful Post: [ View ]
21st April 2012, 06:27 PM   |  #7  
Filipm95's Avatar
Junior Member
Thanks Meter: 1
 
24 posts
Join Date:Joined: Feb 2012
More
How to unpack boot.img
Hello.
This guide is awsome, but. How to unpack boot.img? I can't do that...
I have a backup of my Rom. Inthis backup is boot.img and recovery.img. I want to extract boot.img, because here is all folders to Rom... I did it once in DSIXDA Kitchen, but now i dont remember how do i did it :P
Help me plz
The Following User Says Thank You to Filipm95 For This Useful Post: [ View ]
21st April 2012, 06:34 PM   |  #8  
Spex's Avatar
OP Recognized Contributor / Recognized Themer
Flag Zagreb
Thanks Meter: 2,420
 
2,227 posts
Join Date:Joined: Oct 2011
Donate to Me
More
Quote:
Originally Posted by Filipm95

Hello.
This guide is awsome, but. How to unpack boot.img? I can't do that...
I have a backup of my Rom. Inthis backup is boot.img and recovery.img. I want to extract boot.img, because here is all folders to Rom... I did it once in DSIXDA Kitchen, but now i dont remember how do i did it :P
Help me plz

dont know what u need it for
but here it is
http://forum.xda-developers.com/show....php?t=1494036
The Following 2 Users Say Thank You to Spex For This Useful Post: [ View ]
21st April 2012, 09:07 PM   |  #9  
Account currently disabled
Flag ♥♥Bradford♥♥
Thanks Meter: 712
 
2,884 posts
Join Date:Joined: Mar 2012
More
Quote:
Originally Posted by Filipm95

Hello.
This guide is awsome, but. How to unpack boot.img? I can't do that...
I have a backup of my Rom. Inthis backup is boot.img and recovery.img. I want to extract boot.img, because here is all folders to Rom... I did it once in DSIXDA Kitchen, but now i dont remember how do i did it :P
Help me plz

Extract system.rfs !!
No need to xtract boot.img

Sent From my lovely FIT..... !! lOvE u Fit
21st April 2012, 10:33 PM   |  #10  
daxdax89's Avatar
Senior Member
Flag Knjazevac
Thanks Meter: 24
 
281 posts
Join Date:Joined: Dec 2010
More
Brate



1. rename your unsigned zip file to "update.zip"

2. execute "sign.bat", wait for completion

3. "update-signed.zip" is your signed rom file

Koji unsigned file ?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes