yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] beekay201:
why did you use sudo to create folders? and you couldn't use google to learn on how to change a folder's permissions/ownership in linux?

nvm..

if:

$ANDROID_BUILD_TOP=/root/JB_SOURCE

cd /root/
sudo mv JB_SOURCE /home/your_username/
cd /home/your_username/
chown -R your_username JB_SOURCE
chmod -R your_username JB_SOURCE

that should do it.

You mean from source..

a) yes, by default it has stock recovery - that said, you can remove it, even making it an option.

b) you will need to decide if you want to use a binary or try to build from src; if it's the first, you need to get PRODUCT_COPY_FILES working again. look @ other roms' github, project build/.

enjoy
[Samsung Galaxy Nexus] beekay201:
JZO54K is up on AOSP, tag android-4.1.2_r1

edit: JBQ just gave the green light but

Fetching projects: 100% (294/294), done.
error: revision refs/tags/android-4.1.2_r1 in device/samsung/torospr not found
[Samsung Galaxy Nexus] rasengan82:
After changing default.xml, all we need to do is repo sync? Or are we supposed to do a repo init -b .... again? Thanks for the help!
[Samsung Galaxy Nexus] thegtfusion:
Guys I need your help.. i synced sources succesfully, but when i try to compile, i get some errors: first one: src file missing or something like that (it just goes on after that. )

The second error in the photo.

Any ideas?

Sent from my trasbeaned Galaxy Nexus.
[Samsung Galaxy Nexus] mbroeders:
The first one is no real issue. Don't know why, but I'm getting the same message every time without consequences.

I don't really know what the second problem is. Could it have something to do with your java installation? Did you install oracle's java 6?
[Samsung Galaxy Nexus] beekay201:
just repo sync
[Samsung Galaxy Nexus] thegtfusion:
I have java 6 installed yes.. :/

Sent from my trasbeaned Galaxy Nexus.
[Samsung Galaxy Nexus] beekay201:
please paste output of

echo $JAVA_HOME
echo $PATH

On another subject, everybody heads up, it seems latest branch of the kernel is at origin/android-omap-tuna-3.0-jb-mr0.

Latest commit:

:)
[Samsung Galaxy Nexus] thegtfusion:
Will paste it today.

Sent from my trasbeaned Galaxy Nexus.
[Samsung Galaxy Nexus] ismailnayir:
greats tansk man

greats tansk mangreats tansk mangreats tansk mangreats tansk man
[Samsung Galaxy Nexus] beekay201:
?

10chars

EDIT: One more :)

Additional binaries and factory images for JZO54K

NFC binary now officially available.
[Samsung Galaxy Nexus] anandsamuel:
Hello I have a few questions. Let me just say this first, I'm not a developer and I don't know how to use Linux or Ubuntu... just trying to learn... please take it easy if I ask a stupid question. First question I have is when I tried to run the command to install java6 it gave me an error. I googled how to install java jdk and did that... it ran the installer for java and installed java7 jdk. Is that going to work? Second question I downloaded the binaries for gsm nex and when I extract them it gives me an sh script. When I run the extract command it gives me an error as well. I don't understand how to run it from root of the source tree.. I'm pretty sure that's where I'm making the mistake. Am I missing a step here? And my last question is regarding the top quote... when it says user name, does it mean the user name it asked me for when I downloaded the binaries or the username for when I log into Ubuntu when it first starts? Any help would be greatly appreciated...
[Samsung Galaxy Nexus] thegtfusion:
Sorry, i dont have any time to look at ths issue, school is eating my time.. i even sleep a lot less now :(

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] beekay201:
No, you need java6

Root, or top, of the source tree, is the folder where you cloned aosp's repo.

that's the username you use to log on. and those instructions would be useful if you created folders/used 'repo sync' on a root-enabled terminal.
[Samsung Galaxy Nexus] ffxx68:
A search on google for << git fetch "error: could not apply" >> will give you some hints.
[Samsung Galaxy Nexus] beekay201:
First, I would suggest you lookup the following topics:

http://xdaforums.com/showthread.php?p=19963275#post19963275

Look:

In this particular cherry-pick, you're facing a merge conflict in files:

- frameworks/base/core/java/android/provider/Settings.java

- frameworks/base/packages/SystemUI/res/layout/system_bar_notification_area.xml

- frameworks/base/packages/SystemUI/res/layout/system_bar_notification_panel_title.xml

- frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java

You're forced to solve this merge conflict before commiting (locally, allows you to try out the changes after building - lunch/make -jX otapackage)

Same here, but on a different project. (looks like a lot of conflicts because of translations).

Now, on this next conflict, there's something you need to note:

You'll need help from a text editor (vim, gedit also works ofc, like you asked on the pm) and from git. git will allow you to do many things, keeping track of your progress, changes, commits, cherry-picks, etc. In that post i linked, which was put together for cm7, but also has many tips on using git. if you want to do multiple cherry-picks on ONE project, you'll need to learn 'git branch', 'git checkout', 'git merge', 'git add', 'git rm'. You can't cherry-pick one commit without commiting the previous one. Don't change/commit to the master branch, always make a new branch.

Doubts? Post them here, this is a thread dedicated to aosp building.

Like ffxx68 said, searching for the errors you see on the terminal will often help.
[Samsung Galaxy Nexus] johnco1972:
I'm in the same boat. I have a question for the experienced developers out there. If I want to learn this, what classes should I take to get a good foundation? I assume some basic programming and and java are good places to start, but what else?
[Samsung Galaxy Nexus] mbroeders:
Well, setting up a build environment doesn't really require you to take some classes. You can easily get there by trial and error, and of course: Google!! If you want to learn some programming, then Java is a very good place to start. But for those problems, Bk201doesntexist has explained it very well. Regarding the installation of java 6:

Download java from here. Then run the following commands:

chmod +x jdk-6u34-linux-x64.bin
sudo ./jdk-6u34-linux-x64.bin
sudo mv jdk1.6.0_34 /usr/lib/jvm/

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_34/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_34/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_34/bin/javaws 1

sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws

And regarding the binaries: copy them to the root of the source tree and run "sh extract-xxx.sh" for each binary. Press spacebar a couple of times until you have to enter "I ACCEPT". That's all. Do it all as a regular user, do not use sudo (unless explicitly stated!!)!!

Setting up the build environment should not be that difficult if you use the correct linux version and java 6. Developing is something completely else, as is git ;) Goodluck!
[Samsung Galaxy Nexus] TomBall718:
Road block

Okay so everything is going well. I've built before on an old machine (using this guide) but now when I run "source build/envsetup.sh" then "lunch" my device (toro) isn't showing up. I checked the device folder and it's there but for some reason it's not showing up in my lunch menu... any suggestions? :confused:
[Samsung Galaxy Nexus] mbroeders:
Perhaps you can try to specify it manually, check this...
[Samsung Galaxy Nexus] beekay201:
It will work like that. I dont use the menu as well, i specify what board i want to build for.

Sent from my i9250
[Samsung Galaxy Nexus] TomBall718:
Thanks! I'll try this out later today. I ended up creating a "vendorsetup.sh" file in the device/samsung/toro directory. That gave me a numerical choice on the lunch menu after running source buld/envsetup.sh

Here's the commands I used:

$ nano device/samsung/toro/vendorsetup.sh

add_lunch_combo full_toro-userdebug
[Samsung Galaxy Nexus] lenieto3:
from man make:

-j [jobs], --jobs[=jobs]

Specifies the number of jobs (commands) to run simultaneously. If there is more than one -j option, the last one is effective. If the -j

option is given without an argument, make will not limit the number of jobs that can run simultaneously.

"One unpleasant consequence of running several recipes simultaneously is that output generated by the recipes appears whenever each recipe sends it, so messages from different recipes may be interspersed."

"When the system is heavily loaded, you will probably want to run fewer jobs than when it is lightly loaded. You can use the ‘-l’ option to tell make to limit the number of jobs to run at once, based on the load average. The ‘-l’ or ‘--max-load’ option is followed by a floating-point number. For example:,

-l 2.5

will not let make start more than one job if the load average is above 2.5. The ‘-l’ option with no following number removes the load limit, if one was given with a previous ‘-l’ option".

You could set as many simultaneous jobs as you want for speeding up the process, but it finally depends of your processor and its capabilities, if it isn't capable enough the process could fail.

I'm not sure, but the recommended is set 1 job per core.
[Samsung Galaxy Nexus] beekay201:
This thread is about building for devices supported by AOSP, specifically Galaxy Nexus/tuna board
[Samsung Galaxy Nexus] TomBall718:
Check here: http://xdaforums.com/forumdisplay.php?f=1013
[Samsung Galaxy Nexus] demon2112:
I stil cant pul the jdk,

Pulled it from the site though, terminal says it was installed but when i wanna execute sdk manager in terminal(sdk unpacked) it gives me errors that there is no java installed.

do i need to put the jdk in the sdk root?.

For anyone who reads this and think ?ftw?.....yes im a linux noob and trying to learn so any help is welcome

I really wanna learn learn learn

Many thanks from holland ;)
[Samsung Galaxy Nexus] beekay201:
I know you're using ubuntu 12.04 because i've seen the thread that you created in q&a with the exact same question.

Why dont we start redirecting these issues to ubuntu forums? This thread should be about building aosp. Setting up depends on the distro being used, and if the android user wants to use distro X and doesnt know how to get around it, he should ask on that distro support forum. Chances are, his issue has already been covered a few times.

Still, more details will be needed. What mirror have you downloaded the deb files from? Did you follow this howto? Post output from

echo $PATH

echo $JAVA_HOME

Edit: And why didn't you read 6 posts behind in this thread?

Sent from my i9250
[Samsung Galaxy Nexus] :
HI guys. Builded correctly AOSP ICS for my Galaxy GIO.

The only problem is that it doesn't build an otapackage:

make: *** No rule to make target "otapackage". Stop.

My phone is an ARMv6 device and I can't use fastboot to flash it. Another way? How to fix that error with otapackage? Build a personalized package with DSIXDA kitchen is difficult becase I don't know which symlinks to write.

Also I already tried to make that personalized but it doesn't boot. So, the second question is: do you know which code to modify to force it booting with ARMv6 processor?
[Samsung Galaxy Nexus] beekay201:
watch how cm does it?

that said, this is a thread supporting aosp building for galaxy nexus, not for other devices.
[Samsung Galaxy Nexus] beekay201:
Source for 4.2 already on aosp, tagged 'android-4.2_r1'

DRM binary now available for maguro and toro.

Q a: Please confirm: only GPS binary missing right now?

Q b: Naturally, gps binary is the same for takju/yakju? silly i know

Sent from my tf201
[Samsung Galaxy Nexus] MBQ_:
For those running Ubuntu 12.10...

Use 'sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils' instead of 'apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils' :good:
[Samsung Galaxy Nexus] overflyer:
Since Android 4.2 is still called jellybean is there any way to tell the repo init command specifically that i only want the 4.2 branch?
[Samsung Galaxy Nexus] samersh72:
very nice:good:
[Samsung Galaxy Nexus] djmatt604:
If I've read correctly I think you can do that simply by entering "android-4.2_r1" after the -b in your init command rather than "jellybean"...someone please correct me if I'm off base though
[Samsung Galaxy Nexus] SupWiz17:
I have been trying to set up a build environment again on 12.04 but for some reason no matter what I try I can't install java. It says that it can't find the depositories but the file is mentioned in another path so maybe it got moved. It has been driving me nuts for two days now. Is it something I'm doing wrong or is there something different with java now?
[Samsung Galaxy Nexus] exb0:
You have to download and install it manually. Not through repo apt-get.
[Samsung Galaxy Nexus] mbroeders:
Only 2 pages back! That's where I posted how to install java: http://xdaforums.com/showpost.php?p=33456945&postcount=540
[Samsung Galaxy Nexus] SupWiz17:
Thanks for the awesome post. I was googling this for days and was getting no where. Your post needs to be the first link in google.
[Samsung Galaxy Nexus] beekay201:
android-4.2.1_r1 is up

same binaries as JOP40C. let's get to building :D
[Samsung Galaxy Nexus] mbroeders:
Hmm, I am trying to build 4.2.1 but keep getting the following error:

frameworks/base/core/jni/android_net_wifi_Wifi.cpp: In function 'jboolean android::android_net_wifi_killSupplicant(JNIEnv*, jobject, jboolean)':
frameworks/base/core/jni/android_net_wifi_Wifi.cpp:127:58: error: too many arguments to function 'int wifi_stop_supplicant()'
hardware/libhardware_legacy/include/hardware_legacy/wifi.h:58:5: note: declared here
make: *** [out/target/product/maguro/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_net_wifi_Wifi.o] Error 1
make: *** Waiting for unfinished jobs....

Does anyone know what causes this and/or how to fix this? Thanks!

EDIT

Some additional information:

I've forked the build and frameworks/base directories. Have not done anything with it though. If I switch to the jb-mr1-dev branch, strangely enough it builds. Anyone got a clue??
[Samsung Galaxy Nexus] :
Hey guys! I'm building AOSP ICS for Galaxy GIO (ARMv6). I'm stuck to an error related to qcom display repo. All is ok except for it!

The used repo is: https://github.com/Jellaxy/android_hardware_qcom_display

That is the error:

In file included from hardware/qcom/display/libgralloc/framebuffer.cpp:53:
hardware/qcom/display/libqcomui/qcom_ui.h: In member function 'void QCBaseLayer::setS3DComposeFormat(int32_t)':
hardware/qcom/display/libqcomui/qcom_ui.h:173: error: 'HWC_HINT_DRAW_S3D_SIDE_BY_SIDE' was not declared in this scope
hardware/qcom/display/libqcomui/qcom_ui.h:175: error: 'HWC_HINT_DRAW_S3D_TOP_BOTTOM' was not declared in this scope
hardware/qcom/display/libgralloc/framebuffer.cpp: In function 'int mapFrameBufferLocked(private_module_t*)':
hardware/qcom/display/libgralloc/framebuffer.cpp:870: warning: comparison of unsigned expression < 0 is always false
hardware/qcom/display/libgralloc/framebuffer.cpp:871: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libgralloc/framebuffer.cpp: In function 'int fb_device_open(const hw_module_t*, const char*, hw_device_t**)':
hardware/qcom/display/libgralloc/framebuffer.cpp:994: error: 'struct framebuffer_device_t' has no member named 'lockBuffer'
hardware/qcom/display/libgralloc/framebuffer.cpp:995: error: 'struct framebuffer_device_t' has no member named 'perform'
hardware/qcom/display/libgralloc/framebuffer.cpp:1011: error: 'struct framebuffer_device_t' has no member named 'numFramebuffers'
make: *** [out/target/product/gio/obj/SHARED_LIBRARIES/gralloc.msm7x27_intermediates/framebuffer.o] Error 1
[Samsung Galaxy Nexus] mbroeders:
This is the Galaxy Nexus forum, I think you posted in the wrong thread. Afraid I can't help you...
[Samsung Galaxy Nexus] mbroeders:
So, I have the following problem. Hope someone can help me with this:

I want to build a custom aosp rom with some of my own changes, such as a reboot menu, custom battery etc. I've done this before, but now I would like to use git. What I've done so far: I've forked platform_frameworks_base from github.com/android. I've cloned the source to my hard drive. So far everything is okay. I can even make changes and commit them to git, no problem there.

However, now I'm trying to build. I've made some changes to manifest.xml, i.e. point frameworks_base to my own repo (remote="mark" revision="master"). But here comes the following: it builds when the revision is jb-mr1-dev, but it doesn't build when the revision is master, then it gives the errors I mentioned in a previous post.

So, what should I do? How come the master branch won't build? And how is this generally done. I thought you could just fork a repo, and without making changes it would be like the original. But could there be a difference between the googlesource repo and the mirrored repo on github? Hope someone can help me here! Thanks!
[Samsung Galaxy Nexus] beekay201:
master branch is AOSP, not just Google repo. Hence the need for git. The git repo you cloned tracks progress from https://android-review.googlesource.com/#/q/status:open,n,z
[Samsung Galaxy Nexus] thegtfusion:
@bk201doesntexist

after my tests, this week and the wweek after this week, i will be doing a fresh install of ubuntu, and redownload the source and everything. which version of ubuntu do you recommend? the newest one?

I want to do a clean install because my current installation is rreally messed up!
[Samsung Galaxy Nexus] mbroeders:
I'm not bk201doesntexist, but I would recommend Ubuntu 12.04 LTS. It's what the devs at Google use. Having said that, Mint 13 also works fine (based on Ubuntu). But on my desktop I've recently installed Ubuntu 12.04 and that works great...
[Samsung Galaxy Nexus] beekay201:
Agreed, Ubuntu 12.04 Long Term Support is the one supported by Google. Not just because of the software versions it has pre-installed, but because it will have security updates/support from Canonical for a longer period of time.

Still, if you'd like, you can configure a (or any) Linux box for your build environment, there's even ways to use more updated versions of some of the tools used.

Linux, for its most part, is pretty much about choice.

