yashsingh1/xdaforums huggingface dataset:
[Android General] Reviewers:
Sense 3.6 (4.0.3) base?

or Pure 4.0.3 base.

Woulden't using Sense 3.6 as a base be good since it's Sense and ICS so is Sense 4.0
[Android General] ocovarr112:
Then when you finish your edit on ported you should replace build.prop from PORTED to BASE, isnt¿?

BTW excellent guide!
[Android General] Peteragent5:
Yup. Sense 3.6. As long as both BASE and PORTED are

same

(4.0.3) :)

Yup when you finished build.prop in PORTED, you copy that build.prop into BASE

And your final Rom is BASE
[Android General] prince147:
That happns only due to errors in copying not due to size of the rom.....
[Android General] sthomas38:
Here is the logcat: http://pastebin.com/nwp4fJVr :).
[Android General] J3STUR:
Thanks for the guide. Gonna give this a try even tho i have the rom i want but still want to be able to do it myself and make my own tweaks. All i really know right now is how to theme.
[Android General] jamcar:
ok im trying to port AOKP build 35 but when i go to install in with CWM i get:

Finding update package...
Opening update package...
Installing update...
Installation aborted.

do you know of any fixes? and there isnt an error number given out o.0
[Android General] paxChristos:
Check the structure of your update.zip you should see two folders, meta-inf & system, iirc.
[Android General] lwxddlqkillapp:
i port it suces.but systemui stoped to work ? how to slove it?
[Android General] karlo0321:
is this work on xperia x8 with custom kernel?
[Android General] jmz:
no you are completely wrong. No recovery will tell you its out of space. You will have no indications of device out of space till you look at the recovery.log.
[Android General] jamcar:
in my .zip folder there are 3 things META-INf, system, and a boot.img file
[Android General] Sobralobo:
Is it possible to port rom from dual core to monocore phone ? Curious. :D
[Android General] itzdarockz:
not working for me :/
[Android General] bobyracer2:
SAME CPU!!! man you think that a dual core its the same cpu of monocore???

so very useful guide !!!, i just tried to port a galaxy s rom to the desire hd... but int the galaxy s rom there is no boot.img to extract the kernel.... so what should i do?? the roms are: PORTED:galaxy s simplicyti 2.2.1

BASE: CM7.2 rc1
[Android General] Sobralobo:
Is speaking like that needed ? I'm asking that for both Armv7, base and ported. If it was that obvious for me, don't you think I wouldn't ask ?
[Android General] bobyracer2:
yeah buddy you're right !... excuse me ... :(:(:( i'm sorry would you forgive me??
[Android General] sayemahmed:
I keep on getting "Installing aborted"

for the htc wildfire trying to port x10 mini rom
[Android General] Beastmode:
it has to be either structure of your zip rom or your updater script
[Android General] jacobmacek:
Flashing Problem

i followed all of the instructions and went to flash my final base zip and it would not work, do i need to rezip the files and sign it w/something like androidZip? Or was i supposed to do all of this on my phone???
[Android General] PaintballerAlex07:
I have a kyros 7022 with CM7. The camera only works with stock rom, if I do this procedure, do you think it might make the camera work on cm7?
[Android General] Beastmode:
what was the error? no need to sign. how did u zip?
[Android General] karlo0321:
hey can someone help me?

maybe i got a problem in build.prop. i cant boot, it stuck at boot logo.

im xperia x8 user
[Android General] itachilinux:
errr, how about libraries and many others? is it can porting with this trick?
[Android General] thespotlite:
Hmm, when I tried flashing the new rom, it went pretty damn quick, rebooted, aaaand its still on the previous rom. Confused hahaha
[Android General] Thatgrass:
Had same, just flash again, i thinj
[Android General] thespotlite:
Tried again twice, but no dice. It starts to flash and the progress bar begins, then the bar disappears, and when it comes back it goes pretty damn quick and is finished. I'm going to look over all my files again. Maybe I left something out
[Android General] bobyracer2:
maybe you messed up something in the updater script!
[Android General] thespotlite:
I'm thinking the same. I've been looking through it right now
[Android General] thespotlite:
So do I add the symlinks from the port rom to the base rom?
[Android General] bobyracer2:
i don't think .... you must leave the symlinks untouched... you only must copy edit or add ui prints permissions and something else but you must do not touch the symlinks

