[GUIDE]How to make a custom rom

Search This thread

Spex

Senior Member
Oct 8, 2011
2,235
2,403
Zagreb
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
# 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,16384,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,16384,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:

Spex

Senior Member
Oct 8, 2011
2,235
2,403
Zagreb
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:

Filipm95

Member
Feb 1, 2012
24
1
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
 
  • Like
Reactions: kyooby

Spex

Senior Member
Oct 8, 2011
2,235
2,403
Zagreb
  • Like
Reactions: kyooby and D33J3Y

Avilove.Cullen

Senior Member
Mar 20, 2012
2,887
712
30
♥♥Bradford♥♥
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 ;)
 

yackovsky

Guest
Jan 31, 2012
162
3,164
What about Dsixda's android kitchen? Ain't that easier way to customise existing roms? And btw: Brace yourself! ****ty roms are comming! :)
 
  • Like
Reactions: KCP100

inihccor

Senior Member
Aug 7, 2011
279
32
How can I add s2e and screenshot shortcut in power menu? :)

Another question: if I have titanium backup FCs, how can I fix that?
 
Last edited:

zarpel

Member
Apr 9, 2012
30
12
Man, i deleted adwlauncher.apk and i putted Sony ericsson launcher, but i renamed sony ericsson launcher.apk to adwlauncher.apk but my phone crashes on bootanimation. And i putted sladyboost and adrenaline. I used official cm 7.2

please help me!


thankz!
 

Spex

Senior Member
Oct 8, 2011
2,235
2,403
Zagreb
Man, i deleted adwlauncher.apk and i putted Sony ericsson launcher, but i renamed sony ericsson launcher.apk to adwlauncher.apk but my phone crashes on bootanimation. And i putted sladyboost and adrenaline. I used official cm 7.2

please help me!


thankz!

what else did u do?


and try to build rom again
just follow steps
 

huzzahpenguin

Senior Member
Jan 21, 2012
67
12
Man, i deleted adwlauncher.apk and i putted Sony ericsson launcher, but i renamed sony ericsson launcher.apk to adwlauncher.apk but my phone crashes on bootanimation. And i putted sladyboost and adrenaline. I used official cm 7.2

please help me!


thankz!

Slaidyboost and adrenalin are not compatible with each other.

Sent from my GT-S5570 using XDA
 

yackovsky

Guest
Jan 31, 2012
162
3,164
Man, i deleted adwlauncher.apk and i putted Sony ericsson launcher, but i renamed sony ericsson launcher.apk to adwlauncher.apk but my phone crashes on bootanimation. And i putted sladyboost and adrenaline. I used official cm 7.2

please help me!


thankz!

You actually don't have to rename launcher, because adw settings are embedded in cm7 and it might be the problem. It's safe to remove adw and put different launcher in tho...
 
Last edited:

zarpel

Member
Apr 9, 2012
30
12
I've tried using cm 7.2 rc5.7 and it works perfectly!

But on CM 7.2 Official, I've tried using the same, but doesn't work.


Do i must remove sladyboost and adrenaline ?

And I can't see the .odex files.
 
Last edited:

rodlee123

Senior Member
Nov 12, 2011
64
5
Mr. MV, thanks for tutorial...
In my case...i just want change / substitute boot.img emanon6 with andro-id331..rom can boot and work normally but without bootanimation.. What can i do for display boot animation????
Sorrry my bad english n thx..
Lumantar Galaxy Mini Gadahan Piyambak.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 88
    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
    # 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,16384,256960
    net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960
    net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
    net.tcp.buffersize.edge=4096,87380,256960,4096,16384,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
    43
    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
    7
    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 ;)
    3
    Thanks man! :)


    In settings.apk, there is "CyanoGenmod settings". How to rename it to zarpel settings?

    get apk multi tool
    decompline settings.apk
    go to settings.apk/res/values/strings.xml
    and on end u will see this
    " <string name="cm_settings_title">CyanogenMod settings</string>"
    rename it to
    " <string name="cm_settings_title">Zarpel settings</string>"

    and u know that there is a thanks button
    2
    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://xdaforums.com/showthread.php?t=1494036