yashsingh1/xdaforums huggingface dataset:
[Android General] rirozizo:
me too... so instead of giviing the guide by PM (which iis a lot of work) keep your thread open

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] IRX120:
Don't close it. I know what I'm doing with android and I have built custom roms before. But I don't know off the top of my head how to port a rom. I know the basics but not all the little details.
[Android General] nom051205:
If you want your port success then you have to read and learn. Search and learn every guide how to port rom you can found .

This is not one night work, it need so much time to flash and reflash, trial and error, and keep in your mind it could harm and crash your device.

I spent about two or three weeks before I can make a rom boot up and make sure everythings work fine.

So if you cannot make a rom to boot up then don't blame anyone, it just you not learn enough.

Take your time again to search, read and learn.
[Android General] rirozizo:
and this guide iis my search result :D

so DON'T CLOSE IT!!

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] Peteragent5:
Ok.. I'll keep it open and help you guys for a little longer. :)
[Android General] AlwaysDroid:
Thanks :)
[Android General] mingolianbeef:
I have been porting a long time, and this is the best I have seen
[Android General] cyrusalmighty:
Talk about a noob, if I even think you will delete this thread I will run to computer knock my girl off facebook & copy & paste all contents(of your guide) to a word doc. lol. I already printed your older guide. Haha. That's a noob move.:p
[Android General] mesaj:
Will smali guide be included?
[Android General] Peteragent5:
No. Sorry. (You have to learn it during the process on porting)
[Android General] iPlasm:
HTC HD Mini (Liberty^)

Well.. I hope that I did right thing, see attach.

I know there are bugs in logcat.. anyway

Thanks
[Android General] koko98:
Can this work for porting Paranoidandroid from GNex to Galaxy s?

Enviado desde mi GT-I9000 usando Tapatalk 2
[Android General] jonah1234:
well i did everything this said tried to port cm9 to liquid ics and got continuous boot n:(. idk what i did wrong man, do u know what i should do :confused:
[Android General] rirozizo:
try with base's libandroid_runtime.so

if it still bootlooped, get a logcat

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] IRX120:
Every time I try and port from the nexus s, I get some libhtc errors. So i t. May work for the galaxy s but I'd try and find another HDIP phone
[Android General] armyveterangunner29:
I tried to port codename android from the i9000g to the i727 skyrocket. It boots, it runs, but one thing pisses me off. All pop up menus, toast notifications, and onscreen keyboards are invisible but they are there. I tried everything. Any ideas, fellas?
[Android General] dc959:
Im trying to port an aokp rom using a aokp rom as base but it just keeps replaying the bootanimation so i have been replacing smali files but now its saying RegisterNatives failed for 'com/android/server/AlarmManagerService', aborting

But the problem is nether my base nor my ported roms have the AlarmManagerService so i dont know how i can fix this
[Android General] oguzhan mobile:
I compiled jb fron source. But i have bootloop.
[Android General] Jawadfiza:
Can I install cm9 or cm10 in xperia sola
[Android General] rirozizo:
logcat.

if xperia sola has a cm9 or cm10 base.... yes

if xperia sola doesn't have cm9 or cm10 base, you'll have to compile from source.

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] IRX120:
I heard you have the edit the BOOTCLASSPATH in the kernel source to get a boot.
[Android General] ifyouwant:
thanks
[Android General] rirozizo:
btw i still don't know how to decompile the kernel :S

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] oguzhan mobile:
How to? My kernel source is here: https://github.com/oguzhanmobile/kernel_huawei please help thanks.
[Android General] SpaceCaker:
Its in init.rc

Bootclasspath
[Android General] oguzhan mobile:
I am trying different device init.rc. But oesnt boot. Already init.rc , during the compile occurs.
[Android General] marniel647:
Can i port cm9 source to samsung galaxy 551
[Android General] arhant:
hey i ported a gb rom same chip galaxy mini to galaxy fit..!!

stuck on android logo..?

can any1 help..
[Android General] jonah1234:
If u already have an aosp version of ICS on ur device use that as base. If u don't then u can't

Sent from my Liquid ICS HTC Thunderbolt
[Android General] IRX120:
I don't ever decompile the kernel. Its easyer to just download the source and edit that. Than all you have to do is build the kernel with make.
[Android General] arhant:
hey can anyone help me with this logcat..!!

D/dalvikvm( 1080): GC_EXPLICIT freed 24K, 61% free 399K/1024K, external 0K/0K, paused 5ms

D/dalvikvm( 1080): GC_EXPLICIT freed 26K, 55% free 464K/1024K, external 0K/0K, paused 11ms

W/dalvikvm( 1080): Unable to register: not native: Landroid/media/MediaRecorder;.native_start)V

W/dalvikvm( 1080): Unable to register: not native: Landroid/media/MediaRecorder;.native_stop)V

E/JNIHelp ( 1080): RegisterNatives failed for 'android/media/MediaRecorder'

E/MediaPlayer-JNI( 1080): ERROR: MediaRecorder native registration failed

W/dalvikvm( 1080): JNI_OnLoad returned bad version (-1) in /system/lib/libmedia_jni.so 0x0

W/dalvikvm( 1080): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Landroid/media/AmrInputStream;

E/Zygote ( 1080): Error preloading android.media.AmrInputStream.

E/Zygote ( 1080): java.lang.ExceptionInInitializerError

E/Zygote ( 1080): at java.lang.Class.classForName(Native Method)

E/Zygote ( 1080): at java.lang.Class.forName(Class.java:234)

E/Zygote ( 1080): at java.lang.Class.forName(Class.java:181)

E/Zygote ( 1080): at com.android.internal.os.ZygoteInit.preloadClasses( ZygoteInit.java:297)

E/Zygote ( 1080): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:566)

E/Zygote ( 1080): at dalvik.system.NativeStart.main(Native Method)

E/Zygote ( 1080): Caused by: java.lang.UnsatisfiedLinkError: unknown failure

E/Zygote ( 1080): at java.lang.Runtime.loadLibrary(Runtime.java:455)

E/Zygote ( 1080): at java.lang.System.loadLibrary(System.java:554)

E/Zygote ( 1080): at android.media.AmrInputStream.<clinit>(AmrInputStre am.java:33)

E/Zygote ( 1080): ... 6 more

E/Zygote ( 1080): setreuid() failed. errno: 17

D/AndroidRuntime( 1080): Shutting down VM

W/dalvikvm( 1080): threadid=1: thread exiting with uncaught exception (group=0x40018560)

I/ServiceManager( 471): service 'media.camera' died

I/ServiceManager( 471): service 'media.audio_policy' died

I/ServiceManager( 471): service 'media.audio_flinger' died

I/ServiceManager( 471): service 'media.player' died

I/Netd ( 1086): Netd 1.0 starting

what is with all the errors...can any dev help me..!
[Android General] IRX120:
Basically it can't start the media recorder and this is causing other services to fail.

libmedia_jni.so is the only lib mentioned here, so try using the libmedia_jni.so from the rom your porting from and if that doesn't work try using that lib from another rom for your phone.
[Android General] cpu999:
Will this work with porting a phone rom to a tablet?
[Android General] Peteragent5:
No.
[Android General] Peteragent5:
Edited & added some new FAQs :)
[Android General] cpu999:
Then will it work on porting tablet to tablet?
[Android General] rirozizo:
porting LewaOS:

09-11 16:09:02.208: E/LewaLockScreenView(1881): lockscreen draw
09-11 16:09:02.328: E/LewaLockScreenView(1881): lockscreen draw
09-11 16:09:02.448: E/LewaLockScreenView(1881): lockscreen draw
09-11 16:09:02.528: E/LewaLockScreenView(1881): lockscreen draw
09-11 16:09:02.658: E/LewaLockScreenView(1881): lockscreen draw

it can't seem to draw the lockscreen... it's failing to do it.

more: it's bootlooping:

09-11 16:10:07.011: E/AndroidRuntime(2897): FATAL EXCEPTION: main
09-11 16:10:07.011: E/AndroidRuntime(2897): java.lang.NullPointerException
09-11 16:10:07.011: E/AndroidRuntime(2897):	at android.os.ServiceManager.getService(ServiceManager.java:55)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:79)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at android.app.ActivityThread.attach(ActivityThread.java:3753)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at android.app.ActivityThread.main(ActivityThread.java:3828)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at java.lang.reflect.Method.invokeNative(Native Method)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at java.lang.reflect.Method.invoke(Method.java:507)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at dalvik.system.NativeStart.main(Native Method)
09-11 16:10:07.011: E/AndroidRuntime(2897): Error reporting crash
09-11 16:10:07.011: E/AndroidRuntime(2897): java.lang.NullPointerException
09-11 16:10:07.011: E/AndroidRuntime(2897):	at android.os.ServiceManager.getService(ServiceManager.java:55)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:79)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
09-11 16:10:07.011: E/AndroidRuntime(2897):	at dalvik.system.NativeStart.main(Native Method)

i used PORTED's libandroid_runtime.so: didn't boot

tried with BASE's libandroid_runtime.so: it gave me those errors above

and these:

09-11 16:12:39.360: W/MountService(2638): Waiting too long for mReady!
09-11 16:12:44.375: W/MountService(2638): Waiting too long for mReady!
09-11 16:12:49.370: W/MountService(2638): Waiting too long for mReady!
09-11 16:12:54.374: W/MountService(2638): Waiting too long for mReady!
09-11 16:12:59.369: W/MountService(2638): Waiting too long for mReady!
09-11 16:13:04.374: W/MountService(2638): Waiting too long for mReady!
09-11 16:13:09.379: W/MountService(2638): Waiting too long for mReady!
09-11 16:13:14.384: W/MountService(2638): Waiting too long for mReady!
09-11 16:13:19.379: W/MountService(2638): Waiting too long for mReady!
[Android General] dodgedroid:
PLEAAAAssee somebudy help me?...I have a probleam I got BOOTLOOP, Look at this LogCat
[Android General] rirozizo:
please recreate the bootloop, and make a logcat filtering "warn" or "error" only. so i could see it better.

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] marniel647:
Can i Port the cm9 of galaxy ace to my galaxy 551?
[Android General] itzdarockz:
Would this work if I used cm7 as my port and GB as my base?
[Android General] jonah1234:
i have a question. How come you edit the updater-script and other files in the ported and then when youre done with all that you replace the ported meta-inf with the base meta-inf. Why not just do that to begin with. It seems pointless to edit the updater-script if your just gonna end up replacing it. Maybe i'm just not understanding something.
[Android General] rirozizo:
i don't see a step where i have to replace META-INF folder.

ROM ported using this guide:

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

thanked and linked to you.

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] jonah1234:
Where it says for ics and newer. Its almost at the bottom of the op
[Android General] rirozizo:
OP is right.

we are modifying BASE's updater-script, then we use BASE's update script for our port. so when you finish editing BASE, copy META-INF from BASE to PORTED.

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] marniel647:
Can i port cm9 of galaxy ace to my samsung galaxy 551
[Android General] Peteragent5:
Omg... Quit asking me these type of questions! Yeah you can! Anything is possible!

But it's not as easy as it looks...

(I need to add this to the FAQs....)

Logcats aren't for newbies, use ddms!

Yes. CM7 is based on GB. (CM7 is just a tweaked & modded Gingerbread)

Lol no. You have to read below that editing the updater-script part, it says: for ICS and Newer only

You read that. It also explains adding the tweaks onto the updater-script also (I think) :)
[Android General] marniel647:
Thanks peteragent..

Just wanna clarify my self I use the cm9 of willing(It build for my device the galaxy 551) i use it as a Base and the cm9 of galaxy ace i use it as Ported i am right.? and after that i use the Ported rom?
[Android General] nom051205:
Hi peteragent, may you tell me how to fix bluetooth and wifi (driver failed loaded) on port rom? Simply replace libhardware_legacy.so and netd from base rom made the phone won't boot. I have edit ramdisk, make patch still no go. Or should I edit the libhardware_legacy? Can't found any tutorial how to do that

Thanks for your attention.
[Android General] Peteragent5:
Yes, final product is in PORTED workspace.

Yo
[Android General] KainXSS:
can anyone help me out, I was able to port CM9 and 4.0.4 to the Zenithink ZT280 using your methods but for CM9 the lcd shows fine but the touchscreen registers are inverted(when I move up it goes down),

on the 4.0.4 it seems like it runs fine but in DDMS I get tons of errors and it seems gapps always crashes, here are some of the errors I get.
[Android General] Daniel.Infante:
Good post!
[Android General] anvooo:
Good guide :)

Inviato dal mio GT-S5570 con Tapatalk 2
[Android General] thebrainkafka:
So would it be passable to Port Xperia p ics to Xperia u gb?
[Android General] SpaceCaker:
Simple NO

Xperia u woll have official ics in first week of october
[Android General] thebrainkafka:
Thx

But i can eg Port KA03 to latest gb firm .184 using this procedure?
[Android General] SpaceCaker:
Yeah
[Android General] thebrainkafka:
What Do i need? .184 sony firm System.sin extracted and deodexed and KA03? Anhing more?

Thx
[Android General] thebrainkafka:
Thx a lot.

Just successfully ported a rom

:good:
[Android General] SpaceCaker:
Good :)
[Android General] kwechoet:
I tried to port GTI9100G rom to GTI9100, after i flashed it my phone stuck at boot animation logo
[Android General] rirozizo:
LOGCAT

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] cyanidekiller:
i tried porting lewa os ics 4.0.4 to neo v and stucked at bootanimation :crying::crying:
[Android General] pratikmore:
logca http://db.tt/3diQYOtI

cm 7 ligux rom.cant hear voice bot side.
[Android General] Hpsgill:
helpfulllll guide
[Android General] ilikechicken123:
Thank you sooo much! I love how detailed this is! I finally was able to port ROMs. Thankss!!!
[Android General] dodgedroid:
please help, my camera and wifi is not working...here is a logcat:| heeelp..
[Android General] Haxer87:
dude, Im trying for so long to port Codename android 3.6.0 to my i9100g but it stuck at boot screen, i dont know why...i followed ur steps exactly..

i used:

Base: CM10-23092012

Ported: CodenameAndroid-3.6.0-NexusS4G

Whats the problem?
[Android General] rirozizo:
logcat... please!

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] Haxer87:
logcat as u asked...
[Android General] rirozizo:
did u replace system bin?

it's bootlooping on system/bin/iptables.

so if u replaced it with the base's one, put ported's iptables..

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] Haxer87:
i did as u said but the same bootloop
[Android General] xnan:
I ported a LDPI device ROM to my HDPI device. It worked like a charm. You just have to change values in build.prop to make the ROM fit for your screen. You have to change the LCD density value in build.prop ro.sf.lcd_density=160 (you have to replace this value with your base ROM's value) Icons will be bigger but it will be little bit blur, you have to replace icons with your HDPI icons :D
[Android General] w0lf215:
How.. Im assuming you do the "adb logcat" command in CMD? It just sits there "waiting for phone.." If i run "adb devices" It shows my phone but says its offline
[Android General] e0mandaniel:
what do i do if i get broken characters when i try to view files on notepad++

im on windows 7 ultimate
[Android General] SpaceCaker:
Decompile apks ?

unwritten sentance
[Android General] MrAwesomePT:
That happens to me too... In the build.prop there are some characters that wont show properly or are some kind of Asian characters or something, and when I copy them, they become just question marks (?) :confused:

What should I do?

That part where we have to modify the files to make them have the same content as the BASE rom still gets me confused :x
[Android General] jahrule:
This almost seems magical or I am reading this whole thread wrong. Basically, your saying I can port any devices rom to my t989 so long as the CPU is the same? I was under the impression that if I am using a stock from I can't mix match anything from cm with stock. Can you confirm this?
[Android General] a961009:
My phone is ARMv7 and our phone does not have cm7. I want to port cm7 to my phone but which one should I have to use for "PORTED"? I will use galaxy ace cm7 for the base
[Android General] jahrule:
I tried already following this guide. Our t989 phone has no cm either. It basically failed. I tried 3 different ports with 3 different bases
[Android General] Peteragent5:
Update is coming
[Android General] MrAwesomePT:
Thank you so much!!!! :D
[Android General] PipelinerArd:
Does anyone know where the audio and video drives are located within a rom?
[Android General] roro59286:
Hello,

Would it be possible please CyanogenMod port on HTC Explorer (Pico).

Its equivalent is the HTC Wildfire (S).

Because I'm trying to port for several days and I can not do it. I have a stock rom for HTC Explorer and Cyanogen rom for HTC Wildfire S.

Thank you.
[Android General] voetbalremco:
damn, old guide is gone...

do you still have it, somewhere??
[Android General] iok1:
Yeah, i agree with voetbalremco, i was just about to try port a rom, but the post is edited and shorter (for example, there is nothing about editing updater-script, changing kernel etc....) anyway, thanks, i remember most of the stuff you wrote
[Android General] prince147:
Dude update for cm7 and 9 roms

And can I get a copy of the old guide!!

I liked it!!
[Android General] r1c4rd0:
are you guys talking about a guide like this:???

old guide
[Android General] voetbalremco:
Niceee. Is that your forum??
[Android General] MrAwesomePT:
Hey there mate.

There are some things I would like to tell you about.

First, there is a tread about that port already. There is no rom yet... but I'm trying to work on it. Maybe we could try to work together if you are ok with it.

Second, Wildfire S is ARMv6 and HTC Explorer is ARMv7... Maybe you should try another device. I was trying to do it with HTC Desire S, although the specs are not as similar with HTC Explorer as Wildfire S, it is ARMv7 too, so there must be a better change with that one.
[Android General] voetbalremco:
Copied and paste in .doc :)

http://www.2shared.com/document/X4dINKSj/romporting.html
[Android General] roro59286:
Ha you are working on great. I think that the wildfire (s) was ARMv7.

I'll look on my side of the Cyanogen rom HTC Desire (s). I hold you aware if I have achieved something.

Sorry for my bad English.
[Android General] webstar1:
wait, so you delete the libandroid_runtime from the rom zip you want to port,

then replace all the libs from your base :confused:

Whats the point of deleting it when it will be overwritten anyway.

and some roms such as miui require special libs that are not in a stock aosp rom so it wont boot.
[Android General] Peteragent5:
Thanks for report :)

I know it'll work but icons will be blurry. I only said no, cause doing this will just waste your time :) lol
[Android General] rahulsby:
Thank you very much
[Android General] pratikmore:
Logcat :- http://db.tt/TLhOJCGe

Status bar DC and incoming call didn't see on screen.joyous rom
[Android General] donhashem.dh:
Ok I have this little q

It's that I have ics and I want to port an ics Rom but the ics Rom I'm gonna port was ported from gb so is it ok ??

Keep your hopes up high

and you head down low!!

ADTR...
[Android General] rirozizo:
yes, but all the issues the base rom has, will be in your port.
[Android General] donhashem.dh:
if i wanna port from a bigger screen resolution cant i just change the dpi without resizing ??
[Android General] KainXSS:
I was able to port from ics to cm9 but the wifi no longer works, anyone have any Idea to fix it, I fixed everthing else but this.
[Android General] rirozizo:
try getting a logcat while you turn the wifi on.

two logcats please:

1 with verbous filter

1 with warn filter

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

i didn't mean to mock you or to offend you in any kind of way
[Android General] nom051205:
Did you use aosp as base? If yes then wifi not work if you use libhardware_legacy from cm9. Try use from base rom libs.
[Android General] KainXSS:
yup I used an unmodified rom for my tablet and I have not tried that,

thanks will try that
[Android General] KainXSS:
ok these are the errors when I try to start wifi

10-06 13:48:17.728: E/WifiStateMachine(162): Failed to reload STA firmware java.lang.IllegalStateException: Error communicating to native daemon

10-06 13:48:17.898: E/WifiStateMachine(162): Unable to change interface settings: java.lang.IllegalStateException: Unable to communicate with native daemon to interface setcfg - com.android.server.NativeDaemonConnectorException: Cmd {interface setcfg wlan0 0.0.0.0 0 [down]} failed with code 400 : {Failed to set address (No such device)}

10-06 13:48:17.898: E/WifiHW(162): ctrl_interface != wlan0

10-06 13:48:17.918: E/WifiHW(162): Unable to open connection to supplicant on "wlan0": No such file or directory

10-06 13:48:17.968: E/wpa_supplicant(1780): Could not read interface wlan0 flags: No such device

10-06 13:48:17.968: E/wpa_supplicant(1780): WEXT: Could not set interface 'wlan0' UP

10-06 13:48:17.968: E/wpa_supplicant(1780): wlan0: Failed to initialize driver interface

10-06 13:48:18.929: E/WifiHW(162): Supplicant not running, cannot connect

10-06 13:48:19.939: E/WifiHW(162): Supplicant not running, cannot connect

10-06 13:48:20.949: E/WifiHW(162): Supplicant not running, cannot connect

10-06 13:48:21.959: E/WifiHW(162): Supplicant not running, cannot connect

10-06 13:48:22.969: E/WifiHW(162): Supplicant not running, cannot connect

10-06 13:48:22.969: E/WifiStateMachine(162): Failed to setup control channel, restart supplicant

10-06 13:48:27.979: E/WifiStateMachine(162): Failed to reload STA firmware java.lang.IllegalStateException: Error communicating to native daemon

10-06 13:48:28.009: E/WifiStateMachine(162): Unable to change interface settings: java.lang.IllegalStateException: Unable to communicate with native daemon to interface setcfg - com.android.server.NativeDaemonConnectorException: Cmd {interface setcfg wlan0 0.0.0.0 0 [down]} failed with code 400 : {Failed to set address (No such device)}

10-06 13:48:28.029: E/wpa_supplicant(1833): Could not read interface wlan0 flags: No such device

10-06 13:48:28.039: E/wpa_supplicant(1833): WEXT: Could not set interface 'wlan0' UP

10-06 13:48:28.039: E/wpa_supplicant(1833): wlan0: Failed to initialize driver interface

10-06 13:48:28.059: E/WifiStateMachine(162): Failed to start supplicant!

copying the libhardware_legacy made it not boot.
[Android General] rirozizo:
r u sure u have the right drivers/libs? it looks like you didn't replace the wpa supplicant and the other wiifi drivers

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

i didn't mean to mock you or to offend you in any kind of way