(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.
If u are porting cm7 from fit, use the boot.img of any cm7 rom here.
eg. Mebitek's cm7 boot.img .
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,
And plz dont spam the development section with ports
Use it for your personal use!
Sent from my GT-S5670 using xda premium