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 port roms!

OP Feras.Rehman

29th April 2012, 03:17 PM   |  #1  
Feras.Rehman's Avatar
OP Senior Member
Flag Chennai
Thanks Meter: 1,126
 
650 posts
Join Date:Joined: Oct 2011
Donate to Me
More
As the title speaks, here is a guide on porting roms.

For porting roms from fit,

1.download the rom (obviously)

2.Extract the rom through winrar

3.Go to system folder

4.Go to system/lib/modules. Delete everything there and replace with the ones for our device.

5.Then go to system/lib/hw. delete everything there and replace with yours.

( The "/hw" directory as you can see contains the files which control the sensors and lights such as GPS and the accelerometer. )

6. Then for the soft keys and hard keys to work, go to system/usr/keychars and system/usr/keylayout and replace with yours

7. Now go to system/etc. Then delete these items and replace with the ones meant for our device.

- vold.fstab

- /wifi

- /ppp

If u are porting cm7 from fit, use the boot.img of any cm7 rom here. eg. Mebitek's cm7 boot.img .


For ace,

Do the above things , then resize framework-res.apk, systemui.apk and other apk's like dialertabactivity.apk, phone.apk!


For other devices, (other manufacturers)

(Eg. HTC when porting cm7)

Extract the cm7 meant for our rom. Then delete app and framework folder. Then go to the rom u wanna port. Copy framework and app folder. And paste it in the cm7 made for our device.


For porting kernels,

unpack the boot.img of the rom u wanna port. Open init.rc and copy the things after bootpath.

repack ur ramdisk!


For camera to work on the ported roms, replace these wid urs,

libarccamera.so

libcamera.so

libcameraservice.so

libcamera_client.so

libCaMotion.so

liboemcamera.so

libseccamera.so

libseccameraadaptor.so

And plz dont spam the development section with ports

Use it for your personal use!

Enjoy Porting!


Sent from my GT-S5670 using xda premium
Last edited by Feras.Rehman; 20th May 2012 at 07:07 PM.
The Following 53 Users Say Thank You to Feras.Rehman For This Useful Post: [ View ]
29th April 2012, 03:57 PM   |  #2  
simonekamikaze's Avatar
Senior Member
Flag On Google
Thanks Meter: 26
 
168 posts
Join Date:Joined: Jan 2012
Donate to Me
Good tutorial.. Well done

Inviato dal mio GT-S5570 usando Tapatalk
The Following 4 Users Say Thank You to simonekamikaze For This Useful Post: [ View ]
29th April 2012, 04:35 PM   |  #3  
Account currently disabled
Flag with your girlfriend
Thanks Meter: 215
 
383 posts
Join Date:Joined: Mar 2012
More
Gud guide for personal use...but now every noob will fill dev section with ports and least care about bug fixes...coz they don't know hw to do it. Lol
The Following 2 Users Say Thank You to freakyfriday For This Useful Post: [ View ]
DQiB
29th April 2012, 04:38 PM   |  #4  
Guest
Thanks Meter: 0
 
n/a posts
this is also an aspect ;)
But we needf real Portes to FIX bugs. ..
And not some NOOB Porters to port a real buggy fw ...
29th April 2012, 04:42 PM   |  #5  
Account currently disabled
Flag with your girlfriend
Thanks Meter: 215
 
383 posts
Join Date:Joined: Mar 2012
More
Quote:
Originally Posted by DQiB

this is also an aspect ;)
But we needf real Portes to FIX bugs. ..
And not some NOOB Porters to port a real buggy fw ...

Yeah most roms are noob friendly to port except the ones which are device specific..
DQiB
29th April 2012, 04:59 PM   |  #6  
Guest
Thanks Meter: 0
 
n/a posts
yup like ldpi to ldpi
but mdpi to ldpi is in the most things really hard to port
and so on, i use my own method of porting roms ;)
Most ports of me are mdpi to ldpi
and i know also how to fix bugs :īD

So for newbies stay out of dev sections with ports from devices you dont have
or dont know how to fix real bugs ,-)
The Following User Says Thank You to For This Useful Post: [ View ]
29th April 2012, 05:28 PM   |  #7  
AmalD's Avatar
Recognized Themer
Flag kozhikode
Thanks Meter: 2,659
 
1,137 posts
Join Date:Joined: Mar 2012
Quote:
Originally Posted by DQiB

yup like ldpi to ldpi
but mdpi to ldpi is in the most things really hard to port
and so on, i use my own method of porting roms ;)
Most ports of me are mdpi to ldpi
and i know also how to fix bugs :īD

So for newbies stay out of dev sections with ports from devices you dont have
or dont know how to fix real bugs ,-)

right
sir
still we are waiting for you
DQiB
29th April 2012, 06:37 PM   |  #8  
Guest
Thanks Meter: 0
 
n/a posts
i know but please im busy for now ok?
Andi build from source CM7 for ur device in next week
30th April 2012, 01:27 AM   |  #9  
AmalD's Avatar
Recognized Themer
Flag kozhikode
Thanks Meter: 2,659
 
1,137 posts
Join Date:Joined: Mar 2012
Quote:
Originally Posted by DQiB

i know but please im busy for now ok?
Andi build from source CM7 for ur device in next week

thank you sir

cant wait for it...............good luck bro
3rd May 2012, 02:45 PM   |  #10  
Member
Flag Italy, Lazio
Thanks Meter: 12
 
72 posts
Join Date:Joined: Mar 2012
More
I have ported the SGSII Rom from Galaxy Fit but I have changed the keylayout and keychair cartel but don't function the back button and the home and option button don't function correctly, this button function like the home button! What is the problem??

The Following User Says Thank You to SimonsNrg70 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes