yashsingh1/xdaforums huggingface dataset:
[Android General] KainXSS:
I replaced

wpa supplicant in bin and /etc/wifi

then added the wifi driver which was wlan0.ko into modules

the port rom did have the interface set to eth0 not wlan0 though like in the original though.
[Android General] nom051205:
If you use libandroid.runtime.so from target rom (not base) then you have to use same with netd (bin folder) and libhardware_legacy.so (not from base).

Try to use libandroid.runtime.so from base with netd and libhardware_legacy.so from base too, it will fix the issue but you will broke theme manager.

---------- Post added at 09:58 PM ---------- Previous post was at 09:38 PM ----------

@pratikmore, try to replace egl folder, libegl, libgui, libui, libgsl, libopenvg, libsc2xx for framebuffer issue.
[Android General] KainXSS:
changing those files made it do the same thing, I originally had it with the libandroid_runtime(port) netd(port) and libhardware_legacy(port) and but if I change those files to base it won't boot
[Android General] mihahn:
I wanted to port a htc rom to my xperia and the problem I have is in updater-script/update binary. Everytime I want to flash my build in recovery I get the following problem:

Finding update package
Opening update package
Installing update
format () expects 4 args, got 3
E:Error in /sdcard/xx
(Status 7)
Installation aborted

What have I got to change, I'm just on the beginning of porting and I wanted to port this, but don't know where the problem is or how I have to edit updater-script or which update-binary I should use...

Solved it by using original update-binary. Looks like I did something wrong first, sorry :(
[Android General] nom051205:
It will boot, only have to replace some libs properly. I have same issue with you, and it because libhardware_legacy.so which wrong pointed wifi driver path, try open that lib with idapro then you will see it.

I have ask some dev but the answer seems like have to hex edit that lib otherwise recompile the wifi c or some kind like that.

Still find the easy way how to fix that.
[Android General] KainXSS:
yea your right, I checked libhardware legacy with a hex editor and the wifi is different, I see the driver path at the end of the so points to the modules but in ported its not pointing to anything:rolleyes:

I also noticed another bug, it seems that I get black textures and this shows up in logcat everytime it happens

ERROR/OpenGLRenderer(13847): Cannot generate texture from bitmap

any ideas
[Android General] Leandre20:
I have actually been really thinking about porting my own rom for a long time but i only wanted to port files to the S3(at&t variant) but i will probably use this as a guide to help me.
[Android General] nom051205:
Try to use egl folder, libegl, libgui, libui, libgsl, libopenVG, libsc2xx from target rom (not from base). Replace those lib fixed renderer and framebuffer issue in my port rom, my base rom has same adreno 200 / 205 with target rom, don't know how about yours.

I noticed that libegl, libgui, libui, libandroid_server, libpower, libpowermanager, libmedia_ini, libwebcore cannot exchangeable between roms. If I replace those libs with base then always have bugs in my port.
[Android General] cpu999:
https://docs.google.com/file/d/0B2qlFDXo6JOrZDgtbnhiVjhZakk/preview?pli=1

I tried to port wicked sensations from the sprint to the att gs3 but the data isn't working...

What am I doing wrong?
[Android General] KainXSS:
this did work and the blackscreen issue is gone, it also speeded everthing up but so my only problem left is a really annoying one, . . . . . gapps crashing:rolleyes:
[Android General] nom051205:
Try to include gapps in the rom, not seperately flash
[Android General] mattlowry:
i am trying to port aokp to my device using cm9 as base. i got it to boot but everything force closes and i cant do anything with the phone except continuously hit the ok button. any help with this issue would be appreciated!!!
[Android General] :
Be careful what you guys port... I just entirely bricked my phone. Calling about a replacement now.
[Android General] rirozizo:
don't scare new porters bro.

if you ported a rom that replaces HBOOT, Bootloader, Fastboot, or Recovery... well u shouldn't...

———————————————————

i didn't mean to mock you or to offend you in any kind of way
[Android General] Peteragent5:
You obviously didn't read my entire guide, or read another porting guide... >_<

(Also I gave an agreement before you started porting, that you're responsible for the changes to your Device.)
[Android General] Aria:
nice tutorial :good: ;)

working for custom kernel :confused:
[Android General] nom051205:
Seems like you have issue with framework. Can you more details?
[Android General] mattlowry:
i used cm9 as the base swapped over the files metioned in the guide. and replaced the libs with ones from an aokp rom we have built for our device. it booted but everything crashes making the phone unusable. i was told you cannot port aokp on cm9
[Android General] nom051205:
You can port aokp and many ics rom on cm9, most ics rom we have base from cm9.

You cannot port paranoidandroid on aokp.

Try to use libandroid.runtime.so from base or from target rom, see which one give better result. Because you have cm9 as base, I think you better use that lib from base.
[Android General] pratikmore:
Logcat of pac rom not booting :- http://pastebin.com/sZ57vU4d

Any help plz.
[Android General] mattlowry:
I had tried that already but no go. Only way it would boot is if I used libs from our current aokp
[Android General] nom051205:
See my previous post, use all lib from base then replace some libs from target rom.
[Android General] mattlowry:
do you know which libs i should replace because i am not sure
[Android General] nom051205:
use all libs from base rom then replace this libs from target rom

libandroid server.so

EGL folder

libEGL.so

libgsl.so

libgui.so

libui.so

libpower.so

libpowermanager.so

libwebcore.so

libmedia jni.so

libz.so

all libOmx.....

I can boot up all my port rom use that way (paranoidandroid, aokp, cm9, remics-ux, miui, use aosp as base) except evervolv rom.:D
[Android General] domini99:
Hey. How do i get RIL awork?

Im porting cm9 from gio to mini.

Sent from my sending thing..
[Android General] Peteragent5:
It should work right out of the box, if you've done everything I've said in 1st post.

Have RIL Libs, and the RIL values for build.prop
[Android General] domini99:
Mhhh..

I maybe did something wrong...

I'll try again.

Sent from my sending thing..
[Android General] nom051205:
Is there any specific in base or target rom build.prop like ro.telephony.ril_class=xxxx

If there is then you have to edit framework.jar to match the ril. As far I know LG and samsung have that specific ril.
[Android General] mattlowry:
Big time thanks for this I got it to boot!!!
[Android General] nom051205:
Hahahaha....glad I can help:D

One more, if you want to use libandroid.runtime.so or all libs from target rom, then you have to replace these libs from base

Libandroid.so

All libaudio*****

All libril

Libwpa*****

Try to boot, usually will boot up.

Now my main issue are how to fix all the bugs, damn...use aosp as base to port cm, pa, aokp really gave me big problem. There are so much diff.

My advice, don't use aosp as base to port cm9, pa, aokp. But if want to port miui, aosp is the best as base.

And thanks to Op, this thread is most complete guide how to port.
[Android General] domini99:
Okay, tried again, RIL partly working.

I can call, i can get called, i can sms, buti cant get sms'd:confused:

Sent from my sending thing..
[Android General] ciscogee:
Steps to get ril partly going?
[Android General] GhostIsBaked:
I can't get the ported ROM to boot. I get a failure when trying to flash in recovery :confused:
[Android General] huanhoho:
I`ll try that way in the next ROM upgrade.
[Android General] coolrevi:
Actually I tried porting sense Rom of incredible s as well as evo 3d to Sony Xperia pro. I followed yo method everything installled using cwm but it didng boot up.
[Android General] Peteragent5:
Logcat & did you replace bootclasspath?
[Android General] Megalith27:
I have ported a rom but it bootloop on rom animation...when I try to logcat it says "waiting for device" and logcat file remains empy and nothing ever happens.

any ideas?
[Android General] nom051205:
Use from base bin folder

Logcat

Logwrapper

Hope that could help
[Android General] Megalith27:
Can you please be more specific, as I don't see how can I logcat from bin folder if rom doesn't boot
[Android General] nom051205:
Open your base rom bin folder, take those file then copy to bin folder in your ported rom, try to logcat again.
[Android General] Megalith27:
Already did that...no success....someone suggested to resign apks...did that too and still stuck on animation bootloop...with no logcat
[Android General] sushdroid:
thanks a lot for this guide!!
[Android General] KainXSS:
does anyone know what would cause youtube to screw up and display video in the center of the screen in portait mode(it gets cut off)
[Android General] nom051205:
Use libstagefright.so from base ?
[Android General] pratikmore:
Rom not booted logcat :- http://pastebin.com/360ivrjw
[Android General] voetbalremco:
try to replace android_runtime.so in /system/lib

you need to use the original file, so not a android_runtime.so from your device, but from the rom you want to port, from the other device.
[Android General] pratikmore:
Actually i am using libandroid_runtime.so from ported rom and thats why its not booting?
[Android General] pratikmore:
Cyanmobile rom logcat :- http://pastebin.com/3czNY5vh already replaced libmedia jni.so and media recorder.smali,amrinputstream.smali and it shows same error.
[Android General] voetbalremco:
you need to look at your libs
[Android General] pratikmore:
Means i have to replace that libs??
[Android General] nom051205:
Try libandroid_server.so
[Android General] cookieforeveryone:
Help on porting CM9 Droid 2 to Nexus's JB JRO03C

Hi, I'm trying to port Droid 2 to Nexus's JB JRO03B,

but I need help on the updater-script.

Can anyone do this for me?
[Android General] ienariden:
nice guide
[Android General] richie161cfc:
jellybean for galaxy i5500

Can anybody port A jellybean based rom for Samsung Galaxy I5500? there are already jellybean roms for galaxy mini and i was hoping if anyone could port one for this device as well.. ill be willing to test if the port is successful..there are a lot of galaxy 5 users , so please consider this if anyone can.. thank you :)
[Android General] allenpot:
nice thread, i really want to know this procedures.. thanks :D
[Android General] Sonic5317:
Hey,

I am trying to get the proximity sensor working for CM9 on the Xperia Play.

Basically I was wondering if i could get some help in porting the driver from this ROM:

http://xdaforums.com/showthread.php?t=1854682

to work in CM9, The ROM above is based on Sonys ICS beta..the full version was never released but everything works including the proximity sensor which doesnt work in CM9

Any help with this is much appreciated!

.::. Sonic5317 .::.
[Android General] pratikmore:
Anyone here,can you help me for this, http://pastebin.com/kzr9hTyP

Rom not booted.
[Android General] voetbalremco:
what are you trying to port?

I suppose PA is paranandroid?

try replacing libmedia.jni .so
[Android General] pratikmore:
Yes.paranoid android rom.will try that,but it shows that uti,read file error in paranoid preference,its not defined.
[Android General] pratikmore:
Logcat :- http://pastebin.com/dSmsAgeT

On previous build we cant take snap but on 4.1.2 i can take snap but image capture by cam is null or blank in gallery.height,width and orientation of image is zero.

Can anyone help me to solve this bug.
[Android General] cdudeman:
I am trying to port a cm9 rom from samsung skyrocket to the pantech burst. I used this porting guide and got it to install, but it gets stuck on boot screen. Can someone take a look at my logcat and offer any advice? I am a total noob and just followed these directions.

Thanks

http://pastebin.com/JV2Vd5rs
[Android General] Ducsidu:
Hi!

I ported Cyanmobile eXperience (FRom Galaxy Mini to Huawei U8120/Vodafone 845 and the base rom was CM7) with this guide and it doesn't boot. I followed the guide step by step but it stucks at bootlogo. What can I do?

And earlier I ported with the old version of this guide and that works perfect. So thanks Peteragent5.
[Android General] voetbalremco:
include a logcat otherwise there's no way you can be helped out.

you can find enough on XDA about what is logcatting and how to.
[Android General] Ducsidu:
Logcat is just waiting for the device... I need the drivers. I'll retry it next day.
[Android General] Polo96:
Really good

Thanks very much!
[Android General] ThePresence:
Hi

I want port rom from motorola to htc....base rom is cm10 Android 4.1.2 but port rom which is codenameandroid is android 4.1.1 so can I port that codenameandroid rom to my htc??
[Android General] pratikmore:
You can try.or try from my galaxy 3 cna rom which is based on 4.1.1
[Android General] dizinho:
Thanks a lot for the information
[Android General] KainXSS:
anyone know what I can do if some of the text and icons in landscape mode is being cut off, also the status bar is overlapping the keyboard.:rolleyes:
[Android General] mattlowry:
I have ported a few ics roms to my device successfully but now I am trying to port jb. Every time I try with my cm10 base without libs from my port rom it boot loops. So I try moving the libs over I would if I were porting ics and it stops at splash screen. Anyone know what libs I might need to get it to boot
[Android General] rajivgupta96:
reply please

do you used this guide for porting?
[Android General] mattlowry:
i have mixed what i have learned from this guide and a few others
[Android General] Sturdy_99:
Can we?

can we port different resolution roms.... like s3 rom to neo V
[Android General] pratikmore:
Yes you can port but try to port rom from same resolution of phone and same cpu like armv6 to armv6,read first page carefully.
[Android General] Sturdy_99:
CHeat sheet

PLS someone explain what is this cheat sheet....
[Android General] pratikmore:
Sturdy 99

Do you know your phone is based on which cpu?armv5/6/7?list of phone with their cpu is given on first page,just try to find out that link.try to port rom and if any problem is there then post here logcat.
[Android General] Sturdy_99:
i don't understand...

Take note of the added set_perms & set_perm_recursives that PORTED added. Then replace all set_perm and set_perm_recursive from BASE to PORTED. Put back in the noted set_perms & set_perm_recursive you wrote down, to PORTED's updater-script

---------- Post added at 08:38 AM ---------- Previous post was at 08:29 AM ----------

ITs Neo V armv7 i want to port s2 roms can i?:confused:
[Android General] pratikmore:
You can try and if any problem occurs then post here logcat.

Cyanmobile not booted :- http://pastebin.com/WUxwbHFF

I have replaced that power manager smali and window smali but why it shows same error.
[Android General] Yuoko5:
Great instructions. I am trying to port PAC rom from Samsung GT-i9100 to SGH-T989. The problem is I got stuck at the very first step. -,- There is no firmware folder in /system and no license folder in /system/etc. Are they just not there or they are named differently?
[Android General] pratikmore:
@ up

If that folders are not there rhen just ignore that step.
[Android General] Peteragent5:
LOL Sorry I was going to explain on doing something extra but then I didn't, soo I should remove that... :p

P.S I think I might update the Guide again (major update) for beginners, and to make it easier to read.. Like the Arch Wiki :p
[Android General] jaizero:
So a few quick questions... Does the android version for both base and ported need to be exact? For example 2.3.3 > 2.3.3. or can I use 2.3.3 as a base and 2.3.6 as the port? Also, in the updater script if mount("xxxxxx"); format("xxxxxx"); exists in the base but not the port do I just add it to the ported updater script or do I use what is already there?? For example, this is what is in my ported updater script "run_program("/sbin/mount", "/dev/block/stl9", "/system");" which is 2.3.6 and my base which is 2.3.3 has "mount ("xxxxx") format ("xxxxxx"). I followed the guide to do the port but when I try to install in CWM it stalls at "installing update" which leads me to believe there is an error somewhere in the updater script.

Thanks in advance,

Justin
[Android General] IRX120:
You can port 4.0.4 into 4.1.2 if you wanted. We did it with our phone, so no, the version doesn't have to he exact

If I follow this guide exactly, I get error 7 in the updater script. Haven't been able to fix it yet
[Android General] Peteragent5:
For best Port results, both BASE & PORTED should be same Android version. But the layout is like this:

If BASE is Gingerbread, then PORTED

must

be GB

Same for ICS and JB

So it is possible to port 2.3.6 using a 2.3.3 base (They're both GB)... I haven't tried it, but you can...

You should always use BASE's mount and format values in the updater-script, this prevents bricking.

Make sure all lines in updater-script end with a semi-colon: ;

Make sure your update-binary is from BASE, then try again
[Android General] kissingmylove:
i dont know if it's different baseband,but i want to use stock rom as base and CM7 from another deivide as ported( my phone 2.3.6, CM7 2.3.7)(the roms based on stock of that ddevide can be flashed directly on my devide without bug,only remove the boot.img but CM7 cant) but at the step 1 delete all lib,hw folder(of CM7) and then replace it with my stock files,i think it cant work,plz tell me if this tut can use in my situation
[Android General] nabeeleinstein:
My problem

http://xdaforums.com/showthread.php?t=1989895

I tried this and other methods but its usually the same error

and the rom doesnt boot.

I've included the screenshot of my ddms

Please look into this

Thanks :)
[Android General] kingofnice:
Ok so I followed every step and it wont even install. Says installation aborted? Is it something to do with updater script

---------- Post added at 04:22 AM ---------- Previous post was at 03:58 AM ----------

I figured it out. The updater_script transformed into a text file.... How do i turn it back into a unix excutable file thing. Im on Mac. I think I just have to change permissions...

Nope that didnt work..Helpppp
[Android General] m.swastik:
I have dual sim phone. I dont think CM supports dual sim. Can I still port CM with lost functionality of one sim?
[Android General] hell_lock:
It wont work
[Android General] m.swastik:
You already developed ROM for Galaxy Y duos. Can you tell me is there a good ICS ROM for dual sim phones to port to Spice Mi 425.
[Android General] gobz:
Hello, Im trying to port samsung galaxy fit's CREED rom to my HTC Wildfire buzz but without any success.

The rom installs but the bootanimation never comes up.

Do not pester me with 'did u wipe data n all' I did.

(Thanks in advance)
[Android General] voetbalremco:
A wise man once said; without a logcat, it didn't happen.

so if you're looking for help attach a log, or it is like searching a needle in a haystack, if you know what I mean, as it can be anything.
[Android General] coolrevi:
Check there is a media folder in the system with the necessary files if yes Check the init.d scripts or build.prop. It might contain a script which is blocking it to be displayed
[Android General] luxxx123:
I have a small question.

You mean also folders there in /system/* or just them directly in /system.

For example i´ve a folder called "firmware" located in "/system/etc".

Should i delete this?
[Android General] srajelli:
Hey m porting cm mod of HTC desire to Htc desire C

i knw dat HTC Desire is ARM7 but dnt knw about HTC Desire C plzz tell ..
[Android General] luxxx123:
Take a look in the build.prop of the Desire C.

In my build.prop theres a entry called "ro.product.cpu.abi".

And "v7" should be the ARM-Version. Dunno if its true, but in my cases it always was true.
[Android General] voetbalremco:
desire c is defenitely arm V7
[Android General] Thatgrass:
Is it possible to port an android 4.0.3 rom with a base rom android 4.0.4?
[Android General] voetbalremco:
yes. I think you could even use 4.0 for a 4.1 port, but 4.03 and 4.04 iis definetely worth to try,
[Android General] Peteragent5:
Is the file extension a .txt? Try removing the file extension

Yes delete it. Then replace the folder with the one from BASE

It's ARMv7.

Yes. They're both ICS.
[Android General] DaleX:
question???

Hey guys i would like to port a rom Which is ARM-V7 Cortex A9 to Micromax funbook which has an ARM V7 CPU- Cortex A8...

My question is ..would this be a problem considering they are both Arm V7 cpu's..

any help would be appreciated :)
[Android General] voetbalremco:
it is possible, as both are arm v7 devices. but you may need to use other kernel patches to make it work.
[Android General] DaleX:
Thank you for the quick reply...

i dont wanna ask for to much ...but what exactly do you mean by kernel patches...

fogive me if this has been discussed before but i would really like to be sure as experience does matter..
[Android General] voetbalremco:
wich rom do you want to port and from wich device to wich one?
[Android General] Peteragent5:
Nope it's fine. Since they're both ARMv7 :)

Wait, why do you need kernel patches? That's only when you try to port a kernel from source.

Or do you mean just unpacking it and diffing/patching the init.rc? (That only applies when porting from different Manufacturers)
[Android General] DaleX:
I have micromax funbook armv7 and would like to port a samsung galaxy S2 aosp rom or aokp rom

---------- Post added at 10:06 PM ---------- Previous post was at 09:55 PM ----------

Yes they are different manufacturers im trying to port a galaxy s2 rom to a micromax funbook..will it work???

plz help
[Android General] Thatgrass:
I am stuck at the updater script.. I cannot figure out which lines to add, remove, change etc.. Is it possible to explain it in another way? Or is it extremely different for every single ROM?

Sent from my Galaxy Nexus
[Android General] voetbalremco:
I mean the ramdisk editing yes, as I was pretty sure he wanted to port cross-brand devices
[Android General] DaleX:
What tool should i use to unpack and edit the kernel?
[Android General] kingofnice:
Updatescripter does not have a .text extension. It is not a Unix thing though like how it was supposed to be in the first place. It is a simple text file now.
[Android General] voetbalremco:
the easiest method is using cygwin +dsixda kitchen, as it offers a simple GUI to do it and no need to enter scripts manually.
[Android General] UtCollector@gmail.com:
Great guide. I did try and make a cm9 boot animation for my device at 800x480 resolution. I did use ever point in you're guide but its not working for me.

I get a very big zipped bootanimation.zip file. Like 24 mb big. When i look at the details of the files i see a big differance. This is what i have:

Horizental resolution 96 dpi

Verticale resolution 96 dpi

Bitdiepte 24

The are this:

Horizental resolution 1 dpi

Verticale resolution 1 dpi

Bitdiepte 24

Any other program that can do it right? Ore maybe someone can post me a bootanimation.zip with the right resolution?
[Android General] pratikmore:
Can you help me to port stock based to cm7.I am using ace 2.3.6 s iii rom to galaxy 3 cm7.logcat :- http://db.tt/Qz6CPJvd

It shows no implementation,what to do now.I am using your guide,thanx for this guide.
[Android General] uf0999:
Hi, thanks for the guide.

It's all clear except for meta-inf folder.

At the end you tell to move all folder from base to port, but we edited updater-script in ported. Am I right?

Anyhow in ported ROM I do not have binaries but I have them in base, so I 'pasted everything.

Now the recovery won't recognize the script and installation aborts...

What I am supposed to do?

Thanks.
[Android General] voetbalremco:
use binary's from your own phone
[Android General] arhant:
can anyone help me tried porting pac rom 4.1.1

everythig is working except camera..!

logcat...

http://pastebin.com/JjVEfQke