yashsingh1/xdaforums huggingface dataset:
[Android Software Development] xboxfanj:
I understand. English also isn't your first language which makes it even harder. No worries though, this isn't basic knowledge and even people who know English well wouldn't be familiar. You are fairly new to development and we've all been there. I started only two years ago. Grep is a program that searches files for strings. Most files are made up partially of words and the problem with your ROM is that one file looks for the zn7gralloc... string but can't find it in the other files, so you need to use grep to find where it is in each one so you can find out what to do. It is a basic Linux program, included on most distributions, but there are several versions available on Google and you can pick which one you want. As I am running Linux, I don't have one to recommend.
[Android Software Development] Soldier_Rocks_08:
Can I use this guide to port the base s4 rom to my s3 it's the sprint device thank you
[Android Software Development] xboxfanj:
Should be able to.
[Android Software Development] aazzam16661:
I change hw files from k2 and some problem gone, but some surface

I/Adreno200-EGL( 1448): Reconstruct Branch: AU_LINUX_ANDROID_JB_REL_RB3.04.01.01.13.017 + d874997 + NOTHING

E/HAL ( 1448): load: module=/system/lib/hw/hwcomposer.qsd8k.so

E/HAL ( 1448): Cannot load library: soinfo_link_image(linker.cpp:1673): could not load library "liboverlay.so" needed by "hwcomposer.qsd8k.so"; caused by soinfo_relocate(linker.cpp:1013): cannot locate symbol "_ZN7qdutils10eglHandlesC1Ev" referenced by "liboverlay.so"...

E/SurfaceFlinger( 1448): hwcomposer module not found

W/SurfaceFlinger( 1448): getting VSYNC period from fb HAL: 16666666

W/Adreno200-EGL( 1448): <qeglDrvAPI_eglChooseConfig:780>: EGL_BAD_ATTRIBUTE

W/SurfaceFlinger( 1448): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID

W/SurfaceFlinger( 1448): no suitable EGLConfig found, trying without EGL_RECORDABLE_ANDROID

W/Adreno200-EGL( 1448): <qeglDrvAPI_eglCreateContext:2324>: EGL_BAD_ALLOC

E/SurfaceFlinger( 1448): EGLContext creation failed

F/SurfaceFlinger( 1448): couldn't create EGLContext

F/libc ( 1448): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 1648 (SurfaceFlinger)
[Android Software Development] tOrNadO™:
Hi.. i have read your complete post.. since i was interested in porting a ROM for my Sony Xperia S from Xperia Z.. I have a doubt.. U have said we need a CM ROM as base ROM.. But u have said this tutorial is not for CM based ROMs, only for manufacturer ROMs.. I didn't understand that part.. :confused:
[Android Software Development] xboxfanj:
That is correct, so your base ROM would be cm on your xperia s and port would be the xperia z meaning, it uses only the device specific files from your device and adds them to the xperia z ROM.
[Android Software Development] spidernone:
Can i use a stock prerooted rom?
[Android Software Development] CNexus:
Is that the one that is made for your device? No (unless you have a Nexus). It has to be an AOSP rom. The purer the better.

Sent from my S3 on Sense 5 (you jelly?)
[Android Software Development] spidernone:
Can i use unofficial cm???
[Android Software Development] CNexus:
Yes. It just has to be AOSP

Sent from my S3 on Sense 5 (you jelly?)
[Android Software Development] Soldier_Rocks_08:
I'm confused you say don't use this thread to port cm/aosp but yet you say use a cm/aosp base Rom
[Android Software Development] CNexus:
You port the manufacturer rom using pieces from your AOSP to fill in the gaps for your device.

Sent from my S3 on Sense 5 (you jelly?)
[Android Software Development] clueless_stranger:
So u can't port a xperia z stock ROM with a jellybam base on a Samsung device with this guide?????
[Android Software Development] CNexus:
Look, no offense but if you can't answer that, you probably shouldn't be doing this.

Sent from my S3 on Sense 5 (you jelly?)
[Android Software Development] CNexus:
Ok, just think about it. AOSP has less dependencies. So doesn't it make sense that you use YOUR AOSP parts to port a rom not made for your device?

Sent from my S3 on Sense 5 (you jelly?)
[Android Software Development] a2441918:
Can I port sense directly to Galaxy S4 using Touchwiz as base as there is no CM for Galaxy S4 9500 right now??
[Android Software Development] Imperticus:
No, the base should be AOSP
[Android Software Development] clueless_stranger:
Huh?
[Android Software Development] aazzam16661:
Hello again, my friend also port sense 5 to HD2 and this is here a logcat : http://pastebin.com/uDs0V6s9

Hope you guys could help.
[Android Software Development] blearreaz0n:
Hi, I have the similar problem with another device - Samsung GT-S5301. I tried to use stock libGLES_rhea.so and hwcomposer.so in CM10.1 but it does not work and I got the error messages looks really similar with described here. Here is the logcat output:

I would be really appreciate if you can help me a little with that - now I don't even understand where to dig ))

regards,

BR
[Android Software Development] tOrNadO™:
I am trying to port a Samsung Galaxy S3 ROM to my Sony Xperia S.. My only doubt is both these are built with different ways.. Does it work? I mean the port from Samsung to Sony??? If it works, just following this tutorial would get me a bootable ROM with exactly same as the porting ROM..?? Or, To port a ROM, should i select my phone's company ROM itself?
[Android Software Development] xboxfanj:
Grep for that ZNK7 string in system.
[Android Software Development] bstyle bears:
I use windows android kitchen and had bootclasspath but it didn't boot... Any problem with bootclasspath on windows?
[Android Software Development] CNexus:
Adding that does not guarantee that it will boot. That only makes sure that all the necessary framework files are loaded at boot.

Sent from my S3 on Sense 5 (you jelly?)
[Android Software Development] xboxfanj:
Always gotta Logcat so we can see what's happening.
[Android Software Development] blearreaz0n:
With all respect, what do you mean when you say "grep in the system"? Just for the record - I am using this utility for many years so you don't need to explain me what it is in general. Taking into account that grep usually used to filter output basing on given regular expression and the fact that the system is a directory with subdirectories how do you "do the grep" in this particular situation? 'cd ./system && ls | grep anystringyousearch' ? Or what?

Would you please provide an example please?
[Android Software Development] xboxfanj:
Grep -R 'string' pathtofolder
[Android Software Development] mattlowry:
I followed this guide but am having trouble getting it to flash. Im trying to port stock tw 4.2.2 from sgs4 and cm10.1 base for note 2. Both are tmobile varients. When I use the updater script from cm it says there is a problem with set perms and status 7 error. I compared the set perms with the rom and all files are present in the rom. So I tried using the script from my ported rom but changed the mount points but that gave me expecting 5 args got 4. I may try using ui prints to figure out where its erroring at unless someone here has a better suggestion
[Android Software Development] CNexus:
Pull the log after flashing (using TW updater-script) from /tmp/recovery.log. It'll tell you exactly where it's failing.

Sent from my S3 on Sense 5 (you jelly?)
[Android Software Development] mattlowry:
Thanks I forgot I took a log after flashing. It looks to me that maybe the rom is too large. Could I get you to look to verify?

---------- Post added at 02:51 AM ---------- Previous post was at 02:40 AM ----------

http://pastebin.com/w5Z9Yrzc
[Android Software Development] CNexus:
Nope, answer is right there at the end

set_perm: chown of /system/vendor to 0 2000 failed: No such file or directory
set_perm: chmod of /system/vendor to 755 failed: No such file or directory

Sent from my S3 on Sense 5 (you jelly?)
[Android Software Development] mattlowry:
Should I just delete those lines out? I moved the vender folder from cm into rom and this is cm updater script
[Android Software Development] xboxfanj:
If system/vendor isn't there, delete the set_perm. Either way though, it says minzip: Error writing 20480 bytes from zip file from 0xbe81f87c: No space left on device, so you will need to delete stuff anyway.
[Android Software Development] CNexus:
Post a screenshot of the root of your zip file that you are flashing

Sent from my S3 on Sense 5 (you jelly?)
[Android Software Development] mattlowry:
Im not sure if this posted the pics but I have system folder and root not sure which you wanted but I have both

Edit* ok they posted! Dont mind the highlighted folders they did that when I swiped for screenshot
[Android Software Development] CNexus:
Strange. The vendor folder is there..

OH. Yeah, keep that line. You need to either move some more files to data/app or delete stuff. What happened is that it stopped extracting files at some point, but then that folder wasn't there for it to set permissions on it when it got to that line

You can start by deleting all IME*.apk files in system/app that aren't English (or whatever language you understand best)

Sent from my S3 on Sense 5 (you jelly?)
[Android Software Development] mattlowry:
Well I got it trimmed enough to flash. (I had to remove a lot) it went to splash screen and rebooted to recovery. I will try adding some lines to updater script regarding the data apps tomorrow. But any ideas to get it to boot? I will try a logcat tomorrow as well but since its dying at splash I dont know how successful that will be.
[Android Software Development] CNexus:
Modify the default.prop inside the boot.img and add these lines (if they exist but with different values, delete them)

ro.adb.secure=0
ro.secure=0
ro.debuggable=1
persist.service.adb.enable=1

You should get be able to pull a logcat even at the splash after doing that.
[Android Software Development] blearreaz0n:
Thanks

thank you very much, xboxfanj
[Android Software Development] Soldier_Rocks_08:
Since I use a aosp to port a tw will that make the ported rom a aosp based rom and not a tw rom anymore
[Android Software Development] xboxfanj:
No it won't. You're only adding the device specific files. What makes TouchWiz Touchwiz is primarily the apps and framework as well as some inter-connected libraries. None of that will be from AOSP, thus it is not AOSP.
[Android Software Development] XGr7078:
No init.rc found

The rom which I am trying to port doesn't have any init.rc...though its based on cm 4.2.2 for xperia z. What should I do??:D
[Android Software Development] :
Eh are you sure you've extracted the kernel successfully? Sounds strange there should be an init.rc or have you extracted the kernel/boot image :P
[Android Software Development] Slimegod:
In the OP, step 15 its says reboot to Unbuntu. What is Unbunti? I'm on the sprint version of the s3. Also what is dsxida android kitchen when it says to decompile boot.IMG/kernel what exactly do I need to so?

---------- Post added at 06:42 AM ---------- Previous post was at 06:42 AM ----------

Do,....

---------- Post added at 07:12 AM ---------- Previous post was at 06:42 AM ----------

Ok I've found out what android kitchen is, as far as Unbunti I noticed its a server. So what do I have to reboot my phone or computer?

---------- Post added at 07:31 AM ---------- Previous post was at 07:12 AM ----------

Didn't see the link in the OP about what android kitchen was my bad
[Android Software Development] :
Can you edit your post you've quoted and quoted please fix that.

Android kitchen is helpful for unpacking boot image files and add other stuffs. Also for creating flashable zip files and more :cool:
[Android Software Development] Slimegod:
If I knew how I would.
[Android Software Development] :
editing post or boot image if you have android kitchen you need to select a working station and by that it means a Rom.

Then you can start play around with the options.

To edit post there's an edit option, sorry I didn't know Wich one you didn't knew so I posted 2 answers its late here
[Android Software Development] Slimegod:
Ok thanks for the heads up. Just tried porting and I got a failed. Would post a logcat but my computer is acting up. Thanks though appreciate it.
[Android Software Development] :
Did you unpack the boot image and changed bootclasspath. As its need to load the proper files
[Android Software Development] Slimegod:
Is that the boot animation under system? And if so do I need to use android kitchen to unpack it?
[Android Software Development] :
No its the boot.Img which is located in the root of a flashable zip file. That's the boot image

The boot animation is just a zip containing the animation while the phone boots.
[Android Software Development] Slimegod:
I see. Where is that located. Not really knowledgeable in this area. Learning as I go so my bad.
[Android Software Development] :
Grab a flashable zip or if you have a backup of your Rom you can grab it from there but you should do this

Grab the system you want to port and extract the boot image from the zip folder. Boot.Img it's called

Grab cyanogen for your device just remember to choose the same version of android.

And extract that boot image as well

You should have a working Rom I would say you should use cyan as your working folder in android kitchen but you can take the port too if you need to deodex the system as you shouldn't try to port a odex Rom when you're most likely using a deodexed Rom as base,

Hope I answered your question
[Android Software Development] Slimegod:
So I can just right click the zip without opening it up and extracting it to get the boot image? Yeah I've read you have to have the same version. Another quick question I'm on Sprint and want to port a AT&T ROM. Sprint runs on CDMA and AT&T on GSM. Does that really make a big of a difference when porting between the 2?
[Android Software Development] :
I've got no good answer about gsm or cdma but you'll have network problems and radio problems. It can be a bit of a problem there . You can extract the boot.img file only yes but I'm sure you need somehow open the zip file.

I'm off to bed now if you need help you can ask here however I might not be able to help since I'm taking some days or week of from here to fix my life.

Good luck with your port you can read about pointing from gsm to cdma it's possible but there's more work to do if there's no patch or workaround for it.

Again good luck and I hope you get it working.
[Android Software Development] Slimegod:
Thanks man. Forgot the time zone thing.
[Android Software Development] iSaoHatake:
Something is wrong on your guide, UBUNTU and Notepad++ can't exist together. What's now?
[Android Software Development] xboxfanj:
Not true technically (WINE), but just use gedit. It's close enough. You can launch it from command line with gedit <path/to/file> or open it manually or pick it in the file browser.
[Android Software Development] Slimegod:
I ported and it went through recovery successfully. Phone is just stuck on the boot screen. Forgot what to do to fix that.
[Android Software Development] someone755:
Just go back to recovery and restore a backup?

That's what I've been doing with my builds eversince I first saw this tutorial...
[Android Software Development] someone755:
Something just came over my mind.

I'm having serious issues with making the kernel work (sometimes it won't even flash correctly).

And so arises my question; What if I don't touch the kernel? Since the only thing I change is something about telephony (which I don't need; I don't need or want a network for the time being, I'm porting from a CDMA to a GSM device anyways. So it won't work in any case.), is network the only thing that's wrong?

What if I just leave the kernel as it is and flash the one from CM?
[Android Software Development] Slimegod:
After porting phone is stuck on boot animation. What's the reason and how do I fix it.
[Android Software Development] someone755:
We don't know the reason since we're not there with you. We would know if you gave us a logcat.

(I have no idea how to read logcats. :P )

EDIT: Oh, and also; don't you need to sign the zip before you flash it?

Because my zips just wont flash if I unzip and zip the ported ROM. Am sideloading a port that I didn't unzip, ported through zips.

Will also try using the CM9 kernel instead of the modded one, since, well, I can't get the modded one to flash correctly...
[Android Software Development] tommypacker:
I tried porting Sense 3.6 from the Desire HD to the Nexus One, but I'm stuck at the Nexus Screen, and can't even get to the boot animation. I also can't take a logcat, so can anyone help me out? I followed all of the instructions in the thread.
[Android Software Development] someone755:
Sorry to tell you, but no logcat equals no help.

Are you sure you can't get the log from your cache partition?

Ah, the good old days with my Desire when every command worked everywhere...
[Android Software Development] tommypacker:
I swapped Kernels (Original One from Base) and now I got me a logcat, although very short.

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

D/AK8975 ( 83): AK8975 daemon 1.1.1-Ignore_first_accel Start

D/AK8975 ( 83): (Library version : 1.2.1.1125)

E/AK8975 ( 83): m_hDevice = -1

E/AK8975 ( 83): m_aDevice = 7

E/AK8975 ( 83): Device initialization failed.

E/AK8975 ( 83):

E/AK8975 ( 83): m_hDevice = -1

E/AK8975 ( 83): m_aDevice = 7

E/AK8975 ( 83): Device initialization failed.

E/AK8975 ( 83):

E/AK8975 ( 83): m_hDevice = -1

E/AK8975 ( 83): m_aDevice = 7

E/AK8975 ( 83): Device initialization failed.

E/AK8975 ( 83):

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

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

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

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

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

I/Netd ( 73): Netd 1.0 starting

D/DirectVolume( 72): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 2, PARTN 2

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

I/DEBUG ( 74): debuggerd: Sep 10 2012 15:53:06

I/ ( 78): ServiceManager: 0x7fed28

I/Netd ( 121): Netd 1.0 starting

I/Netd ( 142): Netd 1.0 starting

I/Netd ( 163): Netd 1.0 starting

I/Netd ( 184): Netd 1.0 starting
[Android Software Development] someone755:
I can't read logcats and such, but maybe a dmesg would help?

Sometimes these XDA people astound me. Make a tutorial and then abandon it.
[Android Software Development] wigankev:
I tried porting Sense 5 and 4.2.2 from HTC One X+ to HTC One X with this guide and didn't have much luck :(
[Android Software Development] djcarlos7777:
Which problems did you face ?
[Android Software Development] patrik.KT:
I'm trying to port Touchwiz from Galaxy Note 3 8.0 to my Nexus 7. When I try to boot it, it shows the Google logo for ~15 seconds and then it goes to recovery. And the worst part is that i can't even make a logcat :mad: and I changed the default.prop in kernel. I'm using MultiROM, does it matter (the kernel is not shared, because then the bootclasspath is for aosp)? So is there any other config file to enable adb? Adb works in other ROMs.

EDIT:Without MultiROM it's just a bootloop, but still no logcat

EDIT2: Never mind :D Now I got the logcat. The first was: http://pastebin.com/dYbHjKz9 Then I find that there might be a problem with the surfaceflinger, so I replaced /bin/surfaceflinger and /lib/libsurfacefliner.so from BASE and now I got black screen and this logcat: http://pastebin.com/jqTWzeV0
[Android Software Development] GalaxyUser:
There is a problem with EGL (try to replace libegl.so and dependencies with BASE files.

And replace libaudioflinger.so from base to port too
[Android Software Development] patrik.KT:
Thanks, but which are the dependency files? :p
[Android Software Development] GalaxyUser:
I don't know, perhaps these:

libjni_eglfence.so

libEGL.so

libGLES_android.so

libGLES_trace.so

libGLESv1_CM.so

libGLESv2.so
[Android Software Development] patrik.KT:
OK, now I got this: http://pastebin.com/0q6xMxea
[Android Software Development] GalaxyUser:
Try to change libc.so and libgui.so
[Android Software Development] Kingzak34:
Hey there ! First of all I would thank you for your guide, clear and simple.

Next, I'm trying to port a 4.2 ROM from TF300 to TF101 but I got some trouble, if someone wants to help, feel free http://xdaforums.com/showthread.php?t=2386822 :)
[Android Software Development] Arjav23:
If I wish to port avatar rom , which all files are needed for avatar themes to be recognized and apply

At the moment , the themes keep saying that they are not compatible with current avatar rom version
[Android Software Development] Explore The Universe:
Trying to port sense 5 to evo but can't boot.. Tried different kernels but nope.

logcat

https://dl.dropboxusercontent.com/u/49778084/logcat.txt
[Android Software Development] DarkEyed:
Hey there, thanks for your simple and understandable guide!

We can port any stock rom to any device or they both should have the same screen resolution?
[Android Software Development] someone755:
Screen resolution, and preferrably size as close as you can get. Obviously you aren't taking a GNote and port to an old Wildfire. ;)

But yes, mainly you want resolution the same, because if not, you'd have to decompile and resize every single image of every apk and things...

Also, porting from the same manufacturer (or if you can't do that, at least the same CPU manufacturer).
[Android Software Development] vishal_android freak:
Thanks to the guide I was able to port htc one v 4.0.4 stock to my neo v.. :D it booted up till lockscreen.. Only problem is once I unlock it, it soft reboots and then it goes on.. Any idea why is this happening? Did I delete home or something? As I am new to sense, so may be by mistake I deleted something.. Please help.. :o
[Android Software Development] lozohcum:
Where can I get Sense 5 (JB 4.1.2) rom to download? any similar HTC devices to Xperia Arc / J ??
[Android Software Development] someone755:
See on GSMArena.com. I don't think you'll find a 4.1 Sense 5 ROM for a 800x480 screen.

I'd say more 4.2, since some of the new Desire phones have that resolution.
[Android Software Development] tommypacker:
If it's the evo 4g, you're going to need a 3.0 kernel with ion memory.

Sent from my Infuse 4G with Scott's BEANSTALK ROM
[Android Software Development] Explore The Universe:
EVO 3D Gsm.
[Android Software Development] :
I have this cool rom I want to port, carbon rom

It is based on the Android Open Source Project(AOSP). Can I port using cm10.1 as base?
[Android Software Development] :
so if I use any aosp rom for my phone as base it will port?
[Android Software Development] Hellscythe:
hey guys

you know szezso got sense 5 to boot on htc incredible s? :D

i think camera and a few other things don't work
[Android Software Development] Omar1c:
stock firmware

what if im trying to port touchwiz from a stock firmware do i need to deodex the files or what
[Android Software Development] someone755:
That, or find a deodexed ROM zip.

In theory, it IS possible to port an odexed ROM, but it's hard...
[Android Software Development] Omar1c:
Nah there isn't even custom ROM for it I will need to deodex the files
[Android Software Development] :
Port from galaxy nexus to oppo find 5?

im trying to port a cm10.2 rom from galaxy nexus over to oppo find 5, will this guide work, im using cm10.2 as base?
[Android Software Development] Omar1c:
Do the oppo find 5 have similar spec or at least resolution as the galaxy nexus

Sent From The Third Nexus
[Android Software Development] xboxfanj:
No. The find is 1080p, gnex is 720p. Very different CPUs and GPUs as well.
[Android Software Development] Omar1c:
With that being said [MENTION=5421115]Zpik[/MENTION] try to see if you can find a different base of cm10.2

Sent From The Third Nexus
[Android Software Development] tommypacker:
Port from the Nexus 4. I believe they have the same resolution and gpu.

Sent from my Infuse 4G with Scott's BEANSTALK ROM
[Android Software Development] :
exact res

---------- Post added at 01:56 AM ---------- Previous post was at 01:52 AM ----------

i thought it just need to be armv7?