FORUMS

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by … more

How To Port Fully Featured Sony Xperia Z4 Camera

Xperia Z4’s hardware may not impress, but its software is definitely … more

Experimental TWRP Available For Moto G 2015

XDA Senior Member squid2 has posted experimental builds of TWRP for the Moto G … more

Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and … more

(GUIDE) How to port roms!

650 posts
Thanks Meter: 1,126
 
Post Reply Subscribe to Thread Email Thread
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 06:07 PM.
The Following 53 Users Say Thank You to Feras.Rehman For This Useful Post: [ View ]
 
 
29th April 2012, 02:57 PM |#2  
simonekamikaze's Avatar
Senior Member
Flag On Google
Thanks Meter: 26
 
Donate to Me
More
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, 03:35 PM |#3  
Account currently disabled
Flag with your girlfriend
Thanks Meter: 215
 
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, 03:38 PM |#4  
Guest
Thanks Meter: 0
 
More
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, 03:42 PM |#5  
Account currently disabled
Flag with your girlfriend
Thanks Meter: 215
 
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, 03:59 PM |#6  
Guest
Thanks Meter: 0
 
More
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, 04:28 PM |#7  
AmalD's Avatar
Recognized Themer
Flag kozhikode
Thanks Meter: 2,741
 
More
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, 05:37 PM |#8  
Guest
Thanks Meter: 0
 
More
i know but please im busy for now ok?
Andi build from source CM7 for ur device in next week
30th April 2012, 12:27 AM |#9  
AmalD's Avatar
Recognized Themer
Flag kozhikode
Thanks Meter: 2,741
 
More
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, 01:45 PM |#10  
Member
Flag Italy, Lazio
Thanks Meter: 12
 
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 ]
3rd May 2012, 02:06 PM |#11  
Feras.Rehman's Avatar
OP Senior Member
Flag Chennai
Thanks Meter: 1,126
 
Donate to Me
More
U changed d boot.img?

Sent from my HTC-Desire using xda premium
The Following User Says Thank You to Feras.Rehman For This Useful Post: [ View ]

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

Advanced Search
Display Modes