_DarkDragon_
Well-Known Member
Well i was just messing around with nothing to do so i just decided to make a port guide for the Motion
Credits to rishabh.raj37 over at xda!!!
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..
ro.config.notification_sound=
ro.config.alarm_alert=
Also Copy anything you Find Extra in ADDITIONAL BUILD PROPERTIES related to theme..
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:
set_perm(0, 0, 0755, "/system/lib/liblbesec.so");
It is needed for superuser app from miui to work
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...
Yep thank him not me
Also you can post questions and all that good stuff about porting here
*cheers*
Credits to rishabh.raj37 over at xda!!!
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..
The ROM which is Developed For your Mobile..What is base Rom:
The Rom Which you want to port to your Device.What is Port Rom:
Take any clean CM9, AOSP, CM7, CM10 ROM which is running on your device as Base ROM.STEP1;
Extract it Using Winrar.STEP2:
Take the ROM you want to port. This Port ROM. Extract it also using Winrar.STEP3:
Delete app, Framework, Fonts and Media folder in System Folder of Base ROM.STEP4:
Now copy app, Framework, Fonts and Media folder in System Folder from Port rom to base rom system folder.STEP5:
Now open etc folder in both the ROMs folder.STEP6:
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.STEP7:
Now open buid.prop file using Notepad++ and make changes to these of Base Rom as you wish.STEP8:
STEP9:ro.build.id=
ro.build.display.id=
ro.build.date=
ro.modversion=
ro.config.ringtone=In build.prop file change these to same as Port Rom build.prop values.
ro.config.notification_sound=
ro.config.alarm_alert=
Also Copy anything you Find Extra in ADDITIONAL BUILD PROPERTIES related to theme..
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.STEP10:
If You find any extra file or folder in system folder of PORT rom than copy them to your base rom system folder.STEP11:
Last Step to ZIP THE FOLDERS IN ONE..STEP12:
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:
Copy liblbesec.so from miui 4 to /system/lib and give permission on updater-scriptCopy 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
set_perm(0, 0, 0755, "/system/lib/liblbesec.so");
It is needed for superuser app from miui to work
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:
Specially For PA: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");
Specially For PAC Rom: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
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
IF YOUR BASE ROM HAS ISSUES LIKE CAMERA ISSUE THAN YOUR PORTED ROM TOO WILL HAVE ISSUES.To Fix Graphichal issues:
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:
libandroid_runtime.so
libandroid_servers.so
libmedia_jni.so
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...
Yep thank him not me
Also you can post questions and all that good stuff about porting here
*cheers*