FORUMS
Remove All Ads from XDA

 View Poll Results: Was this helpful?

Yes
 
103 Vote(s)
79.84%
No
 
13 Vote(s)
10.08%
Its tough, easy method please !
 
13 Vote(s)
10.08%

[GUIDE]Port Any ROM - Revised - Now Easier!

3,832 posts
Thanks Meter: 3,276
 
Post Reply Email Thread
Quote:

PoRT AnY
CM10/CM10.1
CM9/CM7/AOKP/Stock Based/MiUi ROM

Code:
#include 
/*
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed.
 *  YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 *
 * 
*/
Quote:

Prerequisite:

  • 7zip
  • Notepad++
  • Knowledge about android
  • Most Important(Note) - Half an hour

Quote:

Before Starting Port:

1.Select a similar device, with same display resolution, similar processor, and similar processor ie. architecture of cpu
2.Take a look what the ROM is based of, example: If it is based of ICS Rom download CM9/AOKP/Any ICS Rom except sense based ICS
3.Download Base ROM
4.Create a folder where you are going to work, name it "Android_porting"
5.Extract both the ROMs in the folder, name the ROM folder you are porting as " PORT" and youre base ROM folder as "BASE"
5.Open both ROM folder like this:


Starting the port:

Quote:

STEP 1- In Base ROM
1.Open System Folder
2.Delete the Folders: "app", "framework", "fonts" and "media"

Quote:

STEP 2- From Port to Base
1.Open System Folder
2.Copy the Folders: "app", "framework", "fonts" and "media"
3.Paste these folders in BASE/system

Quote:

STEP 3- In Port ROM
1.Open system/etc/permissions
2.Copy all files except: "platform" and "handheld_core_hardware"
3.Paste these to BASE/system/etc/permissions

Quote:

STEP 4- In Port ROM(skip if port ROM has no init.d scripts)
1.Open system/etc/init.d
2.Copy all scripts
3.Paste these to BASE/system/etc/init.d

Quote:

STEP 5- Build.prop of Base Rom
1.Open system/build.prop
2.Now, you may edit these lines:


Code:
ro.build.id=
ro.build.display.id=
ro.build.date=

Quote:

Step 6- Default Sounds
Now, Change copy these lines from port ROMs Build.prop to your Base Rom


Code:
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
Copy these from port build.prop to base
persist.sys.themeId=
persist.sys.themePackageName=

Also copy any other performance tweaks if you find any...

Quote:

For MIUI v4 Only


1.Copy lib/android_runtime.so from port to base(otherwise ROM won't boot)

2.copy invoke-as from miui rom to /system/xbin, add this to updater script:
Code:
set_perm(0, 0, 06755, "/system/xbin/invoke-as");
3.copy liblbesec.so from miui 4 to /system/lib, add this line to updater script
Code:
set_perm(0, 0, 0755, "/system/lib/liblbesec.so");
4.Change these in build.prop
Code:
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

Quote:

STEP 7- Updater Script
1.Open port ROMs updater script
2.Copy all lines starting with
set_perm or set_perm_recursive
3.Delete all set_perm or set_perm_recursive lines from base updater script, and paste the port Rom ones
4. Save and close

Quote:

Final Step:
1. Zip the ROM
2. Flash it on your phone
3.Voila !

If This Guide Helped You In Any Way Please Hit Thanks
The Following 80 Users Say Thank You to DanceOff For This Useful Post: [ View ] Gift DanceOff Ad-Free
 
 
23rd January 2013, 09:02 AM |#2  
OP Account currently disabled
Flag New Delhi
Thanks Meter: 3,276
 
More
In-Case Rom Does not boot, feel free to contact me

How to report
-Give me the logcat
-You need ADB(Android Debug Bridge), use command "adb logcat" while phone is connected
-Incase ROM boots and there is some other problem use the app alogcat to get logcats or you can also use ADB !
-Mention the ROM you are porting with thread link and also base ROM

If This Guide Helped You In Any Way Please Hit Thanks
The Following 14 Users Say Thank You to DanceOff For This Useful Post: [ View ] Gift DanceOff Ad-Free
23rd January 2013, 09:02 AM |#3  
OP Account currently disabled
Flag New Delhi
Thanks Meter: 3,276
 
More
If This Guide Helped You In Any Way Please Hit Thanks

FAQ!

Q) I Cant Boot the rom now what?
Sorry i'm not so creative to imagine things, just give me a logcat

Q) This guide is tough what to do I cant understand?
Read again, keep reading until you get it! This thing can't be anymore easy!

Q) I am geting "status x" error in recovery, how to fix?
There is an error in updater-script either find it yourself fix it otherwise seek help from me
If you are getting status 7 system ran outta memory, strip the ROM, barebone, delete apks or whatever any point you need help ask me!

Q) How to add more apps in ROM?
Copy apps in system/app for making it system app or in data/app for user app!

Q) I add an app in data/app but when I flash it but it doesnt boot!
You need to add mount points and package_extract to get it done, check out guide link below!

Q) I cant get the logcat mobile isnt detected by ADB!
Confirm if you replaced boot.img, else post here!

...updating
The Following 4 Users Say Thank You to DanceOff For This Useful Post: [ View ] Gift DanceOff Ad-Free
23rd January 2013, 07:02 PM |#4  
OP Account currently disabled
Flag New Delhi
Thanks Meter: 3,276
 
More
Re: [GUIDE]Port CM9/CM7/AOKP/Stock Based/MiUi ROM
Learn More!-

-About Updater Scripts:
http://forum.xda-developers.com/show....php?t=2187804

-Build.prop Wiki:
http://forum.xda-developers.com/show....php?t=2056266

If This Guide Helped You In Any Way Please Hit Thanks
The Following 2 Users Say Thank You to DanceOff For This Useful Post: [ View ] Gift DanceOff Ad-Free
25th January 2013, 12:42 PM |#5  
virganda's Avatar
Member
Thanks Meter: 6
 
More
i want porting miui for my phone its dual cdma evdo gsm phone. can we porting miui with keep the dual sim feature??
25th January 2013, 01:30 PM |#6  
OP Account currently disabled
Flag New Delhi
Thanks Meter: 3,276
 
More
Re: [GUIDE]Port CM9/CM7/AOKP/Stock Based/MiUi ROM
Quote:
Originally Posted by virganda

i want porting miui for my phone its dual cdma evdo gsm phone. can we porting miui with keep the dual sim feature??

You can try porting lewa os it is very similar to miui nearly same

Lewa os supports supports dual sim but I don't know about miui.

But porting miui is also worth a try

Sent from my HTC Explorer using xda app-developers app
25th January 2013, 02:22 PM |#7  
xperiavish's Avatar
Senior Member
Flag Jaipur
Thanks Meter: 112
 
Donate to Me
More
I tried porting according to your guide but my rom is stuck at miui boot logo..unable to boot..also if you can explain what all changes are to be done in framework.jar services.jar and other files to boot a rom successfully and for a comp-lete port..
25th January 2013, 02:48 PM |#8  
OP Account currently disabled
Flag New Delhi
Thanks Meter: 3,276
 
More
Quote:
Originally Posted by xperiavish

I tried porting according to your guide but my rom is stuck at miui boot logo..unable to boot..also if you can explain what all changes are to be done in framework.jar services.jar and other files to boot a rom successfully and for a comp-lete port..

Copy lib/android_runtime.so from port to base(otherwise ROM won't boot)

Check this ^

Dont forget to hit thanks
The Following 3 Users Say Thank You to DanceOff For This Useful Post: [ View ] Gift DanceOff Ad-Free
26th January 2013, 03:49 AM |#9  
xperiavish's Avatar
Senior Member
Flag Jaipur
Thanks Meter: 112
 
Donate to Me
More
Already done that but still am unable to get past the boot animation..also can you please explain me about those jar edits and smalli modifications or at least point me to a guide/tutorial on that..and can you please tell me a few devices i can take as port for my sony xperia u st 25i..thanx..
26th January 2013, 06:03 AM |#10  
OP Account currently disabled
Flag New Delhi
Thanks Meter: 3,276
 
More
Re: [GUIDE]Port CM9/CM7/AOKP/Stock Based/MiUi ROM
Quote:
Originally Posted by xperiavish

Already done that but still am unable to get past the boot animation..also can you please explain me about those jar edits and smalli modifications or at least point me to a guide/tutorial on that..and can you please tell me a few devices i can take as port for my sony xperia u st 25i..thanx..

Can you tell you ported the Rom from which phone to which phone ?
Please give logcat also

Sent from my HTC Explorer using xda app-developers app
27th January 2013, 05:46 PM |#11  
xperiavish's Avatar
Senior Member
Flag Jaipur
Thanks Meter: 112
 
Donate to Me
More
Re: [GUIDE]Port CM10/CM9/CM7/AOKP/Stock Based/MiUi ROM
I ported it from xperia s to u..and tried to do as much as I could but I was unable to boot..so I thought of choosing another rom for porting..so I went for porting htc one v rom miui version 2.11.9 to my xperia u with cm9 base..I did edits in framework.jar,services.jar and framework-res.apk with the help of tutorials available here over xda..now m able to boot the rom and everything works except for two problems..first is when I call anyone,my phone boots while on the dialer screen and doesn't comes up again,stuck at boot logo..I have to take out battery and then restart it..another thing is that my rom boots only when flashed over cm9base without wiping data..if data wiped or if installed over stock rom it doesn't boots and is stuck on miui boot logo..any ideas..??

Sent from my Xperia U using xda premium
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes