Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] How to port ROMS

OP saywhatt

17th October 2012, 07:01 AM   |  #1  
saywhatt's Avatar
OP Recognized Contributor
Flag Land of Ooo
Thanks Meter: 1,539
 
2,876 posts
Join Date:Joined: Apr 2012
Donate to Me
More
I know that there are actually LOTS of "How to port ROMS" in this forum now.. but I would like to share a certain source I found that is actually fool proof

Here it goes!

find a ROM that is designed for the same CPU type and the same phone manufacturer. Any stock Gingerbread, ICS, or CyanogenMod 7/9 ROM should work, but you’ll have to make sure your phone can handle the ROM – no ICS for an HTC Hero, for example. Also, your Port ROM's original Phone should have the same RESOLUTION with that of your phone's.

Quote:

You will need:
**Notepad++
**a compression program (WinZip or 7zip and etc)
**the ROM you want to port to your phone (let’s call it the "Port ROM")
**a ROM designed for your phone (let’s call it"Base ROM")

This guide may mention some files or directories that aren’t present in your particular ROM; don’t worry, just carry on.

Quote:

On your PC, extract the .ZIP files containing the two ROMs, and navigate to /system/app in your extracted Port ROM and copy stk.apk, vpnservices.apk, camera.apk, and bluetooth.apk into a temporary directory somewhere else on your PC.

Quote:

Now, delete the following folders from your Port ROM and replace them with the ones from your Base ROM: /data, /system/app, /system/framework, /system/fonts and /system/media.

Quote:

From your Base ROM, copy /system/lib/libandroid_runtime.so to the system/lib/ directory of your Port ROM, overwriting the file.

Quote:

Next up, move the .APKs you copied earlier back into the /system/app directory of your Port ROM.

Quote:

Open up /system/lib in your Port ROM and copy all the files and folders. Paste them into the Base’s /system/lib directory, replacing all. Then go back to the Port ROM and delete the /system/lib folder, and replace it with the /system/lib folder from the Base ROM.

Quote:

Next, navigate to the /system/etc/init.d folder in the Port ROM and do the same copy-from-Port, paste-to-Base, delete-from-Port, copy-from-Base, paste-to-Port shuffle as before.

Quote:

Navigate to /system/etc/permissions and do that same copy-paste dance one more time.

Quote:

open system/build.prop from both the port and the base ROM in Notepad++. Update the Base build.prop to match the values for “ro.build.description=” and “ro.build.fingerprint=” from your Port. Now save the Base build.prop, exit Notepad++, and copy the Base build.prop into the Port ROM, overwriting the Port build.prop.

Quote:

In Notepad++, open \META-INF\com\google\android\updater-script from both your base and port ROMs. Edit the Port’s script to be like the Base’s updater-script: specifically, change, edit, or add the sections for permissions, ui_prints, asserts, run_programs, and installing the kernel. Don’t change any of the symlinks. In the Port script, make sure that the ‘format’ values are appropriate for your device (compare them to the Base script).

Quote:

Finally, make sure that your kernel is specifically for your device.

Now, if you desire, you can update any apps you require, or add any tools like BusyBox or SuperSU.

And that’s it! Your base ROM is now ready to be zipped and installed on your device via Clockwork Mod!


SOURCE: http://apcmag.com/port-roms-to-your-android-device.htm

ADDITIONAL INFORMATION:

CUSTOM ROM FOLDERS EXPLAINED
List of Resolution for Smartphones
How to change Kernel of ROM Before installation in its zip file.
[GUIDE][How to Make CWM Recovery Flashable Zip file without Computer]
Last edited by saywhatt; 18th October 2012 at 05:37 AM.
The Following 116 Users Say Thank You to saywhatt For This Useful Post: [ View ]
17th October 2012, 08:49 AM   |  #2  
Senior Member
Flag Brasov
Thanks Meter: 112
 
307 posts
Join Date:Joined: Feb 2012
More
copy - paste, easy made. nice guide, thanks
17th October 2012, 09:12 AM   |  #3  
saywhatt's Avatar
OP Recognized Contributor
Flag Land of Ooo
Thanks Meter: 1,539
 
2,876 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Quote:
Originally Posted by 30adi

copy - paste, easy made. nice guide, thanks

Yes but i found the source highly confusing :P i just "cleaned it up"

Sent from my GT-I9300 using xda premium
The Following 12 Users Say Thank You to saywhatt For This Useful Post: [ View ]
17th October 2012, 09:18 AM   |  #4  
Senior Member
Thanks Meter: 108
 
532 posts
Join Date:Joined: May 2012
Very good job, thank you.
The Following User Says Thank You to Warren87 For This Useful Post: [ View ]
18th October 2012, 05:36 AM   |  #5  
saywhatt's Avatar
OP Recognized Contributor
Flag Land of Ooo
Thanks Meter: 1,539
 
2,876 posts
Join Date:Joined: Apr 2012
Donate to Me
More
ADDED:

[GUIDE][How to Make CWM Recovery Flashable Zip file without Computer]
The Following 6 Users Say Thank You to saywhatt For This Useful Post: [ View ]
18th October 2012, 10:23 PM   |  #6  
khan_frd2002's Avatar
Senior Member
Flag Dressosa
Thanks Meter: 1,550
 
1,215 posts
Join Date:Joined: Nov 2011
Donate to Me
More
I port a ROM but I am getting unknown baseband no imei please tell me how to fix
The Following 2 Users Say Thank You to khan_frd2002 For This Useful Post: [ View ]
19th October 2012, 02:39 AM   |  #7  
itzdarockz's Avatar
Senior Member
Thanks Meter: 166
 
340 posts
Join Date:Joined: Feb 2012
More
Quote:
Originally Posted by khan_frd2002

I port a ROM but I am getting unknown baseband no imei please tell me how to fix

go to build.prop in /system and edit rild.libpath=
rild.libargs=

to match your device and that should fix it
The Following 11 Users Say Thank You to itzdarockz For This Useful Post: [ View ]
20th October 2012, 11:04 AM   |  #8  
1ceb0x's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 5,834
 
5,105 posts
Join Date:Joined: Jun 2010
Donate to Me
More
your guide was just copied by a person from One V forums without giving proper credits.

see here: here
The Following 3 Users Say Thank You to 1ceb0x For This Useful Post: [ View ]
20th October 2012, 12:00 PM   |  #9  
saywhatt's Avatar
OP Recognized Contributor
Flag Land of Ooo
Thanks Meter: 1,539
 
2,876 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Quote:
Originally Posted by 1ceb0x

your guide was just copied by a person from One V forums without giving proper credits.

see here: here

I see.. he should've given proper credits to the website

Sent from my GT-I9300 using xda premium
Last edited by saywhatt; 20th October 2012 at 12:04 PM.
The Following 3 Users Say Thank You to saywhatt For This Useful Post: [ View ]
20th October 2012, 07:12 PM   |  #10  
khan_frd2002's Avatar
Senior Member
Flag Dressosa
Thanks Meter: 1,550
 
1,215 posts
Join Date:Joined: Nov 2011
Donate to Me
More
changing lib path in buildprob
not work

The Following User Says Thank You to khan_frd2002 For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
best port, how to port roms, port, rom, roms
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes