Related
IntroductionYou may have seen many threads on xda about porting roms. All of them provide step by step tutorial but they do not explain everything and do not answer common questions. So i decided to post a guide and answer all questions about porting roms.
Please note that I am not a developer or an expoert porter (I should say i am a noob) but I will to explain everything as simply as possible.
What is Porting?You can think of porting as simply getting a rom, designed for another device to work on your device.
What do I need for porting roms?You need two roms. One designed for your phone called "Base rom" and another which you want to port called "Port rom"
What skills/software do I need to port rom?Porting a rom is as simple as copy and paste. If you know how to copy and paste folders then you can port a rom.
For software side, you only need an archiver for porting (eg 7-zip)
How do I choose a base rom?Usually you choose cyanogenmod as base. The version number is important for porting.
Choose CM7 if you are porting android 2.3 (gingerbread rom)
Choose CM9 if you are porting android 4.0 (Ice cream sandwich rom)
Choose CM10 if you are porting android 4.1 (Jellybean rom)
Choose CM10.1 if you are porting android 4.2 (Jellybean rom)
Can I port all roms?No you cant.
You cannot port stock roms like sense, touchwiz etc.
You can port aosp roms like aokp, paranoid etc
Can I port from any phone?No. The phone must meet some requirements for you to be able to port.
What are those requirements?Well these things should be common in your phone and the phone you are porting from
1. Both should be armv7 (very important)
2. Both should have same resolution
3. Both should have same pixel density
4. Both should be of same brand (Not required but highly recommended)
5. Both should have same cpu (again not required but recommended)
What phone is best for porting?There is no "best phone for porting". It depends upon your phone. Simply put that if your phone and port phone have all the above things common then it is probably the best phone for porting.
HOW TO PORT ROM
1. Download base rom (designed for your phone) and port rom (the rom you want to port)
2. Open them with 7-zip (no need to extract)
3. Delete app, framework, fonts and media folders in BASE rom and move the app, framework, fonts and media from PORT rom to BASE rom
4. Your rom is now ready. Boot into recovery, Wipe everything and flash the BASE rom. It should boot. If it does not boot then do the next step
5. Go into system/lib folder in both the roms and replace the libandroidruntime.so file
6. Remember the final rom is BASE rom which you should flash on the phone.
reserved
Important: Before porting any rom always ask the developer about permission. I he allows then port and if he refuse then work on another rom. Dont ask him again and again.
Hey,
Good work!
You can port roms like sense, touchwizz... see my guide
Sent from my XT890 using xda app-developers app
GalaxyUser said:
Hey,
Good work!
You can port roms like sense, touchwizz... see my guide
Sent from my XT890 using xda app-developers app
Click to expand...
Click to collapse
Well yes but they require advanced knowledge about porting and are always buggy. This faq is for absolute beginners
UPDATE: added a guide to port rom. Hope you will like it
Could I port a rom designed for Samsung Galaxy Beam GT-i8530 to my Samsung Galaxy Beam GT-i8520 (Note that the first product model ends with 30 and the other ends with 20).
They are different phones and I would like to be able to update the stock Android 2.1 on my i8520 to Android 2.3 or above, preferably with the projector app/function of the i8530.
Both phones have projectors built in, but they are a little different in specs.
can we port 4.2 rom to 4.1.2 with same resolution, cpu & processor ??
plz confirm
Maveric-Romeo said:
Could I port a rom designed for Samsung Galaxy Beam GT-i8530 to my Samsung Galaxy Beam GT-i8520 (Note that the first product model ends with 30 and the other ends with 20).
They are different phones and I would like to be able to update the stock Android 2.1 on my i8520 to Android 2.3 or above, preferably with the projector app/function of the i8530.
Both phones have projectors built in, but they are a little different in specs.
Click to expand...
Click to collapse
I doubt that you will be able to get it to load, I've ported cm7,9 and cm10( cm10 requires me to decompile framework.jar add cdma smali files recompile the framework.jar. swap out the baseband libs and edit the build.prop cm7 and cm9 are the easiest for porting as its basically copy and paste cm9 is just baseband and build.prop edits for me to get cdma working it
Sent from my R800x using xda premium
darkharbinger81 said:
I doubt that you will be able to get it to load, I've ported cm7,9 and cm10( cm10 requires me to decompile framework.jar add cdma smali files recompile the framework.jar. swap out the baseband libs and edit the build.prop cm7 and cm9 are the easiest for porting as its basically copy and paste cm9 is just baseband and build.prop edits for me to get cdma working it
Sent from my R800x using xda premium
Click to expand...
Click to collapse
Thank you. I'm completely new to this and I'm not sure I really understand porting yet.
can i port 4.1 rom to 4.0 device with same specification ?
pankycool123 said:
can we port 4.2 rom to 4.1.2 with same resolution, cpu & processor ??
plz confirm
Click to expand...
Click to collapse
vny10 said:
can i port 4.1 rom to 4.0 device with same specification ?
Click to expand...
Click to collapse
Sorry for being late but someone pm'ed me about this thats why answering.
You need the same android version for both the port and the base rom otherwise it will not boot.
grt guide!!!!
from which phone i can port roms for my karbonn a9?
Really?
You said that you can port from ARMv7 to ARMv7 only. Is it not possible to port ARMv6 to ARMv6?
Good day! im using galaxy y, is it possible to port apps and framework from stock based roms to cm7 rom through your guide?
Are there any additional steps to be followed if jumping to the next android version aka from 4.2.2 to 4.4.2 ? I am asking this because i want to port a Kitkat based rom from a similar MTK 6572 device to our own device with exactly the same specs but different android versions, they even are the same brand.
Hi, can I use touchwiz stock like base rom and port on it cm10.1 ?
hi all dev-ers,
NOKIA X have low device request, and special ( android core, while wp ui ), is it possible that our mini could run it ?
Well, we still don't have a very stable one for Android, And the more important.... there are no developer left for Mini!
And I don't think to that at least now, Nokia X, is it that cool to be ported?
First for easy process, we must find an ARMv6 device that have port it to it's device, And we may grab that to port for our Device!
So if you found an ARMv6 device with Nokia X ROM, you can report me or reply your message here with a link and I may do that soon as possible
it's a nice news for you, but you have to find an ARMv6 device with Nokia X ROM interface, it should be version (Android 4.0 to 4.0.4), version 4.1 is not possible and nor ARMv7 device.
thanks iPlasm
iPlasm said:
Well, ...
it's a nice news for you, but you have to find an ARMv6 device with Nokia X ROM interface, it should be version (Android 4.0 to 4.0.4), version 4.1 is not possible and nor ARMv7 device.
Click to expand...
Click to collapse
thank you iPlasm, great to see you are still Here !!!
well, i will try and if I could find a ARMV6 device with nokia X, will link it here for your further porting...
Have you ever been jealous of that similar device with that awesome rom?
Ok Guys, here I'm gonna teach y'all how I port rom from devices with the same chipset, and similar hardware. I have used this method successfully when porting from the HD2 and Desire to my Nexus One. I have also used this method when I ported from the Mytouch 4g to the Desire S. Bottom line, if they have the same chipset, screen resolution, and have similar overall hardware, try this out. If you're not sure if you can, post the device infos in this thread. In this guide, you will be replacing files in your port rom with your base rom, unlike other guides in which you do it the other way around
Note: I am not responsible for you blowing your phone up. Use this guide under your own precautions, and ask questions if you are unsure. This guide has worked for me several times for me before so I know it is successful to some degree.
STEPS
1. Find a rom from a similar device that you want to port, for me I took this. Unzip it. I'll call it the port rom
Click to expand...
Click to collapse
2. Find either a cm rom of the same android version as the port rom and unzip it too. Call this the base rom. For this I took the latest Evervolv Nightly
Click to expand...
Click to collapse
3. First thing to do is to take the boot.img of your port rom and replace it with the one from your base rom
Click to expand...
Click to collapse
4. Next, open up the /system folder in each of the roms
Click to expand...
Click to collapse
5. Open up the /bin folder of your port rom and replace wpa_cli, wpa_supplicant, and vold with those from your base rom. Also copy over all the files from your base rom that aren't in your port rom
Click to expand...
Click to collapse
6. Now open up the build.prop and make changes to "ro.product.brand", "ro.product.name", "ro.product.board", "ro.product.model", "ro.product.device" to match your base rom
Click to expand...
Click to collapse
7. Next, open up the etc folder and navigate to firmware. Here, you'll need to delete all of the files that do not contain the word "yamato" and place all of the files without "yamato" from your base rom to port rom
Click to expand...
Click to collapse
8. Still in /system/etc, copy all of the missing files from your base rom to your port rom
Click to expand...
Click to collapse
9. Next, navigate to /system/lib. Open up the hw folder in your base rom and copy all of the files with your device codename into your port rom. For example, the Nexus One is called passion, so I copy over the files that say lights.passion.so, gps.passion.so, and sensors.passion.so
Click to expand...
Click to collapse
9. Now go back to /system/lib and delete from your port rom /system/lib/modules, libwpa_supplicant.so, librpc.so, and libhardware_legacy.so. Replace them with the ones from your base roms
Click to expand...
Click to collapse
10. Here, replace the /system/usr and /system/vendor folders in your port rom with the one from your base rom
Click to expand...
Click to collapse
11. Navigate back out of /system and go into /META-INF/com/google/android/updater-script in your port rom. Make sure you edit this file with Notepad++ if on windows, or X-Code if on MAC
Click to expand...
Click to collapse
12. Now here, find the lines(normally near the top) that say assert...blah blah... device xyz, and delete them. Find these same lines in your base rom and put them there.
Click to expand...
Click to collapse
13. Next, go down to either set_perms or set_metadata_recursive, and make the changes that reflect the changes you made in the rom. For example, my base rom doesn't have the file /system/vendor/etc/audio_effects.conf so I would delete the lines
set_metadata("/system/vendor/etc/audio_effects.conf", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
Click to expand...
Click to collapse
Click to expand...
Click to collapse
14. After making all of these changes, navigate back out to the root directory of your rom and zip it all up.
Click to expand...
Click to collapse
15. Finally flash the rom!
Click to expand...
Click to collapse
There's still lots left to do on this thread, so please be patient. However, the steps above should work
Reserved... For FAQ later
Reserved again for other stuff....
And one more just in case....
Can I port Panasonic p65 rom on p50 both phones contains similar hardware, but differs in screen size
And what if the chipsets are not same, can still something be done, like im talking about
Samsung Galaxy S DUOS 2 (GT-S7582)---------------------and------------------Samsung Galaxy S DUOS (GT-S7562)
4.0 inches (~59.4% screen-to-body ratio)----------------------------------------4.0 inches (~59.4% screen-to-body ratio)
480 x 800 pixels (~233 ppi pixel density)------------------------------------------480 x 800 pixels (~233 ppi pixel density)
Android OS, v4.2.2 (Jelly Bean)-----------------------------------------------------Android OS, v4.0 (Ice Cream Sandwich)
Chipset BCM 28145/28155-----------------------------------------------------Qualcomm MSM7227A Snapdragon S1
CPUDual-core 1.2 GHz Cortex-A9-----------------------------------------------1.0 GHz Cortex-A5
GPU Broadcom VideoCore IV--------------------------------------------------Adreno 200
4 GB, 768 MB RAM-------------------------------------------------------------------4 GB (1.8 GB user available), 768 MB RAM
Can I port cm rom with stock one ??
Device Specs
Which specs must be same to port a rom?
i also want to know
TechSTER™ said:
And what if the chipsets are not same, can still something be done, like im talking about
Samsung Galaxy S DUOS 2 (GT-S7582)---------------------and------------------Samsung Galaxy S DUOS (GT-S7562)
4.0 inches (~59.4% screen-to-body ratio)----------------------------------------4.0 inches (~59.4% screen-to-body ratio)
480 x 800 pixels (~233 ppi pixel density)------------------------------------------480 x 800 pixels (~233 ppi pixel density)
Android OS, v4.2.2 (Jelly Bean)-----------------------------------------------------Android OS, v4.0 (Ice Cream Sandwich)
Chipset BCM 28145/28155-----------------------------------------------------Qualcomm MSM7227A Snapdragon S1
CPUDual-core 1.2 GHz Cortex-A9-----------------------------------------------1.0 GHz Cortex-A5
GPU Broadcom VideoCore IV--------------------------------------------------Adreno 200
4 GB, 768 MB RAM-------------------------------------------------------------------4 GB (1.8 GB user available), 768 MB RAM
Click to expand...
Click to collapse
Plz help me out i want to upgrade my s duos anyhow
[email protected] said:
Plz help me out i want to upgrade my s duos anyhow
Click to expand...
Click to collapse
It can be upgraded to 4.4.4 Kitktat. Go to any of these threads and try
1. https://forum.xda-developers.com/s7562/development/cm11-12-rom-s7562-t3308611
2. https://forum.xda-developers.com/s7562/development/cm11-samsung-galaxy-s-duos-kitkat-4-4-4-t3024762
Samsung similar hardware
First ... i would like to thank you for this post ...
Second ... I have Samsung galaxy exhibit (sgh-t599) running android cm13 rom ... and i found cm14.1 rom for Samsung 3 mini (gt-i8190) ... to my knowledge these two phones has almost the same hardware and the same chipset ...
What i need to do is to build cm14.1 rom to be used on sgh-t599 ... my question is so simple ... which rom i should call the base rom and which rom is to be considered as the port rom ?!!!
I want to port Android 5.1 Rom to my Huawei P6-U06 currently running on Android 4.4. Can you find a base and a port Rom?
Is this still the way to port roms between similar devices in 2020?
user154 said:
I think it would depend on the devices. There are a few good guides on porting that do things in slightly different ways. What chipsets do the devices in question have? I may be able to point you in the right directiom
Click to expand...
Click to collapse
That would be great, thank you! I'm looking into porting the 8.0 rom from a Teclast M30 into a Teclast M89 pro (currently 7.1.1). Both have the Mediatek Helio X27 MT6797X, with the main differences being the amount of RAM, storage and display.
user154 said:
When talking about the similarity of devices, in regard to ROM porting, the main thing that matters is the chipset. The fact they both have the same chipset is a great start.
For MTK devices I found this guide particularly useful
https://forum.xda-developers.com/android/software-hacking/guide-port-64-mtk-roms-t3555933
Click to expand...
Click to collapse
Awesome, thank you so much!
Hi..a total noob here .well not completely.. I've flashed ROMs but not gone into porting..
I have a Chinese import that's stuck on 7..but there's another tablet that has everything the same apart from the display is 10.1..would this be an easy port..I do use this tablet a fair bit so wouldn't want it killed off lol..thank you
Porting Nougat from Galaxy S2 9.7 t810 Tablet to Note 4 (n910k)
user154 said:
I think it would depend on the devices. There are a few good guides on porting that do things in slightly different ways. What chipsets do the devices in question have? I may be able to point you in the right directiom
Click to expand...
Click to collapse
Porting Nougat from Galaxy S2 9.7 t810 Tablet to Note 4 (n910k)
Where do I start? Both devices have the same exynos 5433 SoC but the tablet has a different resolution and Nougat update and I want that Nougat on my note 4.
Hi , any guide for porting android 13 Rom for Qualcomm devices
My device is Realme 2 pro (RMX1801)
Hi,
I just wanted to know if i can install nexus pure android on my xolo 8x 1000 phone. Also i see that nexus is a 4.7 inch screen phone and mine is a 5 inch screen. Would it still work. Please let me know
- A Newbie
Welcome on XDA and No you can not
abhi2310 said:
Hi,
I just wanted to know if i can install nexus pure android on my xolo 8x 1000 phone. Also i see that nexus is a 4.7 inch screen phone and mine is a 5 inch screen. Would it still work. Please let me know
- A Newbie
Click to expand...
Click to collapse
don't even try to do that. this will ruin your phone. moreover you first need to root your phone. Root will make you loose your warranty. after that you need to install custom recovery if any available for your phone.just search google some like xda your phone name and model. see if you revert back any reply. if yes then follow the threat there read and apply your mind.And think hundred times before doing anything. :good:
installing Hive 8x-1000 rom on Gionee E7 mini
sachoosaini sir
i want to port Hive 8x-1000 rom for gionee e7 mini. both have mtk 6592 cpu and same OS version. can you help????
use the l
Gourav saini said:
sachoosaini sir
i want to port Hive 8x-1000 rom for gionee e7 mini. both have mtk 6592 cpu and same OS version. can you help????
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1598713 and use google. good luck :good:
[
HI I am not an Expert at building rom. I Really love Resurrection Remix ROM as it got most costimizable feature and extreme good battery and i am sure you would love it aswell and i got this rom on my nexus 5 and galaxy s3 so, i tried to port this rom From Oneplus one as it has similar specs but it didn't work after lots of try i cant build it i want to build it from source but i dont have computer with high specs and ubuntu os .( Even if i did build it from a source i wont be able to solve bug so no point)
So could any one please build this ROM For our device please .
about this rom: http://www.resurrectionremix.com
Source: https://github.com/ResurrectionRemix/platform_manifest/blob/kitkat1/README.mkdn
:good:Thank you :good:
[email protected] said:
HI I am not an Expert at building rom. I Really love Resurrection Remix ROM as it got most costimizable feature and extreme good battery and i am sure you would love it aswell and i got this rom on my nexus 5 and galaxy s3 so, i tried to port this rom From Oneplus one as it has similar specs but it didn't work after lots of try i cant build it i want to build it from source but i dont have computer with high specs and ubuntu os .( Even if i did build it from a source i wont be able to solve bug so no point)
So could any one please build this ROM For our device please .
about this rom: http://www.resurrectionremix.com
Source: https://github.com/ResurrectionRemix/platform_manifest/blob/kitkat1/README.mkdn
:good:Thank you :good:
Click to expand...
Click to collapse
Yes, its realy good rom i use this rom on galaxy s3.
What specs need to build, I have ubuntu i can help.
you can build with any specs, all you need is a decent cpu and hdd (ssd not recomended)
Envious_Data said:
you can build with any specs, all you need is a decent cpu and hdd (ssd not recomended)
Click to expand...
Click to collapse
Why ssd isnt recommend for build roms?
I find:
Operating system – Tested on Ubuntu 12.04, 12.10 and 13.10 (64-bit)
Terminal
Decent hardware (minimum of at least a dual core CPU and 4 GB of RAM)
Optimally have an SSD (standard mechanical drives work as well but slow down the process drastically)
Must have required packages for building installed, I will list them further down
PRO>KOMP.< said:
I find:
Operating system – Tested on Ubuntu 12.04, 12.10 and 13.10 (64-bit)
Terminal
Decent hardware (minimum of at least a dual core CPU and 4 GB of RAM)
Optimally have an SSD (standard mechanical drives work as well but slow down the process drastically)
Must have required packages for building installed, I will list them further down
Click to expand...
Click to collapse
try using this guide
https://github.com/ResurrectionRemix/platform_manifest/blob/kitkat1/README.mkdn