yashsingh1/xdaforums huggingface dataset:
[Android Software Development] jaylence:
Hello, I own a Galaxy A5 2016 (A510Y). Just recently, samsung has rolled out Marshmallow update for the Galaxy A510F Models. As much as I wanted to try the latest firmware on my device, I created a custom rom based on A510F. I believe these two phones are identical in everything.

After installing the custom rom on my A510Y, everything works except for the capacitive touch buttons (recent app & back button).

My phone is still on 5.1.1 Lollipop while the ported rom is based on Marshmallow 6.0.1

Any tips on where/what to check?

Thanks in advance and more power.
[Android Software Development] Sureshtuty:
Any update to port lollipop touchwiz roms? :confused:
[Android Software Development] dangvandau2014:
Logcat

Can someone help me with this, _pasted.co/d5046544?

It boot, but android.system.phone fc and it reboot into bootloop.
[Android Software Development] Likhit123:
Is this method possible for porting latest touch wiz into redmi note 3 [pro]?
[Android Software Development] jTunes:
i have Pantech VEGA IRON 2 with model number IM-A910K and i want to port the marshmallow rom from Pantech IM Back with model number IM-100K

how can i port it perfectly?

i already try all porting post here in XDA but still can't

Hope you can help me to port my device...

thanks in advance
[Android Software Development] Hedi.Karray:
can i port a MM Stock Rom with this method to a device with the same Soc ( cpu and ram ) but with different Screen size and resolution ?
[Android Software Development] Prash_ant:
INFO!

Can this Guide be used to port Xperia M4 ROMS ? {Base Rom is CM based} Device- YU YUREKA
[Android Software Development] naga ravi 259:
Can I port TouchWiz ROM for Moto g3 xt1055 from j500h
[Android Software Development] Has.007:
Hi, have you been able to port? I've ported MM Touchwiz ROM to my Samsung Device with same soc. The major problem I'm having is that the storage is not working. Could you please help with that? I would provide you logs if you want.

Thank you. :)
[Android Software Development] bo_hai:
I'm port J500H to E500H using E500H base ROM with your method but it can't boot, it go directly to download mode when I power on. I can't even get a logcat, anyone help me?
[Android Software Development] extremetek:
I ported SM-G360H to Xperia M but when I turn on the phone, it just display the initial logo and reboots. Please help me.
[Android Software Development] yui90:
Sir, can i porting rom MM using this guide.??
[Android Software Development] STORMING BLOOD17:
Can I port S5 mini to Grand 2 [Different Android Versions]
[Android Software Development] grumpycoder100:
You can only port ROMs that are of the same version.
[Android Software Development] sameer 100:
Can i port samsung galaxy a7 to mi4i
[Android Software Development] senseijtitus:
Can I use this guide to port stock Android 7 rom from Huawei 6X to my LE2 X526 using CM14 made for LE2X526 as the base rom?
[Android Software Development] grumpycoder100:
Everything seems to be the same, so you can try this out.
[Android Software Development] senseijtitus:
Okay. Thank you.
[Android Software Development] grumpycoder100:
Hey guys, I've tried porting A7 2017 firmware to my Note 3 using CM13 as my base. When I've done all the copying and stuff, my recovery just gives an error when flashing the zip file. No status 6 or 7 errors, and nothing happens after that. Any thoughts/ideas?
[Android Software Development] senseijtitus:
Open updater script in notepad+ and remove the first two lines. Then repack and try again.
[Android Software Development] grumpycoder100:
I'll try this out. Will report back ASAP
[Android Software Development] grumpycoder100:
Hey there, thanks for the fix. However, now I have another error:

E: Error executing updater binary in zip

Any ideas? Maybe, remove some lines?
[Android Software Development] senseijtitus:
Seems the entire line is not yet removed. Make sure the updater script file starts with the line ui.print system which should be the line left there after u delete the first two lines.
[Android Software Development] grumpycoder100:
I'll check the file again. Will report back again and thanks :good:
[Android Software Development] grumpycoder100:
Back to report to you(sorry for me being irritating I'll stop after this port is successful XD), but before the line ui_print, I have a couple of lines before it.

Edit: I fixed the updater binary issue already, got the ROM to install fully. However, even after using a custom kernel after flashing, my phone stays only at the splash screen for a very long time. Any ideas?
[Android Software Development] grumpycoder100:
What if the ROM/firmware I want to port has no boot.img? Only my base ROM has a boot.img file.
[Android Software Development] Wasim625:
[MENTION=2623456]GalaxyUser[/MENTION] hey man loved ur work. hats off to u.

can u plz guide if we can port a samsung j5 prime rom to its chinese edition On5? these devices are same accept the ROMs (atleast being a non technicle person, thats what i have come to know). please help.

Thanks.

Edit: Some in depth specs of both.

On5(chinese variant of j5 prime)

Has snapdragon 430 processor with arm cortex a35 chipset. Where as j5Prime has Exynos 7075 processor with same ARM cortex a35 chipset.

And On5 has an Andreno 380 Qualcom GPU but j5 prime has MaliT720 GPU.

RAM, ScreenResolution, internal Storage, battery everything same.
[Android Software Development] grumpycoder100:
I think its best for you to try it out! I looked up more specs of these 2 devices, and yeap they are the same. So I think that you can try porting the ROM. Using the same Android versions would definitely smoothen out the whole process so that's a good thing to take note of. All the best for porting! :)
[Android Software Development] Wasim625:
So i should follow the tutorial given by the OP and make my way through it, right?
[Android Software Development] grumpycoder100:
Yes.
[Android Software Development] Bilgaxer:
Hi, this might sound nooby, but I don't have Ubuntu so I used windows, assuming that ramdisk and kernel are the same. I did the changes in init.environ.rc and also in default.prop of my base rom (cm13). Now should I repack the modified ramdisk with the split_img to create the boot.img of port?
[Android Software Development] A_Random_Guy:
Can this guide be used for porting N based roms?
[Android Software Development] yulbax:
I want to port TouchWiz ROM from Galaxy S7 or S8 (Android 7), my phone is Galaxy S4 and base is LineAge. Its really?
[Android Software Development] Aze5:
Hi,can anyone tell me how can I port Samsung A5 2017 ROM on Samsung On7 2015 with no bug and with Android 6.0.1 or 7.1.2
[Android Software Development] Dandaivin123:
Sense 7 to android nougat rom

Using this method would I be able to transfer a sense 7 rom to a android 7.1.2 non sense rom for the htc one m8
[Android Software Development] f.a.tonmoy:
I want to port a Qualcomm variant rom on Exynos variant

will this method work?!
[Android Software Development] grumpycoder100:
You can't really port ROMs of different chipset. It's very incompatible and may even cause phones to be bricked. Suggest you do not try to port ROMs from different chipsets.
[Android Software Development] Amr Shams:
plz can anyone help me

how fix video record in TW N port rom
[Android Software Development] spreet:
Suppose there is a rom already made for my device but that is based on lollipop and I want to update that rom base to latest nogat how can I change that rom base ?? I also have a stable nougat rom available
[Android Software Development] Azaderdgn_:
Source: http://xdaforums.com/showpost.php?p=41294434&postcount=23

15. Now open build.prop of PORT rom and replace these lines with BASE build.prop :

ro.product.model=
ro.product.brand=
ro.product.name=
ro.product.device=
ro.product.board=
ro.product.cpu.abi=
ro.product.cpu.abi2=
ro.product.manufacturer=
ro.wifi.channels=
ro.board.platform=
ro.build.product=
ro.build.characteristics=
rild.libpath=
rild.libargs=
wifi.interface=

16. Reboot to Ubuntu.

Steps for android 4.3 and older

Open dsixda's Android Kitchen

Decompile both boot.img/kernel

Open both init.rc files

In CM/AOSP kernel replace BOOTCLASSPATH by the one from PORT boot.img ROM

Save and recompile kernel

Use CM/AOSP modified kernel in your rom.

Steps for android 4.4 and newer

Open dsixda's Android Kitchen

Decompile both boot.img/kernel

Open both init.environ.rc files

In CM/AOSP kernel replace BOOTCLASSPATH by the one from PORT boot.img ROM

In CM/AOSP kernel do these changes:

--> ro.secure=1 to ro.secure=0

--> ro.debuggable=0 to ro.debuggable=1

--> persist.sys.usb.config=mtp to persist.sys.usb.config=mtp,adb

--> ro.adb.secure=1 to ro.adb.secure=0

Save and recompile kernel

Use CM/AOSP modified kernel in your rom.

17. Now ZIP your PORT rom folder and flash it.

​

Please don't forget to use LOGCAT to debug the rom..... And to thanks or/and donate to me .....

Thanks !

​

GalaxyUser[/QUOTE]

How to edit the meta-inf folder for romu porting. device name how to print
[Android Software Development] Bug111:
Hey bro.

Recently I ported a Oreo rom for my device.

And the port was successful and it booted.

And it's having very less issues.

But there are some.

Which you can call major issues.

1. Baseband is unknown now and both sim not working.

2.audio is not working after that bug fix too.

Your help will be appreciated answer soon.
[Android Software Development] Ww222:
Hi

Is this method works with Huawei device?(port p9 rom to mate 8)
[Android Software Development] naga ravi 259:
How to port rom from samsung odin firmware
[Android Software Development] Cyterafle:
Open,extract & decompile system.img,If it is 4 files firmware take AP and search system.img
[Android Software Development] naga ravi 259:
Can you explain about compiling and decompiling

I want to port nougat rom from s7 to letv max 2
[Android Software Development] joshjonasone:
Sorry to bring this topic back from the dead, but I have a question and I didn't know where else to ask..

I have a A7 2016 SM-A710F. Latest firmware my phone has is Android 7.0 Nougat and I would like to update it to Android 9.0 Pie.

Can I use this method to port firmware from J7 Core SM-J701F/DS? Considering their hardware is pretty similar would they be compatible for this kind of thing? They use the same processor and they have some other similarities, but they have different chipsets and different GPU's.

Thank you in advance.
[Android Software Development] ebrahimwaleed:
i managed to boot custom roms for my samsung galaxy note 5 (n920p) same android and higher android os i even tried flashing other note 5 model the problem is with the sim detection and baseband is unknown i did try all possible from compiling a kernel and using stock kernel with other models stock rom and adding missing files in system bin and libs files unfortunately with no luck becz my phone is CDMA device currently i am on a working moded rom that supports gsm sim i just need help to understand how ril work on my model so i can port a higher android like oreo or pie with working sim any help will be awesome thanks in advance and srry for my bad english
[Android Software Development] Arm_Th:
Does this method still work for marshmallow or nougat?
[Android Software Development] CNexus:
No, has to be the same version.
[Android Software Development] quantan:
To HTC HD2 :D. Everything now seems to be zero :D.
[Android Software Development] gypsy214:
Been following this thread. As it seems very simple but you know porting another os will have lots of bugs... OP can you explain to me when you said look for a similar device to make a port. For example I have the Tmobile GS3 T999, Witch is the same screen as all 4.8'' mine is a dual core, can i port a rom from quad core? I would like to start out with the gs4 witch it have 4.2.2 in this case i should use cm 4.2.2 same android version. GS4 have a 5'' screen, is it compatible? I dont understand what similar device do you mean.
[Android Software Development] GalaxyUser:
Hi,

It's android so basically you can port every rom to every device by replacing some files etc... But for best result you need to port a rom from similar device.

Exemple:

Same screen resolution (480p, 720p, 1080p)

Same cpu family (Snapdragon, etc...)

But yes you can port GS4 rom to another device, even to a GS2 if you want but it will need more time and more work to get it working
[Android Software Development] xboxfanj:
Actually, the GPU is more important than the cpu. CPU is all in the kernel, but GPU is in system and can create weird graphics when porting from different ones, particularly on sense.
[Android Software Development] CNexus:
+1

Just experienced this last night
[Android Software Development] gypsy214:
Well I was just wondering. Since the s4 is 5" it will look big on my s3 4.8" I didnt know that from a quadcore phone can be ported to a dual core. I always thought to port a rom ithave to be very close hardware. Will try it with the HTC ONE since is the same screen 4.8" but resolution is Hd 1080p as my s3 is 4.8" 720p
[Android Software Development] xboxfanj:
The size of the screen doesn't matter. All that matters is the resolution. Quad can be ported to dual, but the USA one x or evo lte would be easier due to the same GPU and resolution.
[Android Software Development] oguzhan mobile:
hi guys. I need sense based rom. I have only 400 mb sytem partition. My phone has armv7 msm7230 and adreno 205 (same desire z). Please help me for slim rom.
[Android Software Development] CNexus:
Follow the OPs instructions. Then put all apps that dont fit in system/app into data/app.
[Android Software Development] StaticMaal:
Yea I tired it myself followed all the instructions in the op. I got at the boot screen trying the port the ForceRom from Sprint Samsung Galaxy S4 to Sprint's S3. I even tired the little tricks like replacing the android.runtime.so from the port to see if it would boot and also as he said in the op to replace libaudiofinger.so and didn't do the trick. Is that the reason why you ported Sense 4.1.2 instead of 4.2.2 Touchwiz CNexus?
[Android Software Development] OptimusRs:
i Port su870 Rom To p920 it boot but there is Bug Size Of screen is small

anyone Know how fix This
[Android Software Development] CNexus:
Change the ro.sf.lcd_density in the build.prop.

---------- Post added at 01:52 PM ---------- Previous post was at 01:51 PM ----------

No, the reason is.because I like Sense more than Touchwiz :D

I have the files for the 4.2.2 port, just havent gotten around to doing it...
[Android Software Development] kakalko4:
i have problem. I port everythings good but if i turn on phone, it have kernel loop. how i can fix it??
[Android Software Development] OptimusRs:
not work
[Android Software Development] CNexus:
Logcat.
[Android Software Development] kakalko4:
Adb dont work on kernel splashscreen

Wysyłane z mojego SK17i za pomocą Tapatalk 2
[Android Software Development] CNexus:
It does, I've used it before.

You need to set ro.secure=0 in the default.prop of the ramdisk
[Android Software Development] MasterDevGR:
Hey guys.I want to port flyme os or slim bean to my live with walkman.Can you give me link of guides for both of them or at least for one.Thanks in advance.
[Android Software Development] kakalko4:
Thanks, i will seen it tommorow.

Wysyłane z mojego SK17i za pomocą Tapatalk 2
[Android Software Development] GalaxyUser:
Send me your build.prop

Logcat, turn on the phone and send logcat
[Android Software Development] OptimusRs:
No The Problem Not in Build.prop i fix the Bug By replace libsurfaceflinger.so libgui.so libui.so and libEGL.so

and replace surfaceflinger In The Bin Folder with The Base

only Two Bugs I have Now Bluetooth and Wifi not Work :)
[Android Software Development] someone755:
I have a question.

Porting Sense to a Xperia device here (call me crazy).

Some files you say I have to copy aren't there in my BASE ROM. In fact, no Xperia S ROM has those files in them...

So, do I delete them from PORTED as well or do I leave it as it is?

More questions are to follow once I set up cygwin... :P

EDIT:

Okay, first bump of the day!

Getting this in cygwin and dsixda's kitchen when extracting the boot.img

What is all that supposed to mean?

I know the Xperia S isn't *officially* supported, but the kernel is very similar to other Sony Xperia devices (read: the T).

And what is a header anyways? And if it's really missing, how would the device boot, then?

I'm confused beyond belief...
[Android Software Development] kakalko4:
On adb i have "waiting for device" all time.
[Android Software Development] xboxfanj:
Sony boot.imgs are weird and do not work with some tools. You can either build from source or find a tool that works with Sony boot.imgs
[Android Software Development] CNexus:
If I remember correctly, there's a tool called "elf", or something like that, that handles Sony boot.img's.
[Android Software Development] someone755:
It's okay. One of the best Nozomi devs replied to me, [MENTION=3463426]RaymanFX[/MENTION]

Using 7zip now :D

http://xdaforums.com/showpost.php?p=42700513&postcount=1941
[Android Software Development] MasterDevGR:
No one?
[Android Software Development] someone755:
If we could find you a link to a tutorial, it must mean it is on the internet.

Being on the internet, you have the power of searching...

http://www.lmgtfy.com/?q=how+to+port+aosp+roms
[Android Software Development] MasterDevGR:
Sorry if I was annoying but ok I found for slim bean but for flyme os?Is it the same?
[Android Software Development] someone755:
Since Flyme is based on Android 4.0 and it's a manufacturer ROM, my guess would be to just use this tutorial...
[Android Software Development] MasterDevGR:
Ok thanks a lot I will try soon.
[Android Software Development] someone755:
Okay, making one last backup just in case something goes wrong ;)

Then testing my first (and probably hardest ever) ROM! I do hope there are people still prepared to help... Because I doubt it'll even boot the first time...

Still, risks have to be taken to achieve goals. But no goal is achieved without friends :D

Thanks for everyone's help!
[Android Software Development] someone755:
Okay, first bump here;

first of all, I can't even flash the zipfile. I get an 'Error' but there is no number, nothing is explained. Just an error.

Second, flashing the kernel alone gives me a bootloop. I don't have the chance to get to recovery, even. It just loops through the boot logo...
[Android Software Development] kakalko4:
Originally Posted by CNexus View Post

It does, I've used it before.

You need to set ro.secure=0 in the default.prop of the ramdisk

On adb i have "waiting for device" all time.
[Android Software Development] someone755:
You should go solve that in your device's Q&A forum...

A quick update on my ROM;

-I used an odexed Sense ROM... Bump.

-Starting over, I found a much cleaner, less bloated and deodexed Sense ROM.

-I finally have linux (bootable in persistence mode from a USB key).

A question about zipping the thing when finished;

Are you sure he compression used is Normal? Other zips I've inspected all say the compression should be none / Store...

---------- Post added at 01:00 PM ---------- Previous post was at 12:29 PM ----------

Just found out these files are missing from my BASE;

/system/bin/:

-brcm_patchram_plus

-wpa_cli

/system/etc/:

-audio_policy.conf

-media_codecs.xml

-nfcee_access.xml

-secomxregistry

/system/lib/:

-libsecril-client

-libreference-ril.so

-libril.so

-libs3cjpeg.so

-libaudioutils.so

-libtinyalsa.so

-libpn544_fw.so

-libSEC_OMX_Core.so

-libOMX.SEC.***.Decoder.so

-and also there is no other file with 'ril' in its' name...

Could all the missing files (especially the missing libs) be the cause of my failure?

I can't debug and logcat yet tho, as the kernel need some work to be done to actually boot correctly...

---------- Post added at 01:25 PM ---------- Previous post was at 01:00 PM ----------

Okay, so I found two ril lib files while scouring the build.prop; libril-qc-qmi-1.so and libril.so.

KERNEL UNPACK TIME :D

These kernels... they come from hell ;-;
[Android Software Development] xboxfanj:
Change ro.adb.secure to 0 and ro.debuggable to 1.
[Android Software Development] someone755:
Okay, I just don't get it.

I've done the whole thing 2 times, but I can't even flash the zip!

Does anyone have any idea what could be causing this?

Thanks!
[Android Software Development] xboxfanj:
Md5 it and compare to the one on your PC. Perhaps the transfer didn't work right. Or flash and look at cache/recovery/last_log to see your issues. Are you using your cm metainf?
[Android Software Development] someone755:
Yes, using CM9 META-INF. The file was sent correctly, md5's checked. Plus, I doubt it'd be doing this twice from two different PCs...

Checking cache might be an issue there... Unless it can be checked through fastboot.

See, I have to restore a backup to get to Android where I can use ADB. That's the only way to connect this phone to ADB (as far to my knowledge). But restoring the backup is also an issue, since it overwrites the cache partition...
[Android Software Development] xboxfanj:
You should have adb access in recovery, so before you restore, adb pull it.
[Android Software Development] someone755:
Actually, there is no ADB access in recovery... ;-;

I've tried it many times in hopes that something would happen, but Windows just keeps beeping that 'new hardware has been found' and never stops...

Aanyways, I'll be ditching the HTC Rezound, as I've found out that I can also port from next-get Qualcomm boards (like the dual-core S4 processor) -- and that means AT&T HTC One X, and that means everything will be easier (especially since somebody has reported that he's been able to get to the lockscreen with the HTC One (with Tegra3)) :D
[Android Software Development] CNexus:
Thats just Windows, I've only ever been able to get adb in recovery once. Now that I'm on Linux, after finally ditching Windows, it detects the device without fail every single time.
[Android Software Development] someone755:
Meh, I don't have a single PC capable of running pure, unmodded Ubuntu 12.04 without some weird bug. Sometimes the USB ports go berserk, sometimes the internet won't connect (even though I'm using cable).

But enough talk about that now, I'm informing you that I'll be having a new go at this, but with a different phone. Either today when I come home or (most likely) tomorrow morning... Will be posting the resluts (and installing Ubuntu on a PC with (hopefully) running USB ports) :D
[Android Software Development] kakalko4:
Still dont work
[Android Software Development] xboxfanj:
What does adb devices say?
[Android Software Development] kakalko4:
"Waiting for device

Wysyłane z mojego SK17i za pomocą Tapatalk 2
[Android Software Development] CNexus:
Not adb logcat, "adb devices".

Adb devices returns immediately, it doesn't pause or wait. It shows what devices are connected and their current status.
[Android Software Development] a2441918:
Hey Jake, wat about sense for S4?
[Android Software Development] CNexus:
He doesn't have an S4
[Android Software Development] :
When installing via CWM, everything goes fine, but then there is a bootloop.

When I go to view the logcat, this appears:

I: Checking for extendedcommand
I: Skipping execution of extendedcommand, file not found...
I: Can't partition non-vfat: datamedia
I: Can't partition non-vfat: auto
I: Can't format unknown volume: /emmc
[Android Software Development] qmobilea2:
How u take logcat while in bootloop??

Kindly can u share with me?

I am also having the same bootloop problem after trying this method.
[Android Software Development] :
I went into CWM>Advanced>Show Log

Although I'm not sure that's how it's done.
[Android Software Development] someone755:
That ... that isn't the logcat.

Logcat is when you connect your phone to your PC and do 'adb logcat'.

What you're doing there is just the notifications of the recovery...
[Android Software Development] qmobilea2:
yup u r ri8 :]

but how to take logcat while rom stuck at boot logo.

actually after i port manufacturer rom nd flash it via cwm , everything goes fine but when i reboot,it starts nd bootlogo of port rom appears then a black screen nd stuck on black screen :/