[GUIDE]How to port Cm7 roms

Search This thread

mathm2013

Senior Member
Jan 1, 2013
943
889
Rio de Janeiro
How to port Cm7 based roms
Guys, as i did a port of Reincarnation to s5830i, i received some PM questioning how to port. But i'll tell you, i take zero (0) credits on method. I used this: http://forum.xda-developers.com/showthread.php?t=2276871. Even so, it still needs some changes in build.prop for making the rom usable. So, i decided to make a guide about it.
Things needed:
bieltv.3 RC1 build
rom you'll port
Rom porter tool by mnishamk
Notepad++

Okay, here are the steps:
1.Enter "Start porting rom"
2.Enter "Cyanogen Based"
3.Drag the base rom (bieltv.3 RC1) and press enter
4.Drag the port rom and press enter
5.Press enter until you see "editing build.prop file"
6.Enter "GRI40"
7.Enter "GINGERBREAD"
8.Press "1" and press enter
9.Enter just numbers, with the version of your rom (like for SGS3 V5, should be entered 5.0)
10.Enter CyanogenMod version (7.2)
11.Enter "21"
12.Enter "14"
13.Enter the name of the rom
14.Wait 'til it finishes compressing
15.Close the tool.
16.Extract rom in OUTPUT folder
17.Enter build.prop
18.In build.prop, do this changes:
18a: Change every "cooper" to "cooperve"
18b: Change S5830 to S5830i
18c: Change "system.prop for XXXXX" until "ADDITIONAL_BUILD_PROPERTIES" to this:
#
# system.prop for GT-S5830i
#

# Dalvik
dalvik.vm.stack-trace-file=/data/anr/traces.txt
dalvik.vm.startheapsize=32m
dalvik.vm.dexopt-data-only=1
dalvik.vm.dexopt-flags=m=y
dalvik.vm.heapsize=32m
dalvik.vm.checkjni=false
dalvik.vm.execution-mode=int:jit
dalvik.vm.lockprof.threshold=500
dev.sfbootcomplete=0

# Screen Rotation
persist.sys.rotationanimation=false

# Bluetooth
net.bt.name=Android

# RIL
rild.libpath=/system/lib/libbrcm_ril.so
ro.telephony.ril_class=samsung
rild.libargs=-d /dev/smd0
DEVICE_PROVISIONED=1
ro.ril.ntmodeglobal=true
persist.rild.nitz_plmn=
persist.rild.nitz_long_ons_0=
persist.rild.nitz_long_ons_1=
persist.rild.nitz_long_ons_2=
persist.rild.nitz_long_ons_3=
persist.rild.nitz_short_ons_0=
persist.rild.nitz_short_ons_1=
persist.rild.nitz_short_ons_2=
persist.rild.nitz_short_ons_3=
mobiledata.interfaces=pdp0,eth0,gprs,ppp0
ro.telephony.call_ring.delay=0
ro.ril.disable.power.collapse=0

# Display
ro.sf.lcd_density=160
qemu.sf.lcd_density=160
video.accelerate.hw=1
ro.opengles.version=131072

# Google Location
ro.com.google.locationfeatures=1
ro.com.google.networklocation=1

# Wifi interface
wifi.interface=eth0
wifi.supplicant_scan_interval=15
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

# USB / SD card
persist.service.usb.setting=0
persist.sys.vold.switchexternal=1

# Statgefright
media.stagefright.enable-player=true
ro.media.dec.jpeg.memcap=10000000

#Alsa
alsa.mixer.playback.master=Speaker
alsa.mixer.capture.master=Mic
alsa.mixer.playback.earpiece=Earpiece
alsa.mixer.capture.earpiece=Mic
alsa.mixer.playback.headset=Headset
alsa.mixer.capture.headset=Mic
alsa.mixer.playback.speaker=Speaker
alsa.mixer.capture.speaker=Mic
alsa.mixer.playback.bt.sco=BTHeadset
alsa.mixer.capture.bt.sco=BTHeadset
alsa.mixer.playback.bt.a2dp=BTHeadset
alsa.mixer.capture.bt.a2dp=BTHeadset

# Performance Tweaks
ro.compcache.default=0
persist.sys.use_dithering=0
view.fading_edge_length=8v
view.minimum_fling_velocity=25
view.scroll_friction=0.008
view.touch_slop=15 X
debug.composition.type=mdp
windowsmgr.max_events_per_sec=150
debug.performance.tuning=1

# CM parts hack
persist.sys.use_16bpp_alpha=1
persist.sys.jit-mode=int:jit
persist.sys.jit-mode=1
persist.sys.scrollingcache=3

#Tweaks
ro.setupwizard.enable_bypass=1
persist.sys.purgeable_assets=1
19.Change Torch.apk of the rom you ported to RC1's Torch.apk (otherwise Torch won't work)
20.Compress and test on your Ace-I
Hit thanks if i helped:)
 

Attachments

  • 1.jpg
    1.jpg
    21.8 KB · Views: 297
  • 2.jpg
    2.jpg
    19.8 KB · Views: 261
  • 3.jpg
    3.jpg
    13.6 KB · Views: 252
  • 4.jpg
    4.jpg
    14.1 KB · Views: 244
  • 5.jpg
    5.jpg
    18.2 KB · Views: 237
  • 6.jpg
    6.jpg
    15.5 KB · Views: 224
  • 7.jpg
    7.jpg
    14.3 KB · Views: 210
  • 8.jpg
    8.jpg
    17 KB · Views: 206
  • 9.jpg
    9.jpg
    14 KB · Views: 200
  • 10.jpg
    10.jpg
    14.1 KB · Views: 195
  • 11.jpg
    11.jpg
    38 KB · Views: 199
  • 12.jpg
    12.jpg
    34.2 KB · Views: 188
  • 13.jpg
    13.jpg
    14.3 KB · Views: 185
  • 14.jpg
    14.jpg
    33.9 KB · Views: 187
  • 15.jpg
    15.jpg
    17.5 KB · Views: 180

Conan Edogawa

