yashsingh1/xdaforums huggingface dataset:
[Android] Borosin:
Okay, these are my first steps in trying to compile a rom on Ubuntu 10.04.

I decided to use my "old" SGS2 with still GB on it (supposedly it's easier to use for starters), and compile something usable from samsung's sources.

So i synched a repo for android-2.3.4_r1 (that's what samsung's sources are supposed to be based on)

Then i merged samsung's sources to the tree (as stated in their readme)

and finally i used this git:

github.com/cgjones/android_device_samsung_galaxys2

And successfully pulled the proprietary files from my device.

And after some trial&error building finally went well, no errors !....except i ended up with an unusable rom. :o

I know that this tutorial is made for JB and states that it wont't produce anything flashable, but still....i wonder why, for example, my compiled framework.jar is a whole 1MB smaller that the one that comes with the stock rom :D

Is it possible to build something close-to-stock (but usable) with AOSP and samsung's sources at all?

Or should i let it go and switch to building CM anyway? ;)
[Android] Jwtiyar:
thank you guys, i did clone from here:

https://github.com/Evervolv/android_device_htc_pyramid

---------- Post added at 01:21 AM ---------- Previous post was at 01:08 AM ----------

i cant build because of this error , first post explained the solution but i didnt understand and don know which file i have to edit?

http://paste.ubuntu.com/1266570/
[Android] lithid-cm:
We can't do anything with those files. Told you already what was wrong. You need to pull the correct files from a rom with them.
[Android] Jwtiyar:
ok thank you , just tell me what to do? if get these file? wha to do with them? grabbing them to where?

---------- Post added at 02:18 AM ---------- Previous post was at 02:15 AM ----------

forgot to tell you in this error its not dependent on these error that previously i mentioned this is s next step after this ,its popular error its about full_eng and specifying device . thank you
[Android] DragunKorr:
anyone give me help as to why my git is asking for my username during repo all of a sudden!

dragunkorr@dragunkorr-RV410-RV510-S3510-E3510:~$ cd android/dragun
dragunkorr@dragunkorr-RV410-RV510-S3510-E3510:~/android/dragun$ repo sync
Fetching projects: 99% (315/318) Username for 'https://github.com':

Thanks guys!:laugh:
[Android] lithid-cm:
How many times does it ask? Once?
[Android] cpwshf:
I'm in basically the same situation, I can get a stock AOSP build going for my Galaxy S3, however no display and no sound but I can get a logcat while it's running. Just wondering were you able to get a logcat while your phone was booting?
[Android] cpwshf:
Today I was working on this and when I tried to do a make bootimage I got this error:

make -C kernel/samsung/d2 O=out/target/product/d2vzw/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/charleybot/android/AOSPSGS3/prebuilts/misc/linux-x86/ccache/ccache /home/charleybot/android/AOSPSGS3/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" cyanogen_d2vzw_defconfig
Putting child 0x0260c480 (out/target/product/d2vzw/obj/KERNEL_OBJ/.config) PID 21173 on the chain.
Live child 0x0260c480 (out/target/product/d2vzw/obj/KERNEL_OBJ/.config) PID 21173
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
Reading makefiles...
Reading makefile `Makefile'...
/bin/sh: 1: cd: can't cd to out/target/product/d2vzw/obj/KERNEL_OBJ
make[1]: Entering directory `/home/charleybot/android/AOSPSGS3/kernel/samsung/d2'
Makefile:121: *** output directory "out/target/product/d2vzw/obj/KERNEL_OBJ" does not exist. Stop.
make[1]: Leaving directory `/home/charleybot/android/AOSPSGS3/kernel/samsung/d2'
Reaping losing child 0x0260c480 PID 21173
make: *** [out/target/product/d2vzw/obj/KERNEL_OBJ/.config] Error 2
Removing child 0x0260c480 PID 21173 from chain.

I checked to make sure the directory's are there, but still get this message, any ideas?
[Android] Borosin:
I think it would work here, too...but i didn't really bother trying since i've realized that Samsung's sources are not complete, in fact things like Touchwiz are very much closed source (and Touchwiz is much more than a launcher, that would explain my small framework.jar)...

Now it rather seems surprising you phone is booting at all :)

So, i've come to realize that it's basically impossible to compile anything "near-stock" from Samsung's sources + AOSP alone...anyway, if anyone has more information, or actually somehow found a way to do it: Please give some hits...or no, wait: Write a tutorial ;)
[Android] cpwshf:
From what I have seen so far, there are custom roms that have the touchwiz interface and ones that do not have the touchwiz interface, and it looks like the kernel that's compiled can have TW or not, I am just trying to get a stock AOSP build working on the SGS3, it sounds like you are possibly looking for a way to get the source from Samsung to build what comes with the phone when it's first taken out of the box? If so I don't think you would be able to do that, but i'm probably wrong...

Samsung really does some screwed up things with their phones, and I know there are developers out there that are getting sick of the lack of documentation/complete source from Samsung, their stock sources currently are lousy..
[Android] dastin1015:
New tag for Android 4.1.2
[Android] sossio18:
Thnk u man

***sent from my nexus s(uper)***
[Android] ROCKSTAR XS:
Does anyone know the command to repo cm 4.1.1?
[Android] triptosyll:
repo init -u git://github.com/CyanogenMod/android.git -b jellybean

After u repo init the folder u want it synced to, the do repo sync.

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android] bharat_goku:
I remember ur guides right from gingerbread,uve come a long way from the hero cdma forums,..
[Android] mg2195:
They've upgraded to 4.1.2...there's no more syncing 4.1.1 when it comes to cyanogenmod...
[Android] Limitz Cash:
I don't know why I get this Error-

build/core/product_config.mk:193: *** _nic.PRODUCTS.[[device/captivatemtd/full_captivatemtd.mk]]: "device/samsung/captivatemtd/device.mk" does not exist. Stop.

** Don't have a product spec for: 'full'

** Do you have the right repo manifest?

thetechgenius@ubuntu:~/WORKING_DIRECTORY$

I've been researching my problem for HOURS. lol. I usually find A solution within a few hours, but it't still a no go. Anyone getting an error like this one? I have seen someone got an error similar like mine, but it's still not the same.
[Android] Xistance:
After the upgrade to 4.1.2 I keep getting this error. This is for CM10.

/home/xistance/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: error: /home/xistance/android/system/out/target/product/ariesve/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/SurfaceFlinger.o: multiple definition of 'android::Singleton<qdutils::QCCompositionType>::sInstance'
/home/xistance/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/xistance/android/system/out/target/product/ariesve/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/HWComposer.o: previous definition here
/home/xistance/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: error: /home/xistance/android/system/out/target/product/ariesve/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/SurfaceFlinger.o: multiple definition of 'android::Singleton<qdutils::QCCompositionType>::sLock'
/home/xistance/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/xistance/android/system/out/target/product/ariesve/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/HWComposer.o: previous definition here
collect2: ld returned 1 exit status
make: *** [/home/xistance/android/system/out/target/product/ariesve/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/LINKED/libsurfaceflinger.so] Error 1
make: *** Waiting for unfinished jobs....

I can't seem to find how to fix this. Anyone here know how to go around this?

Edit: Fixed it. CM pushed a commit to fix it.
[Android] ROCKSTAR XS:
If someone still has 4.1.1 still on there pc please pm me or DragunKorr, 4.1.2 breaks PA settings on pyramid and we need 4.1.1

Thank you in advance!
[Android] Hikari:
Hello! I've done repo init with this command

$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.2_r1

it's been syncing over night, ut still not done. Isnt this weird? well it was downloading with 150-200kb/s but anyways its been too much time..

I only wanted to download 4.1.2 AOSP, but Im slightly starting to think that its downloading all the android versions for other devices too?? Im really noob at this. I mean I just started trying. Im really confused anyone can point me the right direction? Ill be so thankful. and is there a command forcing the init for 4.1.2_r1 and nothing else? Thanks!
[Android] dastin1015:
Since the branch tag is there it only downloads for that tag. Still has to download all the source files because Android is a compilation of many many things together.

私のEVO 3Dから送信される。
[Android] Hikari:
Thank you very much! Now at least I know the reason!

---------- Post added at 11:22 AM ---------- Previous post was at 11:08 AM ----------

And another thing; Let's say Im repo syncing and I have to reboot my pc. I close the terminal and reboot after the reboot I start syncing again.. Would it resume? or start over? Thanks!
[Android] lithid-cm:
Why not just fix it?
[Android] ROCKSTAR XS:
We've tried for 4 days now and nothing seems to be working
[Android] Hikari:
Anyone can help me with this please?

I used

make -j1 otapackage

Ive attached a screenshot of my out folder and some part of the terminal...

Thank you very much in advance!

--(Im really noob at this.. first time build)--
[Android] lithid-cm:
Did you install all the needed packages to build? Looks like you might be missing some maybe?
[Android] Hikari:
What do you exatly mean sir? jdk, python..? yes I did. Now I uninstalled OpenJDK, Im installing Sun jdk now. Will try again.

and for initializing repo I used

repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.2_r1

====================================================================================================================

EDIT: I reinstalled java using this this seem to be working now. have been building for about 25 mins. without issues.. Thanks or your help!
[Android] LostInNorth805:
What you need to do is to edit your blob to match the PRODUCT_NAME to the file name. For example with mine I have full_shooter.mk therefore in this file I need to have PRODUCT_NAME to match it. Whatever error it is looking for you just need to change the PRODUCT_NAME line to match what the error shows.

where can i find this? during build this popped up

build/core/product_config.mk:196: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_ace.mk]]: "device/htc/ace/ace.mk" does not exist. Stop.
Device p999 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_lge_p999
Duplicate device 'CyanogenMod/android_device_lge_p999' found in local_manifest.xml.
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_ace.mk]]: "device/htc/ace/ace.mk" does not exist. Stop.

** Don't have a product spec for: 'lge_p999'
** Do you have the right repo manifest?
[Android] TomCat47:
target SharedLib: libwebcore (/home/thomas/android/cm10-source/out/target/product/d2vzw/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so)

collect2: ld terminated with signal 11 [Segmentation fault], core dumped

/home/thomas/android/cm10-source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: error: /home/thomas/android/cm10-source/out/target/product/d2vzw/obj/STATIC_LIBRARIES/libwebcore_intermediates/libwebcore.a(V8SVGSymbolElement.o): section name section has wrong type: 260173436

make: *** [/home/thomas/android/cm10-source/out/target/product/d2vzw/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Error 1

I have done a TON of googling and havent been able to solve this problem. Can anyone help me?
[Android] CallMeVentus:
You don't have enough RAM/swap , or processing power .

Sent from Ursa's claws.
[Android] namkeng:
Where is lunch ??

Hi All,

I've managed to sync the AOSP 4.1.2_r1 tag (possibly), synced device files, extracted specific files. I was about to run lunch but am unable to do so. Doesn't seem to exist. I possibly have a bad sync. Can someone let me know where lunch should live?

Thanks
[Android] triptosyll:
U need to do . build/envsetup.sh first.

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android] TomCat47:
Just a little bit of my specs.

Im running Ubuntu 12.04 LTS 64 bit

I have a dual core prosser clocked at 2.13 Ghz

I also have 3 Gigs of ram

Is their any way i can add swap? I ran the command make -j4 otapackage so would running make -j2/-j1 otapackage possibly help?

---------- Post added at 03:40 PM ---------- Previous post was at 03:25 PM ----------

So i ran make -j1 otapackage and got past the first problem but now im faced with this

target Dex: framework2

UNEXPECTED TOP-LEVEL ERROR:

java.io.FileNotFoundException: /home/thomas/android/cm10-source/out/target/common/obj/JAVA_LIBRARIES/framework2_intermediates/noproguard.classes-with-local.dex (Permission denied)

at java.io.FileOutputStream.open(Native Method)

at java.io.FileOutputStream.<init>(FileOutputStream.java:194)

at java.io.FileOutputStream.<init>(FileOutputStream.java:84)

at com.android.dx.command.dexer.Main.openOutput(Main.java:708)

at com.android.dx.command.dexer.Main.run(Main.java:239)

at com.android.dx.command.dexer.Main.main(Main.java:174)

at com.android.dx.command.Main.main(Main.java:91)

make: *** [/home/thomas/android/cm10-source/out/target/common/obj/JAVA_LIBRARIES/framework2_intermediates/noproguard.classes-with-local.dex] Error 3

fixed using this command

java -Xms16M -Xmx1536M -jar /home/thomas/android/cm10-source/out/host/linux-x86/framework/dx.jar --dex --output=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex --core-library out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes.jar

Now i have a new error

Docs droiddoc: /home/thomas/android/cm10-source/out/target/common/docs/api-stubs

/bin/bash: line 2: javadoc: command not found

make: *** [/home/thomas/android/cm10-source/out/target/common/docs/api-stubs-timestamp] Error 45
[Android] cybojenix:
genlock, camera, wth, everything is broken

back again. This is an issue we've had since the beginning of ics

ics we can get away with not having genlock

jb, you must have it, otherwise you get these errors

E/libEGL ( 119): eglGetDisplay:121 error 300c (EGL_BAD_PARAMETER)
E/libEGL ( 119): eglInitialize:137 error 3008 (EGL_BAD_DISPLAY)
E/libEGL ( 119): validate_display:209 error 3008 (EGL_BAD_DISPLAY)
E/libEGL ( 119): validate_display:209 error 3008 (EGL_BAD_DISPLAY)
F/libc ( 119): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 194 (SurfaceFlinger)

include genlock, new errors

http://pastebin.com/HX5F1DH1

I/Adreno ( 1356): ioctl code 0xc0140910 (IOCTL_KGSL_RINGBUFFER_ISSUEIBCMDS) failed: errno 22 Invalid argument
E/Adreno200-ES20( 1356): <qgl2DrvAPI_glFinish:31>: GL_OUT_OF_MEMORY
E/Adreno200-ES11( 1356): <qglDrvAPI_glTexImage2D:1913>: GL_OUT_OF_MEMORY
E/Adreno200-ES11( 1356): <qglDrvAPI_glTexImage2D:1913>: GL_OUT_OF_MEMORY

E/libgenlock( 1563): genlock_wait: handle is invalid
E/Adreno200-EGLSUB( 1563): GetBackBuffer() genlock_wait failed
E/Adreno200-ES20( 1563): <gl2_surface_swap:41>: GL_OUT_OF_MEMORY
E/Adreno200-EGL( 1563): <qeglDrvAPI_eglSwapBuffers:3345>: EGL_BAD_ALLOC
E/SurfaceFlinger( 1356): GL error 0x0505
D/libgenlock( 1356): Invalid gralloc handle (at 0x10328): ver(12/12) ints(6/12) fds(1/2) magic(---/gmsm)
E/libgenlock( 1356): genlock_wait: handle is invalid
E/Adreno200-EGLSUB( 1356): GetBackBuffer() genlock_wait failed
E/Adreno200-ES20( 1356): <gl2_surface_swap:41>: GL_OUT_OF_MEMORY
E/Adreno200-EGL( 1356): <qeglDrvAPI_eglSwapBuffers:3345>: EGL_BAD_ALLOC
E/SurfaceFlinger( 1356): eglSwapBuffers: EGL error 0x3003 (EGL_BAD_ALLOC)

Can anyone help? you will make our phone's community very happy if you help fix it :)
[Android] mg2195:
ok...havent asked a question here in awhile...but after recently doing a repo sync im getting this error when compiling...

target thumb C++: libhwcexternal <= hardware/qcom/display/libhwcomposer/hwc_external.cpp
hardware/qcom/display/libhwcomposer/hwc_external.cpp: In member function 'bool qhwc::ExternalDisplay::commit()':
hardware/qcom/display/libhwcomposer/hwc_external.cpp:541:26: error: 'MSMFB_OVERLAY_COMMIT' was not declared in this scope
make: *** [/home/mikey/vividcm10/out/target/product/holiday/obj/SHARED_LIBRARIES/libhwcexternal_intermediates/hwc_external.o] Error 1
make: *** Waiting for unfinished jobs....

now im looking at the commits by cyanogen and trying to figure out which one broke it for the vivid and seeing if i can reverse the commit...but thats just a workaround, if someone can provide me with an actuall fix it would be much appreciated...it says something about not being declared...how do i declare it in a scope?

Thanks for any help :)

---------- Post added at 05:30 PM ---------- Previous post was at 05:06 PM ----------

Tapatalk is being dumb so I can't edit...but someone pointed me to this:
[Android] CallMeVentus:
Install javadoc through apt-get

Sent from Ursa's claws.
[Android] TomCat47:
I tried that, didnt work.

So i instead did sudo apt-get install openjdk-java6-doc , which worked but now i think i need to create a PATH
[Android] CallMeVentus:
You're using OpenJDK ? No wonder.....

Sent from Ursa's claws.
[Android] TomCat47:
No im not but thats the only packge i could find that contained javadoc.
[Android] dastin1015:
I use OpenJDK.

私のEVO 3Dから送信される。
[Android] CallMeVentus:
Huh ? I thought it wouldn't work....I guess I am very out-of-date

Sent from Ursa's claws.
[Android] manuelsua312:
i need some help here
[Android] cpwshf:
You need a pre-compiled kernel or you have to figure out how to enable in-line kernel compiling.

There are some posts in this thread, but I don't think that anyone has been able to get this working yet, i've been trying to get AOSP to build for the Verizon SGS3 and have been stuck for a while..
[Android] manuelsua312:
i have the kernel folder with the boot.img and im still getting the error
[Android] cj360:
I got an error I've found solutions to but its just not working for me.

I'm build paranoid android and after sync the repo for paranoid and my device files I get stopped @

build/core/java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION '4' Choices are: current . Stop.

I've tried

rm -rf prebuilt; repo sync -l prebuilt

but that's not the right directory to the prebuilt I'm missing?

I'm not sure if my previous comment is 100% correct. java version is openjdk-6-jdk and my android sdk was just updated.
[Android] triptosyll:
Your in an AOSP thread. I suggest finding a paranoid android build thread and/or irc channel for paranoid android.

Its hard to tell u answers when we build aosp. The whole working tree is different. Different makefiles, different build files, different directories. Maybe another on here can help, but I can not good sir. :)

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android] manuelsua312:
where did you find the kernel and boot.img for the d2tmo becase every time i go to device/samsung/d2tmo/ there is no kernel folder
[Android] triptosyll:
The kernel isn't in the device directory. Its in the WORKING_DIRECTORY/kernel

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android] manuelsua312:
i don't have no kernel folder in the working_directory
[Android] triptosyll:
Then there's only 2 possible reasons for that:

A: u have the kernel source, but u put it in the wrong directory, or,

B: u never downloaded the kernel source

I would say most likely b. Kernel source is big, about 2gigs, so ud know if u downloaded it or not.

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android] sverfaillie:
Going back from 4.1.2 to 4.1.1 ?

That's a issue that I also have. Is here a way to indicate to your local copy that it needs to represent 4.1.1 instead of 4.1.2 ?

I would guess that github stores different versions, and is able to 'roll back' locally ?

Or are you always forced to use the latest version ?
[Android] manuelsua312:
but in the tutorial he didn't say that i had to download the kernel source code and if i have to can i get the download link please
[Android] cpwshf:
The thing you have to keep in mind is that stock AOSP does not work on the Samsung Galaxy S3 phones out of the box, you have to make modifications to it such as CM10 has done. There have been a few people that have tried including myself, even if you have the kernel source it's going to be a challenge to get it to work. The only kernel source code I found is on Cyanogen's github under android_kernel_samsung_d2 .

Again, please go through this thread, there's useful information if you search for it.
[Android] manuelsua312:
i 've been searching everywhere and thanks for the help ima see what i could do about it
[Android] mg2195:
Depends on the repo...sometimes they will make a new branch for different versions...sometimes they won't...

Cyanogenmod just has one jelly bean branch for cm10...so whatever they have up for that at the moment is what your stuck with...unless you want to manually go through all the commits since then and undje the changes...would take hours if not days though... and the end result would be a build that's out of date...

In short the only versions github stores is the branches, once they update their branch their is no going back

Github is used by thousands for various reasons...not just android...all they do is keep track of changes and the current files...I don't think they could afford to support the bandwidth required to save old repos aka "roll backs" that would be thousands of terabytes...

The cm repo is updated daily, if they were to keep all the old files for roll backs by the end of the tear they alone would be using well over 4000 gigabytes... now times that by the other thousands of github users...its just illogical to store roll backs

-hope you understand my long explanation on why github doesn't contain roll backs or different versions on its own
[Android] lithid-cm:
This thread is for AOSP builds. We have no way to know how CodeName is ment to be built. follow whatever codename docs that are on their website, and use their forums for issues compiling their rom. We won't be much help in this thread.
[Android] nukedukem:
Can you recommend a forum for help? My device is not an officially supported device for codename, CM or any jellybean ROM for that matter. I'm looking for help understanding android/linux error codes in general, such as the one I recieved.
[Android] lithid-cm:
http://codenameandroid.com/forum/index.php?/forum/11-unofficial-ports/
[Android] cj360:
Has anyone building aosp goten this error:

build/core/java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION '4' Choices are: current . Stop.

I'm wondering if someone has fixed this building aosp and see if their fix might help me with my problem.
[Android] m4cq:
great tutorial! thx :)