yashsingh1/xdaforums huggingface dataset:
[Android General] Ygreck:
i want to port a rom for the lg e400 (stockrom.zip)

but in the stockrom is no inet.d folder...
[Android General] irberserk:
Same stuff :(

In the build.prop, i must edit all the build.prop(port) or only these two lines?ro.product etc etc?
[Android General] cezaralboiu:
one question: what did you mean with "they must have the same CPU"?

that means i can't port a rom from samsung galaxy s on a galaxy s plus?
[Android General] medicjunKie:
I never edit the build.prop only with editing the updater-script is enough to get the rom booting.

I edit the build.prop after I have it booted. ;)

The same processor.
[Android General] irberserk:
So I must not edit the build.prop?The base is Lg e400 stock the ported is Cyanogen 7.2 for LG optimus black.If i not edit build.prop im sure that i have a bootloop xD
[Android General] medicjunKie:
Well then if you're sure, edit it.

I just mentioned that I don't edit it till after it's booted, but it might be different in your case.
[Android General] irberserk:
ihhiih you right but i don't understand one thing....I open updater.script of base and ported.I must editing the updater script of base or ported?and i dont understand which i must change in base.Sorry im noob :)
[Android General] medicjunKie:
It's common sense. If you use your phones rom as base, you don't have to edit because it's already for your device. Unless your using ported updater-script.

You understand?
[Android General] irberserk:
Yep thanks a lot but build.prop must be the ported or the base in your argumentation must be the base

Inviato dal mio LG-E400 con Tapatalk 2
[Android General] dc959:
i tried porting a rom from a different device but this time i only had to add the jtestframework.smali and the paint.smali instead of the bluetooth.smali but i still end up with the same problem

http://pastebin.com/h3BJZqMg
[Android General] TheArc:
ported Galaxy fit AOKP to my U8160

followed all instructions properly, hope this works xD.

OMFG! Yus it works hahahah yeeaah, your the best!

Thanks for this awesome guide.
[Android General] Sir Otto:
Hello, I tried to port MIUI v4 from Galaxy Nexus to Galaxy Tab, because they have both an ARMv7 CPU, using official CyanogenMod 9 as BASE (since MIUI derivates from CM).

I followed completely the guide, but I didn't find the file vpnservices.apk either in the BASE or in the PORTED. What's more, I didn't understand completely what I sould change in the files build.prop and update-script. You say to change the lines permissions, assets, ui_print, runprograms etc., but I didn't understand what these lines do and how to change/delete/create them (except for ui_print, which was easy to understand).

However, I copied the file to my P1000 Galaxy Tab and flashed it. I rebooted it, but now it remains in the boot animation. Can you help me through the logcat I upload here? As you can see, there are always some lines about a lot of png files "that vary on configuration".

Could it be due to the difference of resolution between the two devices (GNexus and GTab)?

I'm sorry for these silly questions, but I'm a noob. Please, could you help me?

LOGCAT:

http://db.tt/VRNGu6d4
[Android General] TheArc:
Vpndialogue?
[Android General] Jovistyle:
Good...
[Android General] Sir Otto:
Yes, I found vpndialogs.apk and I did the backup of that. But I believe the problem isn't that.
[Android General] nikkodonatte:
Is this possible on a Galaxy Ace s5830i??
[Android General] dc959:
i give up on this i have tried porting so many different roms (aokp and cm9) i even tried using miui v4 as my base but no matter wat rom i try port i always end up with the same error having to add jtestframework.smali and replace paint.smaili then i get this error http://pastebin.com/h3BJZqMg and never have been able to fix it its the same with every rom i try port so if someone can tell me how to fix this i would be extremely grateful
[Android General] medicjunKie:
Are you compiling framework.jar correctly?

The logcat says it can't open the dex file.
[Android General] dc959:
im using smali and back smali to compile and decompile it but if you can tell me a better way or link me a tut it would be awesome and i also noticed the file size go from 3.9 to 4.0 every time even if i added just the jtestframework.smali
[Android General] TheArc:
i used VPN Dialog.apk and eveything was fine?, maybe its not the correct .apk but who cares my port works, but there have ben random reboots resulting in perminant bootloops.
[Android General] AlwaysDroid:
Could someone five me a hand getting my port working? I am porting aosp 4.0.4 androxide rom using official cm9 as a base. I am porting from a nexus s (androxide) to my sgs (cm9 base). I did all that was stated above and it just boots endlessly. Better than my first attempt which couldn't even get to the boot logo but still not good enough.

Also, how do I copy log cats from cmd? It doesn't save them, it only displays a set number of lines.

EDIT: I forgot about the updater script, but i am terribly lost trying to edit it. Help is appreciated.
[Android General] paxChristos:
Logcat: http://xdaforums.com/showthread.php?t=1726238
[Android General] dc959:
do i need to sign the framework.jar after editing smali files?
[Android General] Zorua:
Finally got my port to boot but usb storage isn't working. I can also not access storage from Settings. What am I doing wrong?

logcat: http://logcat.miui.us/893014
[Android General] jcmaddox1:
All i get is a status 7 error, No matter what I do, I followed the guide EXACTLY.

Using AOSPX base for Inspire4G and CM9 RC1 from the desire Z thread as the port rom.
[Android General] paxChristos:
This might help: http://xdaforums.com/showthread.php?t=1689822 (Second link in a google search "Status 7 Error cwm")

Pax
[Android General] dc959:
i just tried using apktool on a windows machine but no matter what i do i always end up with this error http://pastebin.com/h3BJZqMg
[Android General] AlwaysDroid:
Also need some help porting the updater scripts. I dont know how to add the parts to it im supposed to..
[Android General] dc959:
my problem has nothing to do with the updater script its the framework.jar
[Android General] AlwaysDroid:
You mean my bases updater script might be fine, its the framework.jar i have to edit?
[Android General] dc959:
i had problems with the framework.jar and you for some reason responded saaying u also have problems with the updater script
[Android General] AlwaysDroid:
Possiblythe framework, but for now I am looking for someone that can explain to me how to modify the updater script like in the OP. Cause right now I have an endless boot loop .
[Android General] dc959:
firstly run in cmd or terminal ddms then set the dropdown menu from verbose to error then copy the output shown at the bottom of the window and upload it here and if its boot looping at the splash screen then if u have replaced the libandroid_runtime put the original back in and you will get to the boot animation
[Android General] AlwaysDroid:
Heres a logcat. I didnt filter it. But if you use notepad++ and highlight the E, it will highlight the rest of the errors for you... theres no fatal errors though, not to bad i guess.
[Android General] dc959:
there is a fatel error and the cause of its the same as mine E/JNIHelp ( 166): Native registration unable to find class 'android/debug/JNITest', aborting which is the framework.jar and under that it says fatel and under that there is a bunch of stars it is about a quarter of the way down the page
[Android General] AlwaysDroid:
Ah thanks, i missed that. What can i do to fix it?
[Android General] dc959:
lol thats y im on here no one has helped me fix it but i have tried replacing it with the original and that doesnt fix it so i have no idea on how to and its happened with every rom i have tried to port
[Android General] II GHOSTFACE II:
Great guide, much appreciated!
[Android General] al3nkbootas:
thanx goood works and topic:good:
[Android General] Shadow Samurai:
you lost me at edit build.prop....

i have done everything else i just need to know what i should edit and what i should keep in the build.prop and updater-script

I'm trying to port the viperS rom from sensation to the htc amaze, using NRGZ's rom as the base:eek:
[Android General] dc959:
you dont need to edit the updater script and build.prop to get the rom to boot so see if it boots first
[Android General] koshajagadhita:
I want porting paranoidandroid rom for droid x

I better use CM7 or cm9 for BASE rom?
[Android General] paxChristos:
CM9 or it won't work

Pax
[Android General] Bonkurei:
first of all thank you for a very good guide.

i tried the guide @op and got my port to work, but then i ran a problem. my port rom cant call or receive a call and it cant text message, everytime i try to call my number from another phone the signal bar turn x , after that it change back to bars.

also when i dial a number and press the call button it will close and go to "home"

i attach my logcat

tyvm in advance
[Android General] AlwaysDroid:
None of my ports boot :'( Cant figure out how to fix it :/
[Android General] dc959:
neither do mine im pretty sure though u need an aosp based rom to port and aosp rom so like u would need cm9 to port aokp and vise versa i would test it but our cm9 rom right now only works for one of our touch screens and it so happens i have the one it doesnt work for
[Android General] Chew DZ:
How would you go about porting pure Android 4.1 Jelly Bean? Would using a 4.0.4 AOSP ROM as a base work??
[Android General] medicjunKie:
You have to modify the kernel, mess with smalis and such...
[Android General] Haze028:
Very new to this, and love the guide. I followed it but am unable to even get it to install. Gets to verifying filesystem.... Verifying partition sizes... the says error flashing zip. any suggestions would be appreciated.

Where does the information on what partition sizes will be created reside?
[Android General] circleofomega:
I took a complete back up of my Current Stock RaZr ROM...nandroid backup, but I don't have META-INF and the boot.img for some reason...I have all other files..any help?

Sent from my XT910 using Xparent ICS Blue Tapatalk 2
[Android General] dc959:
your not editing a backup of the rom on your phone ur editing the rom you downloaded that you would install in cwm
[Android General] circleofomega:
Ok? I thought we edit the STOCK I.e current ROM and overwrite these files with the newer ROM's files..

Sent from my XT910 using Xparent ICS Blue Tapatalk 2
[Android General] medicjunKie:
Not a Backup. You know, a ROM, a zip file. A zip file which you have to wipe data, cache, and dalvik in order to install from recovery.
[Android General] circleofomega:
Ok im totally lost man...there is MY ROM...the ROM I want to get rid of and there is the NEW ROM that is the ROM I want to flash...now which files do I need to copy from what?

AGAIN:

MY ROM- the ROM I wish to remove

&

The NEW ROM- the ROM I want to flash...

Plz explain using these terms...thanx!

Sent from my XT910 using Xparent ICS Blue Tapatalk 2
[Android General] Haze028:
If you're only looking to flash a new rom, you don't need this guide at all. In order to port a different rom to your device you will need a flashable zip of your current rom(Base) and a flashable zip of the rom you'd like to port(Port). A backup is much different from a flashable zip file which is probably where you're getting confused with this guide.

So to recap, to start off this guide you need two flashable zip files. The first is a known working flashable zip for your phone, ie the zip you flashed for your current rom or another MADE FOR YOUR PHONE. The second is a zip from a different phone(with the same cpu) which you'd like to port, ie AOKP, CM9.

Hope this helps

---------- Post added at 08:03 PM ---------- Previous post was at 07:58 PM ----------

I am still hoping someone is able to help me with my current road block, being that I can't get the zip to flash. Gets to the verifying partition sizes then quits saying nothing more than error flashing zip.

Any suggestions would be great, it is probably a noob question/resolution but i can't seem to find it anywhere on The Google....
[Android General] dc959:
if you have edited your update script put the origanal back and it should install and boot
[Android General] Haze028:
Thank you very much, though I feel stupid for not having done that on my own... Installed without a hitch.

Thanks again.
[Android General] circleofomega:
Awesome!! Thanx so much. Now, my only questions remain, what do I overwrite with what?

From the two zips, the app, the framework etc folders need to go from what to what?

MY ROM to NEW ROM or vice versa?

Thanx a lot..it really helped..

Sent from my XT910 using Xparent ICS Blue Tapatalk 2
[Android General] dc959:
for an easy explanation lets say you wanted to port aokp and you had cm9 for your device so take the app, framework, media and fonts folders from aokp and paste them into the cm9 rom then place that on your phone flash it and see if it boots to atleast the bootanimation and if it doesnt get to the boot animation then copy the libandroid_runtime.so from aokp file which is located in the lib folder and paste that file (libandroid_runtime.so) and only that file into your cm9 one replacing the old one and then you will atleast get to the bootanimation. If it stays at the bootanimation for longer then 10 mins then plug your phone into your computer turn the phone off run the command "ddms" (DON'T PUT THE SPEECH MARKS IN!) in terminal or cmd depending on your os, then select the drop down menu above the box at the bottom which says verbose and change it to error then turn your phone on let it boot and as soon as your phone comes up in the top left of the ddms window click it, then the box at the bottom of the window will show a bunch of text in red writing then as soon as you see and error that looks like this, Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), and it will be in black writing you can pull the cable out of your phone or computer and upload a copy of all that text to paste bin and a link from there to here and then we can start working on fixing wats in the framework.jar file
[Android General] circleofomega:
THanx a lotttt!!!!

So, what I was saying was right... I need to copy the files from the AOKP (i.e the new ROM) to my current ROM. But again, my current ROM doesnt have META-INF and the boot.img file...I need to figure this part out..

thanx a lot!! If I could, I would have pressed the 'thanks' button twice...
[Android General] dc959:
they have to be there otherwise the rom would never install as meta-inf has the update-script and the boot.img has the kernal so try viewing it with another zip viewer program e.g 7zip and if that doesnt work try re-downloading it
[Android General] debsattam:
We dont need to sign the rom ?
[Android General] lakshay03:
Error

Did everything as said in the op but installation got aborted saying something related to STATUS 7.

HELP ANYONE ? :confused:
[Android General] medicjunKie:
If I'm not mistaken Status 7 has to do with the updater-script
[Android General] bmxmike:
Ok so if I had a GSM device and a CDMA can I port to the CDMA from the GSM since they're the same device and are identical for the most part, or do I need to go from CDMA to CDMA, wanted to know if it was as simple changing radio's and things around or if it would take more work. Sorry if this is a noob question just wanted to ask some experts.
[Android General] luuranko3:
help

ok i followed all of yours steps and when i flashed the rom i maked it gets to boot logo and then restarts

please help me out
[Android General] jmz:
It would be build.prop edit, radio files and lib/hw files. Of course kernel too
[Android General] jmz:
Yup. Typically syntax error
[Android General] jmz:
Logcat would be helpful
[Android General] Aquethys:
Don't I need a CM7 Kernel for CM7 to boot? After following all directions here my ROM won't boot. Stuck at Samsung boot logo. Device: Samsung Captivate Glide, Tegra 2 processor

Adb won't read logcat, says waiting for device. Help?
[Android General] akhilesh910:
so , it wont work for porting CM9 ROMS ? :confused:
[Android General] Peteragent5:
Ya you need CM7 kernel. Because this guide is called: How to port Stock, GB, CM7, CM9

Based

ROMS
[Android General] circleofomega:
Wondering where can I get the CM9 for my RaZr to port...anyone can oblige?

Sent from my XT910 using Xparent ICS Blue Tapatalk 2
[Android General] Aquethys:
How do I get a cm7 kernel? When I took the boot img from ported it would go past splash screen but gave me a red bar on the right side of the screen.
[Android General] nom051205:
I hv already succeed porting ics rom to Dell Streak 5 device, the first port use Evervolv-Perdo-2.2.0a4 and running well, when I trry porting Evervolv-Perdo-2.2.0a6 (update from previous rom) the device can boot up but the screen freeze in first show up screen, all button work normall only the screen not respon. Could anybody tell me how to fix that. Thank you for your attention :)

logcat attached
[Android General] lakshay03:
I got that. I know it is related to the updater-script. But what should I do in order to make it work ? Cuz I did everything as said in the op :confused:
[Android General] hell_lock:
Remove any command which installs a kernel
[Android General] luuranko3:
sorry

here is the logcat

C:\Android SDK\platform-tools>adb logcat

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

- waiting for device -

- waiting for device -

- waiting for device -

- waiting for device -

- waiting for device -

- waiting for device -

- waiting for device -

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

I/checkabortedflash( 112): [125] Latest flash seems OK.

I/clrdex ( 129): Checking /data/dalvik-cache/clear-done-ics ...

I/DEBUG ( 148): debuggerd: Jun 19 2012 14:06:35

V/bq275xx_fwloader( 171): TI BQ275xx FW Loader.

I/AKMD2 ( 161): AK8975/B for Android v 2.0.0.---- (Library: v1.2.3.114) start

ed.

I/hostapd ( 167): Checking /data/misc/wifi/hostapd/hostapd.conf ...

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

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

I/cm ( 189): Welcome to Android 4.0.4 /

I/cm ( 192): _

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

)

I/Netd ( 147): Netd 1.0 starting

I/cm ( 199): __ __ _ ___ _ _ __ ___ __ _ _ _ _ __ __))

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

D/DirectVolume( 146): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 1,

PARTN 1

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

)

I/cm ( 204): ((_ \(/'((_( ((\( ((_)((_( (('((\( ((`1( ((_)((_(

I/cm ( 211): )) _))

I/cm ( 212):

I/usb ( 213): usb product id: 6

I/usb ( 220): enabled usb functions: mass_storage,adb

I/bq275xx_fwloader( 171): File 0x0507 0x0112 anzu: Device (0x0507) 0x0507 0x011

2 HALL

I/bq275xx_fwloader( 171): Need to update DFFS

E/bq275xx_fwloader( 171): Failed open firmware file '/system/etc/firmware/bq275

20_fw-0507_filever-0112_proj-anzu_golden.dffs'

I/busybox ( 168): FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:432

I/busybox ( 168): FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:432

I/busybox ( 168): FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:432

I/busybox ( 168): FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:432

I/busybox ( 168): FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:432

I/busybox ( 168): FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:432

I/ ( 152): ServiceManager: 0x18910

I/busybox ( 168): FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:432
[Android General] medicjunKie:
Is that file in there?
[Android General] luuranko3:
yes it is

---------- Post added at 02:16 PM ---------- Previous post was at 02:00 PM ----------

OK I FOUND THE THING WHAT CAUSING THE PHONE STUCK AT BOOT LOGO

IT IS CAUSED BY LIBANDROIND.RUNTIME.SO every time i transfer it from the rom i want to port to base it gets stuck at boot logo any solutions
[Android General] snakkarike:
i ported galaxy ace rom for my gt540 installation works but gets stook in the boot image what did i do wrong
[Android General] jayallen1980:
I ported a miui rom for my device only thing i Have wrong. Is i have no 3g icon with no data connection how can I fix this? thanks.

And here is a logcat:View attachment logcat.txt
[Android General] medicjunKie:
Logcat
[Android General] circleofomega:
Tried this method yesterday..didn't work..my Port ROM didn't like my Base ROM it seems... :| need a stock AOSP ROM of the ICS - GSM version...can anyone oblige??

Sent from my Moto RAZR.
[Android General] arhant:
do i need to resize framework_res.apk and systemui.apk if m porting a rom from galaxy ace (mdpi) to galaxy fit(ldpi)...

and what about kernel...kernel should be same r do i need to do something with it.!!

plz help..!
[Android General] Ibanez33:
Trying to have a go at porting paranoid (using the jb version for gnex) to the nexus 7. Got as far as the step with the update script, but the one from my base ROM and this look nothing alike. Any advise greatly appreciated. :(
[Android General] medicjunKie:
You should probably post your questions at the PARANOID thread.
[Android General] Ibanez33:
But my question is regarding porting the rom not the rom itself?

I don't imagine the rom thread will yield much help as my device isn't the intended one.
[Android General] Nirmanyu:
help!

hey,great tutorial,just one problem,could you please explain the updater scripts part and the kernel part a little better

and also,in the build.prop file,do you only need to change the product description and fingerprint

please try to reply as fast as you can,

Thanks.
[Android General] dc959:
dont bother with tha yet just see if the rom installs and boots just by replacing the framework, media, font and app folders and if you get stuck at the splash screen replace the libandroid_runtime.so file

---------- Post added at 05:23 PM ---------- Previous post was at 05:21 PM ----------

wont work without a tone of problems best to port a rom that is ldpi

---------- Post added at 05:25 PM ---------- Previous post was at 05:23 PM ----------

to port anything that is aosp you need an asop rom as base such as cm9 to port aokp or vise versa so if you dont already have one you cant port and aosp rom and miui v4 that is cm9 based and not touchwiz based will work but requires a little more and if you dont already have cm9 for your device then your miui v4 rom will most likely be touchwiz based unless stated in the roms description
[Android General] Nirmanyu:
I tried doing what you said but my phone is stuck on the splash image (even after changing the libandroid file)

please help me,what to do?......
[Android General] circleofomega:
So basically the actual Stock of RaZr is useless. Hmm...so I need to be between CM9 and AOKP...but there is neither for my phone yet..?now what to do?

Sent from my Moto RAZR.
[Android General] Oogway13:
Make sure your 'assert' matches your base. This usually check a few options on the build.prop file. Make sure everything is good based on your model.

I tried to port and I get a bootloop. Anyone that could check my DDMS log:

http://tinypaste.com/e4c9ed40
[Android General] dc959:
did u try booting the rom without replacing the libandroid_runtime.so file?

---------- Post added at 05:08 PM ---------- Previous post was at 05:05 PM ----------

wat r ur base and your ported roms?
[Android General] Nirmanyu:
yeah

---------- Post added at 12:17 PM ---------- Previous post was at 12:11 PM ----------

yes,i did what you said
[Android General] dc959:
try doing a logcat
[Android General] Oogway13:
This is my Ported ROM 'RemICS UX 1.3.1' from Galaxy S:

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

And I am using CM9 RC2 for Nexus S as base.
[Android General] Nirmanyu:
please,excuse me for asking this,what exactly do you mean by "logcat"?
[Android General] Oogway13:
Open a command prompt and type 'adb logcat -v long'.

Or you can use ddms, open command prompt and type ddms.

Then connect your device via USB and make sure debugging is on. If you are using DDMS, select your device on the top left and you can see all messages being logged. You can filter by 'errors' by selecting it where it says 'verbose', it's a dropdown box.