[Motorola Atrix 2] Aceofzeroz:
Samsung Galxay Roms Incoming!

Reserved for anything else I need to add!:laugh: ~New Update, now I have something to add~;)

Samsung Galaxy OMAP 4 Porting (Galaxy S2-I9100G and the Galaxy Nexus - all variants!)

In this post, I'll be Introducing the porting methods me and my team have made for porting roms from these two S. Galaxy phone series. The methods are basically the ones used for the Moto OMAP phones as well but with additional steps that are needed for full/almost full functionality.:good::cool: (NB:eek:nly rom versions up to 4.3.1 can be ported with methods 2 and 3, 4.4+ roms cannot be ported at this time).

Notes about Samsung Galaxy ROMS:

Porting from these two phones has a higher difficulty than Moto phones in some cases, so patience is NEEDED!

On startup they will have all sound options enabled

The Galaxy Nexus-based roms will have the Nav bar on startup

Their battery charging lights are always enabled (should be able to turn that off in Settings)

Samsung-unique features don't work on our phone (duh):p

On some roms, the lcd density will be high (large screen items) but they have dpi settings so don't panic lol

Only a few roms still don't have the 1% battery hack, so if you don't mind that then great! :)

Samsung Galaxy Porting Method 1 (SGPM1) - The "Preview Method".:cyclops:

I'll write this and the other methods in more detail when I revamp my thread in the coming month. But basically this can be done by doing the same steps in the 2nd Porting Method along with the additional steps I stated for getting 4.3/4.3.1 roms to boot (replacing the storage list). It is HIGHLY recommended that you use bases from our phone that are most compatible with the rom you want to port based on their sources.

Why is it called the "Preview Method"? Simple, because you won't be able to use the rom with some of our components working like audio, camera and wifi. However, if you want to get wifi working then replace these additional files after you've replaced the ones above:

In /system/bin, replace the two wpa binaries

In /system/etc, replace the entire wifi folder

And in /system/lib, replace lbhardware_legacy.so and libwpa_client.so

This method is applicable for all android versions based on our tests, but not all roms will boot even with this method, so keep that in mind. My personal advice is to test your port first without gapps to see if it boots and see what it has since gapps are pointless without wifi and audio. :P

Samsung Galaxy Porting Method 2 (SGPM2)- The "Lucky Porter".:fingers-crossed:

In this method for SG roms, the same steps for SGPM1 are involved except for further replacements that fully ports your SG rom with whatever is working in your base. This works for some roms but not all, so if it doesn't work for you then refer to SGPM3 below.

+Start off with modifying the updater script and build prop based these examples:

+After performing all the steps of SGPM1, go inside your system folder and replace the entire bin folder

+Afterwards, go inside the lib folder and replace everything except libandroid runtime, libandroid servers and libmedia jni.

+Make sure that the build.prop and updater script have everything in place, then you can zip the META_INF and system folders into a new rom zip and test away!

+If you're lucky enough to have it boot and the charging LED changes colour then you're at least very close to fully porting it if it didn't already do so!:good:;)

Samsung Galaxy Porting Method 3 (SGPM3) - The "Advanced Porter".:eek:

This advanced method is for porting SG roms that would otherwise not works as desired with SGPM2 by either bootlooping, booting with endless FCs, etc.

#Alrighty, go to the app folder where the only thing you copy over is OMAP 4 parts.apk from your your base (and any other app you wish to add).

#Now onto the bin folder, in there you will copy over all unique files from the your base and these specific ones; adb, app process, atrace, dalvikvm, dbus-daemon (if present), mediaserver, rild, sensorservice, tfdaemon and the two wpa binaries.

#Next in the etc folder, you will copy over all unique files and folders except the entire permission folder, dhcpcd, security, updatecmds and ppp. Then go and copy the unique files inside the permissions and in init.d folders. Also if there's a paranoid folder present, use one of our pacman roms to replace it in there so that there are no dpi issues.

#Back in system folder, replace the entire usr and vendor folder, then go to framework to replace the storage list.xml in framework-res.apk/res/xml with the one in your base.

#Finally in the lib folder, replace all of the folders inside lib, then libaudio ext, libaudioflinger, libaudioeffect jni, libaudioutils, libbinder, libc, libcamera client, libcutils, libdl, libdomx, libexif, libhardware and hardware legacy, libjpeg, liblog, libmedia, libmm osal, all of the libOMX files, libril files, libsensorservice, libstagefrighthw, libutils, libwpa client and libz. For making non-kexec 4.2.2 roms, delete libedid.so and libselinux.so as well.

#Make sure that the build.prop and updater script have everything in place, then you can zip the META_INF and system folders into a new rom zip and test away!

#If it boots, has wifi and camera working but still no audio, then go back to your port folder, open system/lib and replace everything except libandroid runtime, libandroid servers and libmedia jni.

That's all for now, stay tuned for more from the A2EPT!:cool::D