* this is what peter agent wrote on the first post
[Android General] thespotlite:
Oh yeah. Forgot that I read that haha. Well, this time I got a little farther. After changing some things in the script, I am now seeing a new boot animation. But it seems that is just looping. Time to go back to notepad++! Enough trial and error and I have to get something
[Android General] bmgreatness:
can i use CM9 as a base to port CM7? from the comments it looks like I have to an AOSP rom as a base but the only one avialable is CM9. It has a 2.3 kernel
[Android General] worldindo1:
From what I understand, no. They have to be the same version of Android. What I don't get is how you could have a CM9 ROM and not a CM7 ROM. Unless you have a brand-spankin'-new phone. There would be compatibility issues between 4.0.X and 2.3.X. They are just about completely different.

This is my Tapatalk 2 signature. Rockin' the app on my Nook Color running ICS 4.0.4, courtesy of Dalingrin, Fattire, and our other beloved XDA weenies (nemith, keyodi, arcee, hacdan, etc.)
[Android General] jacobmacek:
Flashing Problem

i went through all of the steps again and followed them exactly and when i go to flash it, it flashes fine but when i go to boot it, it doesnt go past the lg screen.

I am trying to port w/ cm7 (for lg vortex) as my base and cm9 (for lg optimus v).

I can run ANY optimus v rom on my vortex flawlessly aside from 3g. It wants to connect to virgin mobile instead of verizon. Is there a way i can just change the carrier of the optimus v rom to verizon?
[Android General] Beastmode:
For sure a problem with your update script, just write your own and you'll be golden :)

-sent from my POS i897

no camera, no power button but at least I got miui lol
[Android General] jmz:
/system/apns-conf.XML and

Decompile framework-res.apk and look in Res/XML/apns.xml
[Android General] Contingency™:
Awesome Guide
[Android General] karlo0321:
it flashed correctly but its not booting.why?

i followed all of your guide.something i did wrong?
[Android General] worldindo1:
See my other post... it's the one above yours. The base and port ROM have to be the same version... Gingerbread is Gingerbread, ICS is ICS. Gingerbread can never nor ever will be ICS.

EDIT: See post #12.

This is my Tapatalk 2 signature. Rockin' the app on my Nook Color running ICS 4.0.4, courtesy of Dalingrin, Fattire, and our other beloved XDA weenies (nemith, keyodi, arcee, hacdan, etc.)
[Android General] worldindo1:
Were the base and port within the same version of Android? Ex: Froyo, GB, ICS...

This is my Tapatalk 2 signature. Rockin' the app on my Nook Color running ICS 4.0.4, courtesy of Dalingrin, Fattire, and our other beloved XDA weenies (nemith, keyodi, arcee, hacdan, etc.)
[Android General] karlo0321:
yeah its the same android version.

i used GDX as BASED and JoyOS as my port.

i got JoyOS in chinese devs which is for ZTE Blade.
[Android General] worldindo1:
Go back and check your build.prop. Make sure that ro.build.description and ro.build.fingerprint are the same as in base. It can be easy to unintentionally add/modify something, I have a million times before. Try comparing the 2 build.props side-by-side.

This is my Tapatalk 2 signature. Rockin' the app on my Nook Color running ICS 4.0.4, courtesy of Dalingrin, Fattire, and our other beloved XDA weenies (nemith, keyodi, arcee, hacdan, etc.)... oh, can't forget eyeballer ;)
[Android General] karlo0321:
yeah im pretty sure that i copied and paste the ro.build.description and ro.build.fingerprint from based to port then i copied and paste the build.prop from port to based. and i dont know what else im going to edit in PORT's build.prop
[Android General] iok1:
Logcat it when its stuck in boot :)

Sent from my GT-S5660
[Android General] oguzhan mobile:
how to port aosp ics to cm9?
[Android General] karlo0321:
how to see the logcat?
[Android General] iok1:
With ADB

Sent from my GT-S5660
[Android General] karlo0321:
i said how :)
[Android General] iok1:
ADB logcat is the command

Sent from my GT-S5660
[Android General] karlo0321:
where did i get that?
[Android General] Hayden18:
Android SDK
[Android General] karlo0321:
i flashed it successfuly and its booting but the problem is i got two force closing

com.android.phone

android.process.acore
[Android General] Peteragent5:
Oh yes. The biggest problem with android.process.acore is the Contacts App.

It's corrupt, so replace the Contacts app with your Device's Contacts app

Replace the Phone app with your Device's Phone app & any apps to do with the phone app
[Android General] itzdarockz:
Whenever I try to split the boot.img to edit its files so it can run on my phone I get

android magic not found

This is a cm9 boot.img
[Android General] karlo0321:
i replaced contacts and phone app but nothing is change.

android.process.acore is always there
[Android General] j3tz3:
it might be in the framework.

___________________________________

hit thanks if i helped:)
[Android General] karlo0321:
What should i do sir? Im too excited to port my own :)
[Android General] j3tz3:
i dont know much about framework stuff. but you need to open the framework res or frakework apk and edit it. dont ask me how. :(

___________________________________

hit thanks if i helped:)
[Android General] medicjunKie:
You can decompile framework-res.apk with APKtool.
[Android General] karlo0321:
i realize that my base is have a bugs in wifi..

i try to used other gb as based but i got stuck at bootloader.
[Android General] evil1art:
has anyone been able to port a htc sense rom to a non htc phone like samsung?
[Android General] Hayden18:
I think that requires more than just replacing files

Sent From My Sexy Xperia Arc
[Android General] mramonks:
When Im copying across the buildprop from basse to ported, am I just changing whats already there. Its a cm7 rom and has far less written in the build prop than my stock base rom. ?

Thanks for any help
[Android General] BladeZero:
Hey, if I were to port a nexsus or nexsus s (can't remember which one is simaler to my phone I9000) ics rom. would I be able to use the same method
[Android General] Peteragent5:
Yes you are right. This just gets the port booting. If not look at logcat when booting and you need to see what logcat tells you (the errors)

Then replace the smalis in framework.jar
[Android General] harryfokker:
Im agree with that, it could been negligent to make this like procedure
[Android General] medicjunKie:
Alright, I'm trying to port an HTC ROM to an LG phone.

I understand i have to unpack the Kernel(s) to change the BOOTCLASSPATH.

I did that already.

I'm not totally sure what part am suppose to paste from ported to base.

I copied this:

That's all i need to copy from ported to base, correct?

Or is there more to it?
[Android General] jacobmacek:
one more question

Do you know how I can take the optimus v rom (that works on my vortex aside from connecting to verizon) and modify it so it will connect to verizon instead of virgin mobile?
[Android General] prince147:
Yup!!
[Android General] prince147:
You read the topic mate!??
[Android General] medicjunKie:
Thanks!

I'll report back
[Android General] medicjunKie:
I changed the BOOTCLASSPATH but the rom still won't boot.

And i can't get a logcat.

What to do?
[Android General] Sobralobo:
Tried to port Joyos but I get into bootloop. Maybe something special with that rom to do ?
[Android General] Beastmode:
Logcat n check

-sent from my POS i897

no camera, no power button but at least I got miui lol
[Android General] Sobralobo:
I logcat but don't understand what causes the problems. Can I attach the log here ? :S
[Android General] Beastmode:
Put it on pastebin and put link here

-sent from my POS i897

no camera, no power button but at least I got miui lol
[Android General] Sobralobo:
Here is my logcat : http://pastebin.com/Y79KWw7d

Thanks for your help. :)
[Android General] Messi10:
When i try to flash the rom it says Installation aborted status (6)

plz help
[Android General] iok1:
It's something wrong with your updater-script
[Android General] medicjunKie:
Check your permissions
[Android General] karlo0321:
Just try to flash again. Or copy and paste the rom your sdcard again. Or redownload the rom.thats it :D
[Android General] Sobralobo:
Thanks for your answer. What have I to do exactly ? Sorry for being such noob with that stuff. :/ Seems that copy and paste wasn't enough. :P
[Android General] itzdarockz:
My base doesnt have a init.d folder. Is this ok?
[Android General] karlo0321:
Try to flash first your base rom if its working, if yes then now try porting
[Android General] Messi10:
the rom stucks on samsung logo

plz help
[Android General] jacobmacek:
just one more question

i modified th apns in the ics rom to match the cm7, so what do i do w/ the framework?
[Android General] TakisBeskos:
can i port a miui rom with this guide ?

this miui http://xdaforums.com/showthread.php?p=24696499

and this base (not miui )rom http://xdaforums.com/showthread.php?t=1096075
[Android General] ThePresence:
hi i have HTC One V there's nothing in devlopment section so i want to make AOKP or CM9 rom...so help me with porting...htc one v has android 4.0.3 and sense 4.0 so it's possible to port AOKP or CM9 on that if possible then help me please im noob in devlopment section.....
[Android General] itzdarockz:
Can you just use your bases boot.img instead of the ports? Thanks.
[Android General] prince147:
Actually you can't!!..... Cm9 & aokp are to be compiled from source..... If you have a custom kernel built from source you can port cm9 otherwise no!!
[Android General] prince147:
You have to use your base's boot.img...... Use ported's boot.img and you have a hard brick!!
[Android General] itzdarockz:
My PORT has all of these files (from updater-script) I am porting cm7

ui_print("Checking state of BML/MTD...");
package_extract_file("modem.bin", "/tmp/modem.bin");
set_perm(0, 0, 0777, "/tmp/modem.bin");
package_extract_file("updater.sh", "/tmp/updater.sh");
set_perm(0, 0, 0777, "/tmp/updater.sh");
package_extract_file("make_ext4fs", "/tmp/make_ext4fs");
set_perm(0, 0, 0777, "/tmp/make_ext4fs");
package_extract_file("busybox", "/tmp/busybox");
set_perm(0, 0, 0777, "/tmp/busybox");
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
package_extract_file("erase_image", "/tmp/erase_image");
set_perm(0, 0, 0777, "/tmp/erase_image");
package_extract_file("bml_over_mtd", "/tmp/bml_over_mtd");
set_perm(0, 0, 0777, "/tmp/bml_over_mtd");
package_extract_file("bml_over_mtd.sh", "/tmp/bml_over_mtd.sh");
set_perm(0, 0, 0777, "/tmp/bml_over_mtd.sh");

Do I need all of these files? If so can someone help me with them because they have odd coding. Thanks.
[Android General] dc959:
i followed the guide perfectly but i get stuck at my splash screen and haptic feedback is enabled on my buttons my phone and the one im porting aokp/cm9 from has the exact same hardware and logcat just says:

--------- beginning of /dev/log/main

I/DEBUG ( 107): debuggerd: May 2 2012 10:15:11

--------- beginning of /dev/log/system

I/Vold ( 101): Vold 2.1 (the revenge) firing up

D/Vold ( 101): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)

D/Vold ( 101): Volume emmc state changing -1 (Initializing) -> 0 (No-Media)

E/HUAWEI PRC( 120): property_get ro.confg.hw_appsbootversion fail len=0

E/HUAWEI PRC( 120): property_get ro.confg.hw_appversion fail len=0

E/HUAWEI PRC( 120): property_get ro.confg.hw_appfsversion fail len=0

D/Vold ( 101): Volume emmc state changing 0 (No-Media) -> 2 (Pending)

D/Vold ( 101): Volume emmc state changing 2 (Pending) -> 1 (Idle-Unmounted)

W/Vold ( 101): Duplicate state (1)

W/Vold ( 101): Duplicate state (1)

W/Vold ( 101): Duplicate state (1)

W/Vold ( 101): Duplicate state (1)

W/Vold ( 101): Duplicate state (1)

W/Vold ( 101): Duplicate state (1)

W/Vold ( 101): Duplicate state (1)

D/Vold ( 101): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)

D/Vold ( 101): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)

I/DMM ( 181): DMM Disabled. movable_start_bytes not set: 0

I/DMM ( 188): Self-Refresh-Only Disabled. low_power_memory_start_bytes not set:0

E/Netd ( 106): Unable to create netlink socket: Protocol not supported

E/Netd ( 106): Unable to open quota2 logging socket

E/Netd ( 218): Unable to create netlink socket: Protocol not supported

E/Netd ( 218): Unable to open quota2 logging socket

E/Netd ( 250): Unable to create netlink socket: Protocol not supported

E/Netd ( 250): Unable to open quota2 logging socket

E/Netd ( 276): Unable to create netlink socket: Protocol not supported

E/Netd ( 276): Unable to open quota2 logging socket

E/Netd ( 324): Unable to create netlink socket: Protocol not supported

E/Netd ( 324): Unable to open quota2 logging socket

E/Netd ( 348): Unable to create netlink socket: Protocol not supported

E/Netd ( 348): Unable to open quota2 logging socket
[Android General] Prittt:
Inviato dal mio GT-I9100 con Tapatalk 2
[Android General] EndOfDays-Wildfire:
This guide is awesome. Ported Wildfire S Rom to Wildfire, thank you for sharing your knowledge.
[Android General] cyrusalmighty:
Thank you for taking time to do this. :D
[Android General] Cobmaster:
Sorry for my bad english, but when I try to port Cain's black (Samsung Galaxy Ace) to my device (Motorola Cliq) when I tri to type "adb logcat" it says "system/bin/sh non-existent file or directory error n°02" Someone can help?

EDIT: "There were 2 bash, 1 in system/bin and 1 in system/xbin but now it doesn't boot" I'll make a few try later.
[Android General] Peteragent5:
I'm guessing you're logcatting on phone? If so, have you installed busybox?
[Android General] Aslolo:
Hey there!

Nice guide, and thanks for making it, but i have a question! :D

I´ve did all the steps, but the last one confuses me.

I´ve now 2 updater-script´s, one from the Defy+ CM9 which is my BASE:

And one from the SGS1 AOKP which i want to port:

How do i merge em?

Could you explain it to me in detail?

Greetings Aslolo
[Android General] noentiendo.de:
gracias
[Android General] Peteragent5:
Here's a sneak preview of the new update for this Guide (WIP):

Step 4:

We are going to edit the updater-script located in: META-INF/com/google/android

Now zip your ROM Workspace (You can compress the zip).

You can also sign your ROM but it's not necessary.

But if your recovery only reads signed zips, then sign your ROM.

* Remember:

Use your common sense to edit and touch up the ROM so it'll boot.

Double check the ROM if it has any leftover files or folders you need to modify or edit.

And delete any file or folder if it has nothing to do with your Device.

The most important things for preventing Bricks are to edit: The build.prop & updater-script. Also replace the Kernel with one compiled for your Device.
[Android General] Aslolo:
Thanks, thats really awesome!

One last question, how do i replace the kernel? :D

Or could i simply leave the Kernel like it is, and delete the command/action that replaces the Kernel?

Greetings Aslolo :D
[Android General] Peteragent5:
Kernel should be zImage or boot.img

Or if you have sony xperia it might be something like kernel.sin

Replace that, with your device's Kernel

It should be located in the directory before the system folder
[Android General] Thatgrass:
Or boot.img ;)
[Android General] Cobmaster:
Sure it's cm7, but I 've found that not all the files for my device were installed, I forgot the hardware keyboard. Now it works but not completely. I can't get the apn work. Even if I try to manually set the apn and fake the sim informations it gives me the wrong apn. I've got tim and it gives me vodafone. Is there a way to fix this?

Inviato dal mio MB200 con Tapatalk 2
[Android General] rasenkiba:
you can teach about build.prop?god post i helped me (yes i use the thanks button:D)
[Android General] j3tz3:
what do you need to know?
[Android General] sumairmh:
Is it possible to port HTC desire ICS AOSP to HTC One V???

CPU: HTC desire: 1 GHz Scorpion

HTC One V: 1 GHz Qualcomm MSM8255 Snapdragon
[Android General] Pancakes_Gio:
Yea i just wanted to ask, so can we?

*Deving Sense For Gio*
[Android General] j3tz3:
mayby. try to port it from wildfire or wildfire s.
[Android General] corby2geek:
Thanks

Really great tutorial..teach me a lot :D

sorry i cant press thanks button, its not visible to me :o
[Android General] kishankpadiyar:
Wanna try out asap.. Thnx for t guide.. Rele helpful..:thumbup:
[Android General] r1c4rd0:
hi everybody...

i allready have a cm9 working in my phone, but we still dont have a aokp, i would like to port a aokp rom to my phone, is that possible to use my cm9 rom as base and aokp, that i want to port, as port??

thanks anyway
[Android General] medicjunKie:
Yes.
[Android General] leohongkong:
Excellent, reserved when my time is free...
[Android General] jmz:
Why not build from source. Much easier than porting a built Rom
[Android General] A_U:
Sound / audio is not working in my port. Both in headphones and loudspeaker are not producing sound. I confirm that both my speakers and headphones work fine.

So where is problem, so that I can fix ?
[Android General] Peteragent5:
I P.M you ;)
[Android General] mDroidd:
Hey there!

You might just have heard of my tool StudioAndroid.

I want to include a tool for porting ROMs based on this tut.

Can I do that?

Ofcourse I will give credit ;)
[Android General] oguzhan mobile:
I have aosp ics 3.0 kernel but it did not work cm9 with aosp kernel. My needed bootimg-ramdisk.

1)How to port aosp kernel to cm9 kernel?

2)how to port or compile cm9 bootimg-ramdisk?

thanks in advance...
[Android General] Peteragent5:
Yeah I know your tool :)

Yes you can base on this guide. But if I update this guide then you should also update your sources :)
[Android General] Bert.C:
Edit: problem solved :)
[Android General] croccio:
i get bootloop. i can't do adb pc doesn't recognize my tab in adb. i get boot loop if i use lib_androidruntime of base rom and my tab don't turn on if i use libandroit_runtime of ported rom
[Android General] Peteragent5:
Adb is essential! You need it when porting...
[Android General] croccio:
how can i use it? i connect my tab to pc when it turn on but my pc don't recognize my tab! how can i use it??
[Android General] Peteragent5:
http://xdaforums.com/showthread.php?t=1572315

Worked for me :)
[Android General] croccio:
if my tab works adb works. but now it doesn't work :(

should i copy boot.img too?

can u port it for me?

if yes here there is a rom in zip format

http://www.mediafire.com/?a65bbm686jmwimk

it is ics. my cpu is arm v7 (rk2918) then i try it. please :( i would cyano for my tab :(
[Android General] medicjunKie:
Your always suppose to use the boot.img for your device
[Android General] croccio:
please help me to port cm to my tab :(
[Android General] iok1:
don't port, for best results, build from source instead.

Sent from my HTC Sensation
[Android General] shimp208:
Awesome guide, exactly what I was looking for :D! Can't wait to try this on my OG Droid once my Galaxy S3 arrives.
[Android General] terminator1983:
Can i port a Samsung galaxy S2 2.3.6 rom with this tutorial on Motorola Atrix using CM7 2.3.7 as base
[Android General] medicjunKie:
Base and Port have to be the same android version.
[Android General] AndroSung:
about the build props , how to match it ? copy all and paste it ?

and the updater script i changed every thing (except the symlinks) to look like the ported updater script , and i got status 7 :confused:
[Android General] terminator1983:
thanks

I tried to port S2 2.3.6 rom on stock Motorola Atrix 2.3.6 rom but it was stuck on the bootscreen.Can you explain a little what changes has to be made in Meta-inf updater script.