Monday, 29 October 2012

[GUIDE]How To Port ROM For Your Device V2

How to port roms to your Device v2

Sick of seeing roms for other devices ? wanna experience them in your device ?

Well here's a guide to teach you just that .
 Note:-

KEEP THESE POINTS IN MIND
              
This guide wont make you a full fledged dev.
It teaches you the basics of porting ROMS.
If anything happens to your device I AM NOT RESPONSIBLE for IT ! try it on your own risk !


So to begin before starting right away have a check list of these items -
The rom which you want to port for your device is named here as BASE
The rom which is already working for your device is called here as PORT
Your final ROM is in PORT



STEP 1

Grab a rom
Make sure to grab a rom of same resolution. for ex- 320x480.
And prefer to use the roms with same android version. for ex - android 4.0.4=android 4.0.4
also prefer to use roms from same manufacturer for ex - use htc desire S for htc desire HD
use either aosp or cm 7,9 or 10 working for your device as port
Download and install notepad++ and a archiver. ( I use winrar)

STEP 2





First open both the roms side by side in the zip form
perform these actions in PORT.zip
Go to system> then delete the app,media,fonts & framework folders.
now drag and drop the app,media,fonts & framework folders from base.zip to ported.zip



STEP 3

Now go to the etc folder in base.zip and the port.zip now see if the base.zip has any extra files other than those in the port.zip
if you find any put them in your etc folder of port.zip

STEP 4
Now open buid.prop file using Notepad++ and make changes to these of Port.zip
ro.build.id=
ro.build.display.id=
ro.build.date=
ro.modversion=

In build.prop file change these to same as Port Rom build.prop values. you can find these in additional build properties
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=

If you want to port for htc devices try this if you face issues :

to fix network auto select,
decompile framework-res.apk
go to \framework-res\res\values\bools.xml change
<bool name="skip_restoring_network_selection">true</bool>
to false.

to fix graphichal issues,

decompile framework.jar

change these files with cm9 base

smali\smali\android\os
Environment
SystemProperties
smali\smali\android\view
HardwareCanvas
HardwareRenderer$Gl20Renderer
HardwareRenderer$GlRenderer
HardwareRenderer


Happy porting !

 

No comments:

Post a Comment