HACKER SWAGAT

LATEST TIPS AND TRICKS FOR YOU !!! BY:- IAMSWAGAT

HOW TO PORT ANDROID ROMS TO YOUR DEVICES

Posted by Swagat Mishra
This is the simplest aswell the fastest way to port android roms to your device.

Note: 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.

What you will NEED!
1. Base Rom (The rom for your phone. CUSTOM ROM not the STOCK ROM)
2. Port Rom (The rom you want to port to your device)

Lets get Porting:

1. Take any clean CM9, AOSP, CM7, CM10, CM11 ROM which is running on your device as Base ROM.
 2. Also  download the the rom that you want to PORT.

Extract both the ROMs to a New folder like this:
Image has been scaled down 9% (650x180). Click this bar to view original image (708x195). Click image to open in new window.
[Image: image.png]


3. Delete app, Framework, Fonts and Media folders 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..
Image has been scaled down 25% (650x419). Click this bar to view original image (859x553). Click image to open in new window.
[Image: image.png]


4. Now copy app, Framework, Fonts and Media folder in System Folder from Port rom to base rom system folder.
Image has been scaled down 20% (650x419). Click this bar to view original image (808x520). Click image to open in new window.
[Image: image.png]



5. Now open etc folder in both the ROMs folder.
- 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.
Image has been scaled down 45% (650x358). Click this bar to view original image (1172x644). Click image to open in new window.
[Image: image.png]


6. Now open buid.prop file using Notepad++ and make changes to these of Base Rom as you wish.
- Change this values as you like:
Quote:
ro.build.id=
ro.build.display.id=
ro.build.date=
ro.modversion=
[Image: image.png]

7. 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=

[Image: image.png]
-- Also Copy anything you Find Extra in ADDITIONAL BUILD PROPERTIES related to theme..
[Image: image.png]

8. 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.

Image has been scaled down 12% (650x588). Click this bar to view original image (737x666). Click image to open in new window.
[Image: image.png]


9. If You find any extra file or folder in system folder of PORT rom than copy them to your base rom system folder.

10. 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. for e.g - xxz.zip
Click OK..
DONE!
Image has been scaled down 8% (650x544). Click this bar to view original image (699x585). Click image to open in new window.
[Image: image.png]


For MIUM Roms:

1. 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

2. 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

3. 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 Paranoid Android or PAC-Man Roms:

1. 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:
Quote:
set_perm(1000, 1000, 0644, "/system/etc/paranoid/properties.conf");

Image has been scaled down 19% (650x165). Click this bar to view original image (796x202). Click image to open in new window.
[Image: image.png]


Specially for Paranoid Android:

1. Now Open Build.prop in /system with Notepad++
Copy these lines in Additional Properties of Build.prop:
Quote:
#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
[Image: image.png]

Specially for PAC-Man:

1. Now Open Build.prop in /system with Notepad++
Copy these lines in Additional Properties of Build.prop:
Quote:
#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
[Image: image.png]

For HTC Devices:

1. To fix network auto select-
Quote:

Decompile framework-res.apk
Go to \framework-res\res\values\bools.xml and change change <bool name="skip_restoring_network_selection">true</bool> to false

2. To Fix Graphichal issues:
Quote:

Decompile framework.jar
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.

Thats it your rom is now ported. After you get the .zip file you can boot into recovery and flash it. (If your ported rom does not have google apps then you will manually need to install the gapps.zip package)
*I personally recommend recoveries like Clockworkmod or TWRP or Philz. Any other would do but custom recovery and phone root is necessary!

You can also use ROM PORTER to port your roms with one or two clicks! here is the tut for that too:

1. You must have installed Notepad++
Then follow these instructions:
Quote:
1.Download the attached zip archieve
2.Extract it
3.Run Port.bat
4.Follow the instructions


WILL UPLOAD A VIDEO SOON .


0 comments:

Post a Comment

Newer Post Older Post Home
© Swagat Mishra ™. Powered by Blogger.

Total Pageviews

Blog Archive

Wikipedia

Search results

ABOUT THE ADMIN

My photo
Swagat Mishra
Hi, I am Swagat Mishra, i am a tech enthusiast and verified Software Engineer.
View my complete profile

SHOUT BOX

Followers

MY FB PAGE

Hack Unlimited

Promote Your Page Too

About This Blog

Featured Content

Follow Us

"© Copyright 2014" Eleven 40 Blogger · All Rights Reserved · And Our Sitemap · All Logos & Trademark Belongs To Their Respective Owners·
Template Developed By Blogging Recipes.