• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
Search This thread

<JohnCarter>

Senior Member
Jun 1, 2012
761
1,770
Ranchi
How to port roms to your Device

Sick of seeing roms for other devices ? wanna experience them in your device ?

Well here's a guide to teach you just that .

Code:
KEEP THESE POINTS IN MIND
               
                This guide wont make you a full fledged dev.
                It teaches you the basics of porting ROMS. 
                If anything happens to your device I AM NOT RESPONSIBLE for IT ! try it on your own risk !


So to begin before starting right away have a check list of these items -

Code:
The rom which you want to port for your device is named here as [B]BASE[/B] 
            The rom which is already working for your device is called here as [B]PORT[/B]
             Your final ROM is in PORT

STEP 1

Grab a rom
Make sure to grab a rom of same resolution. for ex- 320x480.
And prefer to use the roms with same android version. for ex - android 4.0.4=android 4.0.4
also prefer to use roms from same manufacturer for ex - use htc desire S for htc desire HD
use either aosp or cm 7,9 or 10 working for your device as port
Download and install notepad++ and a archiver. ( I use winrar)

STEP 2

1_zps9cec6393.png



2_zps305d68f1.png


3PNGPNG_zps764c6a51.png


First open both the roms side by side in the zip form
perform these actions in PORT.zip
Go to system> then delete the app,media,fonts & framework folders.
now drag and drop the app,media,fonts & framework folders from base.zip to ported.zip



STEP 3

Now go to the etc folder in base.zip and the port.zip now see if the base.zip has any extra files other than those in the port.zip
if you find any put them in your etc folder of port.zip

STEP 4


4_zpsdb409c3b.png




Now open buid.prop file using Notepad++ and make changes to these of Port.zip
ro.build.id=
ro.build.display.id=
ro.build.date=
ro.modversion=

In build.prop file change these to same as Port Rom build.prop values. you can find these in additional build properties

5_zps67756f9e.png


6_zpsb8e74cca.png


ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=

If you want to port for htc devices try this if you face issues :

to fix network auto select,
decompile framework-res.apk
go to \framework-res\res\values\bools.xml change
<bool name="skip_restoring_network_selection">true</bool>
to false.

to fix graphichal issues,

decompile framework.jar

change these files with cm9 base

smali\smali\android\os
Environment
SystemProperties
smali\smali\android\view
HardwareCanvas
HardwareRenderer$Gl20Renderer
HardwareRenderer$GlRenderer
HardwareRenderer


Happy porting ! ;) :good:

SUPPORT MY WORK BY DONATING ME HERE :D
 
Last edited:

linafluffy

Member
Jul 11, 2012
12
1
I want to port a rom to my xperia miro. Which rom can i use to do that?
Screen resolution 480x320 3,5 tum
Android version 4.0.3

Thanks :)


I can´t find a stock rom, please, can someone help me?
 
Last edited:
  • Like
Reactions: overclock990

lncoln

Senior Member
Feb 22, 2011
468
128
Citrus Heights
I'm running MIUI V4, android 4.0.4 on an HTC Glacier.

I want to give this a shot....my first time. Which device is compatible with mine? Would it be possible to port a Jelly Bean Miui rom from one of those "compatible devices" to mine?

No I didn't do much searching. I figured that in order for me to do this the right way, I would ask the wise ones. :)

Thank you for all your work and help.


Sent from my Galaxy Nexus using xda premium
 
  • Like
Reactions: overclock990

ic3141

Senior Member
Mar 23, 2012
83
32
Now open buid.prop file using Notepad++ and make changes to these of Port.zip
ro.build.id=
ro.build.display.id=
ro.build.date=
ro.modversion=

In build.prop file change these to same as Port Rom build.prop values. you can find these in additional build properties

SInce i haven't changed the build.prop on port, the above values are for the port. aren't they? Or i change in base then copy whole build.prop from base to port? A bit confusing
 
  • Like
Reactions: overclock990

<JohnCarter>

Senior Member
Jun 1, 2012
761
1,770
Ranchi
Now open buid.prop file using Notepad++ and make changes to these of Port.zip
ro.build.id=
ro.build.display.id=
ro.build.date=
ro.modversion=

In build.prop file change these to same as Port Rom build.prop values. you can find these in additional build properties

SInce i haven't changed the build.prop on port, the above values are for the port. aren't they? Or i change in base then copy whole build.prop from base to port? A bit confusing

erm yes
just change the values in your port.zip
 

djmatt604

Senior Member
Aug 1, 2012
1,756
1,847
Vancity
There are lots of questions about what devices/roms people can port from going on in here...now I'm not a mod or anything and I am watching this thread because I think it would be a cool project to port a rom for my phone over to a friend's...but perhaps it would be helpful for the OP to include some tips on how we can check compatibility ourselves right in the first post? Is that possible?

I saw this:

"long story short =

ARM-V"X" = ARM-V"X" = if yes, port
ARM-V"X" =/ ARM-V"Y" = no."


...which is a good piece of info. What other things can people be looking for so we don't keep asking the same question? Obviously you shouldn't be trying to port an HTC rom for a Samsung device unless you really know what you're doing, but I mean other perhaps-not-so-obvious stuff. Thanks OP for your consideration and great guide!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 107
    How to port roms to your Device

    Sick of seeing roms for other devices ? wanna experience them in your device ?

    Well here's a guide to teach you just that .

    Code:
    KEEP THESE POINTS IN MIND
                   
                    This guide wont make you a full fledged dev.
                    It teaches you the basics of porting ROMS. 
                    If anything happens to your device I AM NOT RESPONSIBLE for IT ! try it on your own risk !


    So to begin before starting right away have a check list of these items -

    Code:
    The rom which you want to port for your device is named here as [B]BASE[/B] 
                The rom which is already working for your device is called here as [B]PORT[/B]
                 Your final ROM is in PORT

    STEP 1

    Grab a rom
    Make sure to grab a rom of same resolution. for ex- 320x480.
    And prefer to use the roms with same android version. for ex - android 4.0.4=android 4.0.4
    also prefer to use roms from same manufacturer for ex - use htc desire S for htc desire HD
    use either aosp or cm 7,9 or 10 working for your device as port
    Download and install notepad++ and a archiver. ( I use winrar)

    STEP 2

    1_zps9cec6393.png



    2_zps305d68f1.png


    3PNGPNG_zps764c6a51.png


    First open both the roms side by side in the zip form
    perform these actions in PORT.zip
    Go to system> then delete the app,media,fonts & framework folders.
    now drag and drop the app,media,fonts & framework folders from base.zip to ported.zip



    STEP 3

    Now go to the etc folder in base.zip and the port.zip now see if the base.zip has any extra files other than those in the port.zip
    if you find any put them in your etc folder of port.zip

    STEP 4


    4_zpsdb409c3b.png




    Now open buid.prop file using Notepad++ and make changes to these of Port.zip
    ro.build.id=
    ro.build.display.id=
    ro.build.date=
    ro.modversion=

    In build.prop file change these to same as Port Rom build.prop values. you can find these in additional build properties

    5_zps67756f9e.png


    6_zpsb8e74cca.png


    ro.config.ringtone=
    ro.config.notification_sound=
    ro.config.alarm_alert=

    If you want to port for htc devices try this if you face issues :

    to fix network auto select,
    decompile framework-res.apk
    go to \framework-res\res\values\bools.xml change
    <bool name="skip_restoring_network_selection">true</bool>
    to false.

    to fix graphichal issues,

    decompile framework.jar

    change these files with cm9 base

    smali\smali\android\os
    Environment
    SystemProperties
    smali\smali\android\view
    HardwareCanvas
    HardwareRenderer$Gl20Renderer
    HardwareRenderer$GlRenderer
    HardwareRenderer


    Happy porting ! ;) :good:

    SUPPORT MY WORK BY DONATING ME HERE :D
    7
    try this guide buddy

    Nice guide

    Sent from my HTC Explorer A310e using xda premium

    try this guide buddy and plz tell me how did it go ?
    4
    erm yes

    How about the Fascinate/Mesmerize?


    Sent from my Galaxy S Mesmerize running AOKP Build 5 JellyBean with Devil Kernel 1.6.1

    yes you can
    but be sure to choose the rom you wanna port from a device having same resolution i.e same as your mesmerize
    2
    Nice guide

    Sent from my HTC Explorer A310e using xda premium
    2
    just look for roms in lg p500 or galaxy ace if you like any port them
    but remember to take their developers permissions first

    Two more Galaxy gio and most important HTC Wildfire S.
    :D