Senior Member
Apr 16, 2013
381
416
Bangkok
Good guide!It would be better for porting CM7 ROM based on biel's CM RC Version.I will try porting NIghtlyfourE1 again and as Sniper said it would have a flood of CM ROM.
edit:Now NFe1 is stable.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    How to port Cm7 based roms
    Guys, as i did a port of Reincarnation to s5830i, i received some PM questioning how to port. But i'll tell you, i take zero (0) credits on method. I used this: http://forum.xda-developers.com/showthread.php?t=2276871. Even so, it still needs some changes in build.prop for making the rom usable. So, i decided to make a guide about it.
    Things needed:
    bieltv.3 RC1 build
    rom you'll port
    Rom porter tool by mnishamk
    Notepad++

    Okay, here are the steps:
    1.Enter "Start porting rom"
    2.Enter "Cyanogen Based"
    3.Drag the base rom (bieltv.3 RC1) and press enter
    4.Drag the port rom and press enter
    5.Press enter until you see "editing build.prop file"
    6.Enter "GRI40"
    7.Enter "GINGERBREAD"
    8.Press "1" and press enter
    9.Enter just numbers, with the version of your rom (like for SGS3 V5, should be entered 5.0)
    10.Enter CyanogenMod version (7.2)
    11.Enter "21"
    12.Enter "14"
    13.Enter the name of the rom
    14.Wait 'til it finishes compressing
    15.Close the tool.
    16.Extract rom in OUTPUT folder
    17.Enter build.prop
    18.In build.prop, do this changes:
    18a: Change every "cooper" to "cooperve"
    18b: Change S5830 to S5830i
    18c: Change "system.prop for XXXXX" until "ADDITIONAL_BUILD_PROPERTIES" to this:
    #
    # system.prop for GT-S5830i
    #

    # Dalvik
    dalvik.vm.stack-trace-file=/data/anr/traces.txt
    dalvik.vm.startheapsize=32m
    dalvik.vm.dexopt-data-only=1
    dalvik.vm.dexopt-flags=m=y
    dalvik.vm.heapsize=32m
    dalvik.vm.checkjni=false
    dalvik.vm.execution-mode=int:jit
    dalvik.vm.lockprof.threshold=500
    dev.sfbootcomplete=0

    # Screen Rotation
    persist.sys.rotationanimation=false

    # Bluetooth
    net.bt.name=Android

    # RIL
    rild.libpath=/system/lib/libbrcm_ril.so
    ro.telephony.ril_class=samsung
    rild.libargs=-d /dev/smd0
    DEVICE_PROVISIONED=1
    ro.ril.ntmodeglobal=true
    persist.rild.nitz_plmn=
    persist.rild.nitz_long_ons_0=
    persist.rild.nitz_long_ons_1=
    persist.rild.nitz_long_ons_2=
    persist.rild.nitz_long_ons_3=
    persist.rild.nitz_short_ons_0=
    persist.rild.nitz_short_ons_1=
    persist.rild.nitz_short_ons_2=
    persist.rild.nitz_short_ons_3=
    mobiledata.interfaces=pdp0,eth0,gprs,ppp0
    ro.telephony.call_ring.delay=0
    ro.ril.disable.power.collapse=0

    # Display
    ro.sf.lcd_density=160
    qemu.sf.lcd_density=160
    video.accelerate.hw=1
    ro.opengles.version=131072

    # Google Location
    ro.com.google.locationfeatures=1
    ro.com.google.networklocation=1

    # Wifi interface
    wifi.interface=eth0
    wifi.supplicant_scan_interval=15
    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

    # USB / SD card
    persist.service.usb.setting=0
    persist.sys.vold.switchexternal=1

    # Statgefright
    media.stagefright.enable-player=true
    ro.media.dec.jpeg.memcap=10000000

    #Alsa
    alsa.mixer.playback.master=Speaker
    alsa.mixer.capture.master=Mic
    alsa.mixer.playback.earpiece=Earpiece
    alsa.mixer.capture.earpiece=Mic
    alsa.mixer.playback.headset=Headset
    alsa.mixer.capture.headset=Mic
    alsa.mixer.playback.speaker=Speaker
    alsa.mixer.capture.speaker=Mic
    alsa.mixer.playback.bt.sco=BTHeadset
    alsa.mixer.capture.bt.sco=BTHeadset
    alsa.mixer.playback.bt.a2dp=BTHeadset
    alsa.mixer.capture.bt.a2dp=BTHeadset

    # Performance Tweaks
    ro.compcache.default=0
    persist.sys.use_dithering=0
    view.fading_edge_length=8v
    view.minimum_fling_velocity=25
    view.scroll_friction=0.008
    view.touch_slop=15 X
    debug.composition.type=mdp
    windowsmgr.max_events_per_sec=150
    debug.performance.tuning=1

    # CM parts hack
    persist.sys.use_16bpp_alpha=1
    persist.sys.jit-mode=int:jit
    persist.sys.jit-mode=1
    persist.sys.scrollingcache=3

    #Tweaks
    ro.setupwizard.enable_bypass=1
    persist.sys.purgeable_assets=1
    19.Change Torch.apk of the rom you ported to RC1's Torch.apk (otherwise Torch won't work)
    20.Compress and test on your Ace-I
    Hit thanks if i helped:)
    4
    Nice for noobs! Now Ace-I will be flooded with CM7.2 ROMs :)
    2
    Nice for noobs! Now Ace-I will be flooded with CM7.2 ROMs :)

    It already is :)
    2
    Nice for noobs! Now Ace-I will be flooded with CM7.2 ROMs :)

    Sniper, if this guide is followed correctly it will result in a bugless port. Having bugless cm roms is nice, right?

    Sent from my GT-S5830i using xda app-developers app
    1
    Nice for noobs! Now Ace-I will be flooded with CM7.2 ROMs :)

    It already is :)

    It is always better to have more roms ;)
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone