yashsingh1/xdaforums huggingface dataset:
[Defy Q&A, Help & Troubleshooting] DragonautMk:
My 525 flashed with 526 works fine XD what ROM are you using?
[Android Software Development] Maurice5813:
Many users have had trouble porting Roms due to Google's new file System optimizations and Setup. Here I will show you how too, this guide works 9.5/10 times:highfive:

Your base Rom MUST Be Cyanogenmod, this guide is also known to work on AOSP Android 4.4, You can NOT Port different android versions!!! Also, Devices need to be the same resolution! Also You can NOT port CM Based roms with AOSP as a base! You can NOT port CM based roms with AOKP. Same goes for vice verse!

Also, YOU CANNOT USE STOCK AS A BASE OR PORT STOCK ROMS!

Before we get Started, you need:​

Winrar - For extracting and building zips

Notepad ++ - For editing scripts

Tiny bit of experience with the Android File System

20 minutes of your Life

A Desktop (Windows/Linux/Mac - Works on all!)

A Brain:p

Lets Clear Up Some Fog:​

Q. What Is Base Rom?

A. The Rom which Is developed and working for YOUR Device.

Q. What is Port Rom?

A. The Rom that you want to port to your Device.

Q. What Roms Can I port?

A. Any Cyanogenmod Based Roms, and AOSP based You cannot port AOSP to CM Based roms with this guide. For AOSP you can only port AOSP based roms, same goes for AOKP.

Q. What about Hybrid Roms? Can I port those?

A.Yes and No. Before you port Hybrid Roms, read the threads carefully. Hybrid Roms are based on one Rom with "cherrypicks" of others. Find out what it is based on. If it is based on CM with cherrypick from aosp, slimrom,etc. than use CM as base rom If it is based on AOSP with cherrypicks of CM than use AOSP a base rom.

Instructions

​
[Android Software Development] Maurice5813:
Fixing a Bootloop:​

Your Port should take less than 5-8 minutes to boot. When the screen dims during boot logo, your Rom has successfully boot:highfive: But If your waiting for like 15 minutes, and boot logo is still going, YOU HAVE A BOOTLOOP. Luckily, the fix is easy!;)
[Android Software Development] Maurice5813:
If you are having trouble with this Guide, I have another method I call the Quick Port Test.This saved me alot of time and energy to get ports booting. All you have to do is:

Follow Steps 1-7 and Skip the rest

Now do Step 16 and Flash

Thats it! It takes less than 10 minutes! If you have Bootloop trouble Follow all the setps in Section 2.
[Android Software Development] Maurice5813:
reserved for OP
[Android Software Development] sooorajjj:
1st bump:D
[Android Software Development] Deleted member 4258086:
thank you ,,starting right now:good::good::good:
[Android Software Development] Maurice5813:
your welcome, it so far has been working for alot of users, they keep pming me:laugh: If you have any issues feel free to post them here
[Android Software Development] ChinmayKunkikar:
Can I port a Manufacturers rom using this? like sense?

I know there is a guide for it, but does your method work?
[Android Software Development] Maurice5813:
no, this method won't work, manufacture roms are WAY more complicated to port. Use this guide:

http://xdaforums.com/showthread.php?t=2245786
[Android Software Development] praveenbablu:
I want to port a rom from galaxy y s5360 to ace s5830i.but the resolution of the "y" is less than "ace I" is there any solution to increase the resolution(like apps icon's dpi etc to "ace I")
[Android Software Development] Maurice5813:
Yeah it should work, but somethings may be too big, I would recommend porting roms from the galaxy mini, they both have the same resolution;)
[Android Software Development] gamerman123x:
Dumb question but can you port an already ported rom?
[Android Software Development] Maurice5813:
yep, what are you trying to port?
[Android Software Development] gamerman123x:
[MENTION=5481187]arDroid.99[/MENTION] im trying to port http://xdaforums.com/showthread.php?t=2485628 with this as the base http://fitsnugly.euroskank.com/?rom=cm11&device=maguro on the galaxy nexus it got updated yesterday and i ported the last update on windows 7 and i tried to port the latest update on windows xp and mac and i get bootloops and i tried the bootloop fix and it doesnt work ?
[Android Software Development] Maurice5813:
Use pure cm11 as base
[Android Software Development] gamerman123x:
Im using unofficial cm11 i cant find any pure cm11's for galaxy nexus

ohh and the windows 7 is a 64bit and the windows xp is 32bit does it matter when it comes to archiving the zips
[Android Software Development] Maurice5813:
try this one:

http://xdaforums.com/showthread.php?t=2525351
[Android Software Development] gamerman123x:
ok and im going to try to port on my imac 64bit and is there any certain programs i can use for editing build.prop and to extract and to archive zips
[Android Software Development] Maurice5813:
IDK, I don't like using macOSX, strictly windows and ubuntu:laugh:
[Android Software Development] gamerman123x:
ya i dont like mac either but its the only computer in my house that has wifi and i cant get another one for a bit anyways the port rom has an extra folder in system called cameradata should i copy that to base and in the init.d folder in the port rom it has a whole bunch of init.d tweaks idk if its compatible with the galaxy nexus and or should i copy them to base and it has the regular init.d files that i deleted from base ?
[Android Software Development] basem_ym:
Can you explain more please?
[Android Software Development] sohamsen:
camera and bluetooth are kernel and module related issues

you cant fix them because those things cant be ported from other rom

if you port them to your base then you will simply brick your device
[Android Software Development] WingedLion:
Can security updates/patches also be ported?
[Android Software Development] sohamsen:
ya
[Android Software Development] WingedLion:
How?
[Android Software Development] andregarcia_1:
Nice thread

Enviado de meu XT1650 usando Tapatalk
[Android Software Development] Milor123:
port kernel without bootclasspath

Dude, how can port a boot that not have the "BOOTCLASSPATH"?? in my case, i want port a kernel 3.10.72 to 3.10.99 because need it for port a cm13 to my mt6282 device

can someone help me?? thank you very much

I've try replace the kernel "boot.img-kernel" and other files with the carlivimgkitchen... but it not work for me....
[Android Software Development] TigerKing:
Can someone please help me finding similar device/porting compatible device for Lenovo Vibe P1m?

I want to port different ROMs for this device.
[Android Software Development] hyperterminal:
[MENTION=5481187]Maurice5813[/MENTION] I didn't really get the last step, should I make a zip of the port rom or the base rom?
[Android Software Development] Wizard_101:
In the last step you just have to make a zip of BASE Rom(since we did all the replacing with base rom)...which is consisting of these folders

META-INF

System

boot.img or data.img (if it is present)

file_contexts (if it is present)
[Android Software Development] hyperterminal:
Ok, Could I take any ROM as my 'port ROM' or is it supposed to be device specific? Could I take a Ressurection Remix ROM based on mm which was ported to my device by someone else as my base and Lineage OS 14.1 (of any device) as my 'port'?
[Android Software Development] Wizard_101:
Rom porting is not so easy job

You can take the Rom you mentioned as long as it is bug free...

And yaa it is device specific in a manner..

Cause you would need specs of both phones matching...

Edit:

[MENTION=7496856]sharath3589[/MENTION]

My bad dude just so you don't face any problem with porting using the RR ROM u mentioned

I would suggest you to use the ROM which was developed from source for your device

Cause already ported ROM might give you bootloop problem...:p
[Android Software Development] er.um:
I want to port a rom made for a mobile for my tablet. Will it work?
[Android Software Development] The Penguin:
Thank you so much!!!! I ported AOKP oreo for my J5 2016!!!!
[Android Software Development] Maurice5813:
No, don't ever copy folders like cameradata or ext4 or extra. But yeah, you can copy all those init.d tweaks, if it isn't compatible it won't start on boot;)
[Android Software Development] Maurice5813:
also, try the quick port steps, because sometimes permissions won't let the rom boot;)
[Android Software Development] gamerman123x:
Alright
[Android Software Development] TecknoFreak:
I wonder if is a good idea to leave framework storage_list.xml on base as it is and not use the one from port ROM?

Reason I ask is if the ROM I'm porting have some difference in hardware. Before I mess with it I ask just in case. Lol

Thanks as I successfully ported a nexus 5 aosp ROM into a smaller device like razor HD. The only thing is that is 50-50 as for some it boots perfect but for others get stuck on bootloop
[Android Software Development] gamerman123x:
Still get stuck in a bootloop when trying to port an updated version of I rom I already ported. I don't think it works on windows XP and Mac idk ill wait till the next update and see what happens

---------- Post added at 11:03 PM ---------- Previous post was at 11:02 PM ----------
[Android Software Development] praveen7682:
I have an GPE custom Rom for HTC butterfly and a stock based custom Rom...will I be able to port...
[Android Software Development] Maurice5813:
No, its a manufacture rom, you need to use a different guide;)
[Android Software Development] TecknoFreak:
Any ideas?

True is I need to decompile/compile/sign as I do for any port anyway to make some edits to it but was wondering if this can work as the processor speed are different by a ton

Any ideas?
[Android Software Development] Maurice5813:
well without changing that xml, the rom will still boot, but if there is no internal storage then you need to change it to the base roms
[Android Software Development] TecknoFreak:
Thank you very much sir as always.
[Android Software Development] Maurice5813:
updated: Fixed some details:)
[Android Software Development] TecknoFreak:
Hey bro check out these 2 devices and please since in porting ROMs you seen to be an expert please tell me if the nexus 5 can be ported to Atrix HD. I will appreciate if you do
[Android Software Development] gamerman123x:
[MENTION=5481187]arDroid.99[/MENTION] is it ok to edit the updater script in meta inf -> Google - android and add the installation process text logo thing when installing. from the port rom to the base rom updater script?
[Android Software Development] Maurice5813:
Yes, your talk about the lines that start with "ui_print" right?
[Android Software Development] gamerman123x:
Ya
[Android Software Development] Maurice5813:
yep, that is just text that shows will updating in the recovery, like:
[Android Software Development] gamerman123x:
On my Mac I have a virtual image of windows 7 and Ubuntu 10.04 is that ok to use to port and I have geany and 7zip on Ubuntu and notepad++ and winrar on windows 7 on my Mac
[Android Software Development] Maurice5813:
Yeah, if your got the windows 7 drivers I would install it, but if not install ubuntu 13.10, its way better than 10.04 with more support;)
[Android Software Development] gamerman123x:
Ya alright and I have the ISO image files I downloaded them it's like 3gb
[Android Software Development] Maurice5813:
For windows 7? Because ubuntu 13.10 is like 900MB:laugh:
[Android Software Development] gamerman123x:
Ya windows 7 so now I have like 3 operating systems on my computer :o
[Android Software Development] Maurice5813:
wow, you got a way bigger hard drive than me, I got a 250GB:laugh:
[Android Software Development] gamerman123x:
Ya I got 500gb 4cores 4gb ram its alright.
[Android Software Development] Maurice5813:
Im on a 4 core too with 5GB ram, but my hard drive holds me back. I'm a gamer, so dual booting is all I can do, have to have a good 110GB for games:laugh:
[Android Software Development] gamerman123x:
Ya I game on my ps4 but program on my computer :rolleyes:
[Android Software Development] Maurice5813:
I'm stuck with my ps3 till friday, hopefully they get my shipment in...
[Android Software Development] gamerman123x:
Nice I still have my ps3
[Android Software Development] TecknoFreak:
Thanks I did anyway for the heck of it. Lol well I might be the only person doing this and it works even though I had to get deeper making changes from the framework to the system file since these 2 devices are way off in everything. Lol

Also from CDMA I manage to make it work on gsm., I added the external SD mount and tons of stuff to it.

Thanks for your guide and thanks to it im porting the best KitKat ROMs to Atrix HD. Wooohoooo
[Android Software Development] Maurice5813:
great, it works all the time for me:highfive:
[Android Software Development] Maurice5813:
battlefield 4 and gta 5 are the only games that got me hanging on to it:p
[Android Software Development] gamerman123x:
I think the reason the latest build I tried to port from the s3 beanstalk rom didn't work because there is additions to the init.d that the last build didn't have and i think that the build needs those additions in order to work and it won't boot up onto my device galaxy nexus idk :what: :confused:
[Android Software Development] Maurice5813:
try porting, but skipping the init.d steps, then if it boots, handpick the init.d tweaks you want
[Android Software Development] gamerman123x:
Ya I'm getting bf4 for ps4 and I'm like multi tasking both because of gta 5

---------- Post added at 11:50 PM ---------- Previous post was at 11:49 PM ----------

So do I do all the other parts and for some reason when I ported the last build I copied cameradata to base rom and it worked.
[Android Software Development] Maurice5813:
yeah do all the other parts. And if it work with the cameradata folder, thats your answer! I'm going to try and port some nexus 4 roms (for some reason non will boot for me) I think you just solved my issue!
[Android Software Development] gamerman123x:
Alright NP
[Android Software Development] gamerman123x:
Can i port nexus 5 roms to galaxy Nexus ?
[Android Software Development] Maurice5813:
no, the res is too high, just look at the res to see if you can port
[Android Software Development] gamerman123x:
ya it doesn't work i tried it and it wouldn't boot
[Android Software Development] Maurice5813:
all because of res, but also audio libs and files needed in newer devices will make a rom fail to boot. Theres nonthing that can be done saying these files are device specific
[Android Software Development] Maurice5813:
updates:D
[Android Software Development] Aceofzeroz:
4.3+ Rom Porting Advice

Thanks for making a much needed guide for porting the latest 4.4+ android iterations, as well as in general.:good::D My thing is that with searching around for such guides is that none seem to adequately outline a working method porting specifically 4.3 and 4.3.1 roms beside CM 10.2. I'm having a lot of difficulties getting ported 4.3+ roms to boot without sudden bootloop, such as Carbon, LiquidSmooth, Eclipse and PACMan.

I was surprised that they're harder than 4.4+ roms since my first 2 successful ports back then were 4.2.2 LiquidSmooth and 4.4.1 Carbon rom, but when I tried 4.3 with this or using the port itself as another method, it ended the same exact way. Have you ever successfully ported any 4.3 roms I listed above and if so, was there some special step involved? Thanks in advance!:D
[Android Software Development] Maurice5813:
I have but really it depends on the 4.3 rom, Some 4.3 roms are just "unportable", I have the same issue sadly:o
[Android Software Development] Aceofzeroz:
Hah, I was sorta afraid of that since I deemed them the same thing myself, but I agree. Gonna keep trying though since they're the only versions have not ported yet, but thanks for the quick response.;)
[Android Software Development] Maurice5813:
Your welcome, I'd try the quick port guide in post #3;)
[Android Software Development] jcruz767:
Would it be possible to port a rom from a GSM variant of the phone to a CDMA variant of the phone. Or is that just something unholy that shouldn't happen.
[Android Software Development] Maurice5813:
nope, completely possible, and sense its the same phone, you should have any issues:victory:
[Android Software Development] aldiandrew:
hi i tried your port methode and yes i succeed boot because the rom which i am port has same cpu,ram and resolution. all works include data,camera,wifi,blutooth etc but i found 1 problem that is battery stats, this always show lowbatt and not charging,on status its show battery unknown even i tried to wipe all and reboot. any suggestion for this problem sir ? (i tried to move the 3 file lib from port to base and nothing change :D ) i feel i am close enough to succeed, and great thx for tutorial ;)
[Android Software Development] Maurice5813:
that has nonthing to do with my guide, nonthing here will fix it. Its the rom itself
[Android Software Development] Aceofzeroz:
Heya man, I finally found the issue causing all of my 4.3 ports to not boot up; it was the storage list inside framework-res.apk. For more details, check out my porting thread in my profile and you can see if it works for you as well. :cool:;)

Sent from the Ace's MB865 using Tapatalk
[Android Software Development] Maurice5813:
Wow! Great find, storagelist.xml usually just makes the internal and external sdcard unmount on boot, but I definitely didn't know this!:good:
[Android Software Development] Aceofzeroz:
Haha, yes it was since our device doesn't have an accessible internal SD card to switch to while the port phones do. I'm now experiencing another problem with the phone.apk always crashing on boot. Also, due to that I don't have any baseband either despite copying all necessary ril files.

I'm using an alternate method in which I'm using the port rom itself and just converted it to a compatible one for my phone. This usually works 80% more often than the usual method for me. :D So do you know what would usually cause this constant FC?
[Android Software Development] Maurice5813:
Not exactly, I've only had this issue once (when I ported my second rom). Have you tried removing nfc.apk and libs from your ported rom and then flashing. If it doesn't fc you can replace with the ones from your base.

I usually don't get this, but are there any issues in the port rom with service or anything?
[Android Software Development] Aceofzeroz:
Well I'm not getting the baseband to work which usually does when I use this method on the other Android versions. I just used catlog to take a logcat and found these related Fatal error lines:

2-26 11:08:00.193 F/libc (4444): Fatal signal 6 (SIGABRT) at 0x000001e2 (code=0), thread 4444 (m.android.phone)

12-26 11:08:02.717 E/AndroidRuntime(5462): FATAL EXCEPTION: main

12-26 11:08:02.717 E/AndroidRuntime(5462): java.lang.RuntimeException: Unable to get provider com.android.phone.MSimIccProvider: java.lang.ClassNotFoundException: Didn't find class "com.android.phone.MSimIccProvider" on path: DexPathList[[zip file "/system/app/Phone.apk"],nativeLibraryDirectories=[/data/app-lib/Phone, /vendor/lib, /system/lib]]

So it may be a clash with the Vendor libs, system libs or data (which isn't there in these rom zips). I'm gonna try swapping the phone apk with my base rom's and some libs to see if that helps. :)

Sent from the Ace's MB865 using Tapatalk
[Android Software Development] TecknoFreak:
I have this problem myself but porting 4.4.+ roms from nexus 5 to Atrix HD. It will not just pass the boot animation as it loops there for ever. The only way to make it bootup is by dirty flashing my port over the base rom. Is the onlyway it will boot.

the problem I see with the storagelist.xml is that Nexus5 doesnt have external sd as the Atrix hd mb886 does. What you think is the problem instead?
[Android Software Development] Aceofzeroz:
More than likely, but may also be other factors since I tried porting from the omap 4 galaxy s2 and encounter the same thing. I believe it's the storage, updater script and maybe a couple of libs but I'm still trying to figure a lot of rom porting out atm lol.

Sent from the Ace's MB865 using Tapatalk
[Android Software Development] Maurice5813:
Nope, your both in the wrong:laugh: It doesn't matter about any of that stuff, the atrix hd is simply too small. Those phones are 2 different resolutions. If you read the OP, it states you cannot port different resolution devices. It just won't boot (believe me, I've tried)

And with 4.4+, that storage list fix only works with a couple phones, otherwise the rom will boot fine, just without internal storage mounted. I know because I've done it on my htc one s, nexus 4 and Desire HD

And updater script doesn't cause any rrors in 4.4, if it flashes, it's fine, theres no reason to edit it, besides the only fail will come from porting Pure CyanogenMod (only custom cm based roms work, not pure cm source to pure cm source)

P.S, the only device with the same res as Nexus 5 is HTC One and S4 as far as I know
[Android Software Development] aniket.lamba:
Can I port stock roms with this method.Wanted to port some 2.3.6 roms to SGY.
[Android Software Development] Maurice5813:
no, read the op
[Android Software Development] TecknoFreak:
Phony thing is that it does boot fine if i dirty flash port it on top of base. Works perfectly that way
[Android Software Development] Maurice5813:
it booted?
[Android Software Development] TecknoFreak:
Yes just perfect with no issues at all. But only if I dirty flash port on top of base rom.
[Android Software Development] MisterSprinkles:
So I'm having some issues... I am able to get it going and got passed all the bootloop errors. Only problem is it stays at the bootanimation and then adb stops working. The computer recognizes that a phone is plugged in but I am unable to mount any storage. Logcat just cuts out and if I try to do it again, it says "waiting for device". Ideas?
[Android Software Development] Aceofzeroz:
Heya, well with those symptoms try this out. Go into system/framework and open framework res.apk with a compression tool e.g. winrar. Navigate to res/xml/ and look for storage list.xml. Replace that file with the one in your base and try again. :)

Sent from the Ace's MB865 using Tapatalk
[Android Software Development] waza97:
I want to make a fully working Rom for HTC desire x. There is an almost fully working cyanogenmod 10.2 Rom for the huawai asscend y300 which has exactly the same specs such as processor etc. So I was wondering if I used my partial working cm10.2 for the desire x and port permissions and other stuff from the huawaii ascend Rom to get thing such as WiFi working is that possible to do using your guide is it even possible at all?
[Android Software Development] Aceofzeroz:
If the specs and everything are in check, then I highly believe that you can do it. :) Try using my Porting Method 2 since it's been the most successful method I've used lately. Good luck and let me know how it goes.

Sent from the Ace's MB865 using Tapatalk
[Android Software Development] waza97:
Thanks I will inform you. :D in the next days or weeks
[Android Software Development] Blue59:
hey help me plz i ported a rom for my device step by step but its on boot animations not open. what can i do? where is problem?
[Android Software Development] :
What are you trying to port?

Verstuurd vanaf mijn Galaxy Nexus met Tapatalk 4
[Android Software Development] :
has anyone got kitat to port with this? i got jellybean to but cant get kitkat to. im using a kindle fire hd 7 porting from nexus 7 2013 wif.
[Android Software Development] TecknoFreak:
I did ported a nexus 5 rom (PSX v1.0 android-4.4) into a smaller and 16 months old device like the Atrix HD (Mb886). It worked perfect as long we dirty flash it on top of the base. I haven't been able to port 4.4.2 though.
[Android Software Development] :
Maybe that's the problem I'm having is that's its 4.4.2 thanks for the info
[Android Software Development] SeeZaar:
help please!

Hi! I need help... Where can i download clean cyanogen mod 10 or 11? :confused: ;)
[Android Software Development] ajay131:
Can I port VIVO 3.0 (CM7.2) to stock base.????
[Android Software Development] CedArctic:
If we have a wifi issue (not enabled and greyed out) what can we do?