Sent from my i9250
[Samsung Galaxy Nexus] thegtfusion:
Ok guys, but I have 12.04 LTS now, but it is extremely unresponsive and slow! I installed it on the other patartition (windows on C:\ and ubuntu 12.04 lts on D:\ ... when I log in it takes like 5 mins to get me to my desktop. when i'm in the desktop and i click to open e.g google chrome, it just takes ages to open it!.

and i don't think my system is too slow to run ubuntu 12.04 lts...

i7 @ 3Ghz, 8GB DDR3 RAM, Nvidia GTX 460 1GB..

whats the problem? do you guys think it will be fixed with a clean install of 12.04 lts?

thanks guys :)
[Samsung Galaxy Nexus] beekay201:
you should try asking that question in Ubuntu forums, as this is a thread oriented for aosp building, not really ubuntu support. If i have some issues with my linux box, i'm not gonna come in XDA and wait for someone to help.

something definately not right though; i run Arch on a Core2Duo with 2GB DDR3 (I'm not even going to talk about my graphics card) and it flies, same as another box running Arch as well, but with higher specs (Phenom II quad, 4GB DDR3).

are you using scaling/power management utilities (e.g: cpupower)? which governor/scheduler are you currently using? those would be a useful starting point for creating a new thread in Ubuntu forums.
[Samsung Galaxy Nexus] thegtfusion:
OK, i will consider posting at the ubuntu forums. thanks and sorry for the off topic. i thought maybe you knew why :)

ps: i reached my thanks limit ::(
[Samsung Galaxy Nexus] lionel_messi1:
thanks it was a great help :) :good:
[Samsung Galaxy Nexus] beekay201:
Hey guys just remembered something:

- if you have udev rules set up, but dont need the sdk (or was just using it because of adb/fastboot)

- from the top of the build tree, just:

make adb fastboot

You'll find the binaries in 'out/host/linux-x86/bin'.

Also, if you have already issued a build command ('make -j4', 'make -jX otapackage'), adb/fastboot binaries will already be available in the same folder.

Sent from my i9250
[Samsung Galaxy Nexus] svprm:
Can anyone please tell me the approximate size of source?
[Samsung Galaxy Nexus] thegtfusion:
Its larger than 8GB.

Sent from my Nexus Prime
[Samsung Galaxy Nexus] beekay201:
reference:

http://elinux.org/Android_Source_Code_Description

about: Android source tree

-------------------

https://groups.google.com/forum/?fromgroups=#!topic/android-platform/GfbE9PyoF6A

for the ones on master branch

--------------------

https://groups.google.com/forum/?fromgroups=#!topic/android-platform/THVOi8LvOlE

Patch to re-enable USB OTG on maguro

-------------------

https://groups.google.com/forum/?fromgroups=#!topic/android-platform/XEDzxDGiFJA

run Android with no GUI

------------------

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

porting stuff

-----------------

https://groups.google.com/forum/?fromgroups=#!topic/android-platform/_kBRRn8sswg

ref

android font location

----------------

https://android-review.googlesource.com/#/q/owner:pilliet%40univ-mlv.fr+status:open,n,z

build with java6/java7

-------------

other commits/stuff of interest:

https://android-review.googlesource.com/#/c/48843/

https://android-review.googlesource.com/#/c/47963/

https://android-review.googlesource.com/#/c/46720/

https://android-review.googlesource.com/#/c/45862/

https://android-review.googlesource.com/#/c/45853/

https://android-review.googlesource.com/#/c/48736/

https://android-review.googlesource.com/#/c/48671/

https://android-review.googlesource.com/#/c/48660/

https://android-review.googlesource.com/#/c/46581/

https://android-review.googlesource.com/#/c/48166/

https://android-review.googlesource.com/#/c/40561/

https://android-review.googlesource.com/#/c/42597/

https://android-review.googlesource.com/#/c/37990/ - adb: skip same file when adb pull

https://android-review.googlesource.com/#/c/48296/

https://android-review.googlesource.com/#/c/48285/
[Samsung Galaxy Nexus] jjhiza:
Hey guys, first time posting in the thread. Hope everyone had a spectacular New Year's!

Long story short: I just compiled my first build today, using Mint 14, and everything seems to have gone smoothly. Is like to flash and take it for a test drive, but I'm concerned about two things- Root (SuperSU), and Recovery.

What I have now is a 122.0MB zip, simply named full_toro-ota-eng.jjhiza.zip. I built it as a userdebug build, if that matters at all. In looking through my package, neither Superuser or SuperSU are present, and I'm not sure what I need to delete from my recovery folder, in order to retain my TWRP recovery.

Any and all help would be greatly appreciated. :)