htw

How To Port Different ROMS to Your Device (Simplest and Fastest)

Many people have requested me to share the method which I am using to port roms..

THIS IS THE SIMPLEST AND FASTEST WAY TO PORT ROMS!!!

This is the method which I use in porting Roms-
Things Needed- Winrar, Notepad++

This is For Same Resolution Mobiles and You can use this Method to port roms From armv6 to armv7 devices but I dont know about the method used to port roms from armv7 to armv6 devices..


Quote:
What is base Rom:
Quote:
The ROM which is Developed For your Mobile..
Quote:
What is Port Rom:
Quote:
The Rom Which you want to port to your Device.
Quote:
STEP1;
Quote:
Take any clean CM9, AOSP, CM7, CM10, CM11 ROM which is running on your device as Base ROM.
Quote:
STEP2:
Quote:
Extract it Using Winrar.
Quote:
STEP3:
Quote:
Take the ROM you want to port. This Port ROM. Extract it also using Winrar.
Quote:
STEP4:
Quote:
Delete app, Framework, Fonts and Media folder in System Folder of Base ROM.

Note: To Port Kitkat base ROM, you also have to copy the priv-app folder from port to base. Thats It.. (Credits to @thelegend10 for informing me that this guide works with KK)

Quote:
STEP5:
Quote:
Now copy app, Framework, Fonts and Media folder in System Folder from Port rom to base rom system folder.

Quote:
STEP6:
Quote:
Now open etc folder in both the ROMs folder.

Quote:
STEP7:
Quote:
In etc folder of base ROM open permissions folder and copy all the permissions files in Port rom to your base ROM folder except platform and handheld_hardware .And Then open init.d Folder in Base ROM and Delete Every thing except banner and then copy all the files inside init.d folder of port ROM to Base ROM.


Quote:
STEP8:
Quote:
Now open buid.prop file using Notepad++ and make changes to these of Base Rom as you wish.
Quote:
ro.build.id=
ro.build.display.id=
ro.build.date=
ro.modversion=
Quote:
STEP9:
Quote:
In build.prop file change these to same as Port Rom build.prop values.
Quote:
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=

Also Copy anything you Find Extra in ADDITIONAL BUILD PROPERTIES related to theme..
Quote:
STEP10:
Quote:
COPY THE set_perm Lines in META-INF/com/google/android/updater-script From Port to Base ROM After Deleting set_perm lines in Base ROM's Updater-Script.
Quote:
STEP11:
Quote:
If You find any extra file or folder in system folder of PORT rom than copy them to your base rom system folder.
Quote:
STEP12:
Quote:
Last Step to ZIP THE FOLDERS IN ONE..
SELECT META-INF, system, boot.img(if it is having), data(if it is having).
Right Click and Select Add to Archive..
Select Zip..
Type the Name.
Click OK..
FOR MIUI:
Quote:
Quote:
Copy telocation.db and yellowpage.db From /system/etc folder to yours..

Copy content-types.properties file From /system/lib to yours..

Copy invoke-as from miui4 rom to /system/xbin and give it permissions on updater-script
set_perm(0, 0, 06755, "/system/xbin/invoke-as");
Note:It is needed for backup & themes app to work
Quote:
Copy liblbesec.so from miui 4 to /system/lib and give permission on updater-script
set_perm(0, 0, 0755, "/system/lib/liblbesec.so");
It is needed for superuser app from miui to work
Quote:
Change values Some of the Values in build.prop of your ROM:
ro.build.id=MIUI
ro.build.display.id=MIUI
ro.build.version.incremental=2.x.x (version number)

ro.config.ringtone=MI.ogg
ro.config.notification_sound=FadeIn.ogg
ro.config.alarm_alert=GoodMorning.ogg
ro.config.sms_received_sound=FadeIn.ogg
ro.config.sms_delivered_sound=MessageComplete.ogg
FOR ParanoidAndroid And PAC:

Quote:
Quote:
Copy paranoid folder inside system/etc to yours..
Go to META-INF/com/google/android/Updater-Script of your base ROM and open it with Notepad++
Copy this line:
Code:
set_perm(1000, 1000, 0644, "/system/etc/paranoid/properties.conf");
Quote:
Specially For PA:
Quote:
Now Open Build.prop in /system with Notepad++
Copy these lines in Additional Properties of Build.prop:
Code:
#Depends on Resolution Of your device can be pa_hdpi/pa_mdpi/pa_xhdpi. Change it according to your device.
ro.pa.family=pa_mdpi
#Depend on pa version. Replace x.xx with the version of PA you are porting.
ro.pa.version=x.xx
Quote:
Specially For PAC Rom:
Quote:
Now Open Build.prop in /system with Notepad++
Copy these lines in Additional Properties of Build.prop:
Code:
#Replace the x.x.x with your PAC Rom version
ro.pac.version=x.x.x
#Customize these lines according to your wish.
ro.pacrom.version=mesona_PAC_jb-alpha-v19.0.0
ro.modversion=mesona_PAC_jb-alpha-v19.0.0
#Depends on Resolution Of your device can be pa_hdpi/pa_mdpi/pa_xhdpi. Change it according to your device.
ro.pa.family=pa_mdpi
#Depend on pa version. Replace x.xx with the version of PA you are porting.
ro.pa.version=x.xx
#Modify this line according to your AOKP version
ro.aokp.version=mesona_jb-Milestone-1
#Modify it according to your base ROM's build.prop
ro.cm.version=xxxxxxxxxxxx
Replace any line in Your build.prop which appear twice mainly ro.cm.version and ro.modversion
Quote:
For HTC Devices:
Quote:
To fix network auto select-
Quote:
  1. Decompile framework-res.apk
  2. Go to \framework-res\res\values\bools.xml and change change <bool name="skip_restoring_network_selection">true</bool> to false
Quote:
To Fix Graphichal issues:
Quote:
  1. Decompile framework.jar
  2. Change these files with your base
    • smali\smali\android\os
    • Environment
    • SystemProperties
    • smali\smali\android\view
    • HardwareCanvas
    • HardwareRenderer$Gl20Renderer
    • HardwareRenderer$GlRenderer
    • HardwareRenderer
IF YOU ARE HAVING BOOTLOOP THEN COPY THESE LIB FILES TO BASE ROM FROM PORT ROM:
Quote:

  • libandroid_runtime.so
  • libandroid_servers.so
  • libmedia_jni.so
IF YOUR BASE ROM HAS ISSUES LIKE CAMERA ISSUE THAN YOUR PORTED ROM TOO WILL HAVE ISSUES.

NOW ZIP YOUR ROM AND POST IT BUT DON'T FORGET TO GIVE CREDITS TO THE DEVELOPER OF PORT ROM..


IF YOU WANT TO PORT ROM WITH ONE OR TWO CLICKS, THEN GO TO THIS THREAD-- [TOOL] Rom Porter or [Tool] ROM Porter

IF IT HELPED YOU THAN PRESS THANKS AND RATE THIS POST 5 STARS...
SHARE

Sohanur Rahman Sobuz

Hi. I’m Sohanur Rahman Sobuz. I’m CEO/Founder of DroidBuzzz™. I actually created this blog for Symphony W72 User cause there is No Custom Rom for it. Thats Why I started Porting Custom ROM and Publish here. In the Meantime many Visitors have come to my blog thats why I publish other phone's rom too. Actually I am not a Dev.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 Comments:

Post a Comment

Search This Blog

What do you think about this website? You can choice multiple answer

Subscribe Us

Join the team! By Submitting your email address: