Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,395 Members 45,931 Now Online
XDA Developers Android and Mobile Development Forum

(GUIDE) How to port roms!

Tip us?
 
Feras.Rehman
Old
(Last edited by Feras.Rehman; 20th May 2012 at 06:07 PM.)
#1  
Feras.Rehman's Avatar
Senior Member - OP
Thanks Meter 1126
Posts: 650
Join Date: Oct 2011
Location: Chennai

 
DONATE TO ME
Default (GUIDE) How to port roms!

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

The Following 53 Users Say Thank You to Feras.Rehman For This Useful Post: [ Click to Expand ]
 
simonekamikaze
Old
#2  
simonekamikaze's Avatar
Senior Member
Thanks Meter 26
Posts: 169
Join Date: Jan 2012
Location: On Google

 
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: [ Click to Expand ]
 
freakyfriday
Old
#3  
Account currently disabled
Thanks Meter 214
Posts: 383
Join Date: Mar 2012
Location: with your girlfriend
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: [ Click to Expand ]
DQiB Old
#4  
Guest
Thanks Meter
Posts: n/a
this is also an aspect ;)
But we needf real Portes to FIX bugs. ..
And not some NOOB Porters to port a real buggy fw ...
 
freakyfriday
Old
#5  
Account currently disabled
Thanks Meter 214
Posts: 383
Join Date: Mar 2012
Location: with your girlfriend
Quote:
Originally Posted by DQiB View Post
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 Old
#6  
Guest
Thanks Meter
Posts: n/a
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: [ Click to Expand ]
 
AmalD
Old
#7  
AmalD's Avatar
Recognized Themer
Thanks Meter 2624
Posts: 1,083
Join Date: Mar 2012
Location: kozhikode
Quote:
Originally Posted by DQiB View Post
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 Old
#8  
Guest
Thanks Meter
Posts: n/a
i know but please im busy for now ok?
Andi build from source CM7 for ur device in next week
 
AmalD
Old
#9  
AmalD's Avatar
Recognized Themer
Thanks Meter 2624
Posts: 1,083
Join Date: Mar 2012
Location: kozhikode
Quote:
Originally Posted by DQiB View Post
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
 
SimonsNrg70
Old
#10  
Member
Thanks Meter 12
Posts: 72
Join Date: Mar 2012
Location: Italy, Lazio
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: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes