yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] Unlawful:
Yep, though the location depends on whether you're trying to edit the applications or system UI.

For applications it's in packages/apps/<name_of_application>/res and for system UI, frameworks/base/packages/SystemUI/res (taking a wild stab after scanning through the folders, correct me if I'm wrong :)). Oh and this is all on master though the locations should be similar. Basically the XMLs are in the res folder of whatever thing you're trying to change.
[Samsung Galaxy Nexus] uoY_redruM:
How do you add devices? It says to reference the button of the guide but I saw nothing about adding.

I'm finishing up (hopefully) syncing with the latest repo and want to attempt to build for the d2tmo (T-Mobile SGS3).

Any advice/tips going into the building process would be greatly appreciated.

EDIT- What happens if during "syncing work trees" it locks up and I have to reboot my pc? Do I have to sync all over again? Just locked up at 51%...
[Samsung Galaxy Nexus] tthaz777:
Thanks a lot for your tutorial. I have learned a lot about how to compiling my own AOSP ROM. :good:
[Samsung Galaxy Nexus] beekay201:
Just repo sync again, it will pick up where it left off.

Take a look at this, and search around for information on PDK.
[Samsung Galaxy Nexus] uoY_redruM:
Is there a way to allot more disk space to Ubuntu after setup? When I installed it along side Windows, one of the setup dropdown boxes was "space" I believe. I set it to 30GB.

During the very end of my repo sync, I got this error:

jamie@ubuntu:~/Android_Source$ repo sync
Fetching projects: 100% (294/294), done.
fatal: cannot create directory at 'config/en.us/wave/dallas/0303': No space left on device
Traceback (most recent call last):
File "/home/jamie/Android_Source/.repo/repo/main.py", line 385, in <module>
_Main(sys.argv[1:])
File "/home/jamie/Android_Source/.repo/repo/main.py", line 365, in _Main
result = repo._Run(argv) or 0
File "/home/jamie/Android_Source/.repo/repo/main.py", line 137, in _Run
result = cmd.Execute(copts, cargs)
File "/home/jamie/Android_Source/.repo/repo/subcmds/sync.py", line 467, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/jamie/Android_Source/.repo/repo/project.py", line 1026, in Sync_LocalHalf
self._InitWorkTree()
File "/home/jamie/Android_Source/.repo/repo/project.py", line 1840, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

So now, I can't finish the repo sync and I'm stuck....
[Samsung Galaxy Nexus] Serious_Beans:
http://linux.softpedia.com/get/System/Hardware/Qtparted-2231.shtml

That might work.
[Samsung Galaxy Nexus] sjoerd0301:
Maybe you can mount your windows partition and use a part of that?
[Samsung Galaxy Nexus] molesarecoming:
i have ubuntu running in a tiny 8GB partition. i share a 300GB ntfs partition with windows and all my repos are initialized there. works pretty good so far. maybe you should try it.

---------- Post added at 10:43 PM ---------- Previous post was at 10:38 PM ----------

any one of you managed to change and push apps? even the slightest change to any app makes android not recognize it anymore. say i change a margin in settings.apk and push it via adb, it'll ge gone from the app drawer. someone told me he's got the same problem and hes building the entire tree to push through a tiny change but thats crazy. what could be the cause for that, signing? rom-fingerprint? i also notice that if i start titanium backup it shows me a message "your android ID has changed! and app that relies on it may stop working!" its also something that i have never witnessed before --- :confused:
[Samsung Galaxy Nexus] Carlos_Manuel:
I'm trying to make stock ROM what I made to deodexed to flashable via CWM but I can't make the script files on Windows/Linux without using source..

I don't have 64-bit PCs and I want to make one ROM to flashable via CWM but I can't so is there any way to make ROM flashable without using the sources?

I tried this one but it didn't work:

by replacing boot.img and system.tar

in folder /META-INF/com/google/android/ is this file: update-binary

#!/sbin/sh

cd /
mount /system
cd /system
rm -rf *
cd /
unzip -p $3 boot.img > /dev/block/platform/omap/omap_hsmmc.0/by-name/boot
unzip -p $3 system.tar | tar x
exit $?

and I can't flash those files... is there any way to make it flash-able?, thanks!
[Samsung Galaxy Nexus] rohan32:
I keep getting this a lot and then it errors out a few seconds into the make command:

/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc: cannot execute binary file

I'm building on Ubuntu 10.04 x86 with GCC 4.6

I can compile ICS perfectly.

Can someone help? I'm stumpted.
[Samsung Galaxy Nexus] adzrules:
This is brilliant. Thanks for the hard work!
[Samsung Galaxy Nexus] beekay201:
Afaik, building 4.1.1 is only supported in 64 bits.

sent from my tf201
[Samsung Galaxy Nexus] reconex:
Very nice and useful guide. Gonna try it tonight. I'm new to android :D
[Samsung Galaxy Nexus] flyingyellow:
I've had the same error as the fellow you replied to, and this solution didn't work for me. I've run make install clean and then synced at least 4 times now and got the same error. Do you know what might be the cause of the issue? I swear I've been through every forum searching for a fix D:

Thanks in advance
[Samsung Galaxy Nexus] miroslav_mm:
I find way to build JB on 32bit system! :cool:
[Samsung Galaxy Nexus] ethanhunt123:
thanks you very much for this!
[Samsung Galaxy Nexus] beekay201:
I just stated that building is not supported (by aosp) in 32 bits. That said, your experience could be useful to others, if you would so kind to share how you managed to complete the build process.

sent from my tf201
[Samsung Galaxy Nexus] XxKillerKev7xX:
Alright I am trying this just it wont let me install JDK 6

says not available but is referred to by another package. this may mean tht the package is missing, has been obsoleted or is only available from another source.

E: Package sun-java6-jdk has no installation candiate

please help im trying to build my cousin a OTA package for his nexus :D
[Samsung Galaxy Nexus] Vindicate:
HELPPPP

Read the BOLD... That's where I am stuck....

1. Preparing your development environment

The very first thing you're going to need to do, is ensure you're working in a root terminal. Much like when using your Android phone, you'll want the # and not the $. In order to do this, open TERMINAL, and type:

sudo -i

Then type in your password. From this point forward, all of the commands in this guide assume you have root priviliges (saves typing sudo *superuser do* before everything!)

Next, we need to add a repository so that apt-get knows where to look for Java JDK:

add-apt-repository "deb http://archive.canonical.com/ lucid partner"

After that, you'll need to update the repository with the following command:

apt-get update

Now that your repository has been updated, you can proceed with installing the required packages to make building Android from source possible. The first thing you're going to need is the Java Development Kit 6:

apt-get install sun-java6-jdk

Followed by (and this may already be installed depending on which version of Ubuntu you went for):

apt-get install python

Now you're going to need Git. Git is the revision control system.

apt-get install git-core

Now, you're going to pull in all the required packages needed for the build process. As I have stated already, this guide is for 64 bit ONLY. Some of these will not work on 32-bit, so if you're using 32 bit, you're reading the wrong guide (sorry)!

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

IF YOU'RE USING UBUNTU 11.10, TYPE THIS COMMAND (if not, ignore this next one)

ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so

Congratulations; you now have all the required packages to proceed with the next step!

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

HERES THE VIDEO....... http://www.youtube.com/watch?v=9h8zVukKTSs&feature=youtu.be
[Samsung Galaxy Nexus] jzero88:
Awsome, Just built my first Rom and works good. BUT... I can't seem to figure out how to add root, superSu, and busybox, add the right permissions, symlinks etc. I know these are the things that are needed, but do not want to use a kitchen such as dsixda's.

So can anyone point me in the right direction? THANKS!!
[Samsung Galaxy Nexus] Deadboy2201:
Does it work with the Galaxy SII too ? :)
[Samsung Galaxy Nexus] mwalt2:
I'd also appreciate a more detailed guide on how to set things like this up and how to add the binaries that are not available on aosp so that you have a fully functional rom when you get done building. Anyone care to help out?
[Samsung Galaxy Nexus] jzero88:
And where might I find information on building the Kernel? Would LOVE a stock kernel with the colors preferences of Trinity. :D

EDIT: Was able to build my own kernel using this guide http://source.android.com/source/building-kernels.html

The value needed is "6fb96c9" found in the About section on your phone too if stock.
[Samsung Galaxy Nexus] tmjuju:
Was anyone able to build a kernel with usb-audio/usb-DAC support?

USB DACs seem to only work on Galaxy S3 for now

I’m starting to create my build environment and wonder what changes should I make to the source in order to build a usb-audio capable kernel and rom.
[Samsung Galaxy Nexus] CheesyNutz:
i did not see how to add other devices ? am i over looking this
[Samsung Galaxy Nexus] EbRaInTe:
Thanks for this tutorial :o
[Samsung Galaxy Nexus] sjoerd0301:
Jeah me too how to do that? (Especially for jb)
[Samsung Galaxy Nexus] adrynalyne:
There is no guide that will cover that. Devices that are not in AOSP are handled differently. Best to check their development forums for clues on how.
[Samsung Galaxy Nexus] tmjuju:
For any of you that has trouble installing JDK perhaps this will help

search for oab-java6

(I can't give any links yet)

---------- Post added at 11:17 PM ---------- Previous post was at 10:53 PM ----------

Another note ...

Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'

Package lib32readline5-dev is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

However the following packages replace it:

lib32readline-gplv2-dev
[Samsung Galaxy Nexus] beekay201:
Nice! :)

https://groups.google.com/d/topic/android-building/Zf1oirfV_v0/discussion

JBQ:

"AOSP is big, and downloading and storing all of it consumes a fair

amount of bandwidth and space.

We've been investigating ways to make it smaller. One visible part of

that work is that the master tree is "only" 6.5GB, while Jelly Bean is

about 8.5GB.

We're aiming to go further. Today, I'm deploying an experiment that

can help shrink things. "
[Samsung Galaxy Nexus] thekurrgan:
the make -j switch instructs it how many functions to perform in parallel when possible. So if you've got a system with 4 cores, use -j4 -- I am unsure if utilizing the hyperthreads will actually speed up the process, I know that on video encoding software that is not correctly coded for it, hyperthreading actually slows it down.
[Samsung Galaxy Nexus] Pwnna:
Does anyone know how to extend off of the stock maguro setting?

I want to add my own PRODUCT_COPY_FILES to add the camera and GPS proprietary blobs along with a couple of other customizations.

I've tried sticking these on into various makefiles in the vendor Samsung tree but I'm not doing it correctly as it errors. (On my phone and I don't remember the exact errors)
[Samsung Galaxy Nexus] stoneypants:
sun-java6-sdk on ubuntu 10.04

I couldn't get these instructions to work exactly as stated in the OP. apparently Sun let the OS distributor license lapse so ubuntu can't distribute it via their repositories.

I'm using 10.04 lts as is recommended by google.

in the OP on the step where you install the sun-java6-sdk

I used this

sudo add-apt-repository ppa:ferramroberto/java

sudo apt-get update

sudo apt-get install sun-java6-jdk

hope this may help anyone else.

thanks for the great tutorial.
[Samsung Galaxy Nexus] Pwnna:
Also possible to install via the oracle binary and update-alternatives
[Samsung Galaxy Nexus] uoY_redruM:
Anyone know how to fix this error?

Which would you like? [full-eng] 9
build/core/product_config.mk:205: *** No matches for product "cm_d2tmo". Stop.

** Don't have a product spec for: 'cm_d2tmo'
** Do you have the right repo manifest?

Another tutorial says to open and change the .mk file (in this case full_d2tmo.mk) PRODUCT_NAME to match that of what the error is looking for. I've tried changing the PRODUCT_NAME to cm_d2tmo with no success. I've also tried MANY other fixes with no luck. I'm pulling my hair out here.

Any help would be amazing.
[Samsung Galaxy Nexus] g.kohei:
help someone.

when build cm10,Error happened.

external/protobuf/src/google/protobuf/compiler/importer.cc:353:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

external/protobuf/src/google/protobuf/compiler/importer.cc: In member function 'google::protobuf::io::ZeroCopyInputStream* google::protobuf::compiler::DiskSourceTree::eek:penVirtualFile(const string&, std::string*)':

external/protobuf/src/google/protobuf/compiler/importer.cc:413:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

target thumb C++: librecovery_ui_tuna <= device/samsung/tuna/recovery/recovery_ui.cpp

device/samsung/tuna/recovery/recovery_ui.cpp:23:20: fatal error: device.h: No such file or directory

compilation terminated.

make: *** [out/target/product/maguro/obj/STATIC_LIBRARIES/librecovery_ui_tuna_intermediates/recovery_ui.o] error1

>device/samsung/tuna/recovery/recovery_ui.cpp:23:20: fatal error: device.h: No such file or directory

compilation terminated.

this file error.

Please tell me how to fix.

I want build cm10 for maguro.
[Samsung Galaxy Nexus] Coffeebeans:
Look under the directory that has the files for building the self-extractors, I believe it is device/maguro/self-extractors/ There you will find folders for all of the vendors, and inside those directories is a folder called staging with all of the makefiles for those blobs. Just copy those files in to the appropriate vendor directories and add your blobs e.g. vendor/ti/maguro, vendor/nxp/maguro
[Samsung Galaxy Nexus] Flukester69:
Thanks for the great tutorial. Maybe some added notes. Eg. Wont work with Java7, more directly this is for 64bit not 32bit. More explanation on the source directory and more specifics if you want only JB and not ICS. Oh and maybe some inclusion of installing and configuring Eclipse would be great too. I've setup Eclipse in the past but in terms of building a ROM for Android, nope.
[Samsung Galaxy Nexus] cheese2471:
thanks, it worked
[Samsung Galaxy Nexus] adrynalyne:
Eclipse isn't needed to build a rom.

That would be good for another tutorial, or follow this: http://source.android.com/source/using-eclipse.html.
[Samsung Galaxy Nexus] wergeld:
I am following along in the tutorial and I am wondering which of the proprietary binaries I need. I have the GSM unlocked GN - so it is maguro. But on the link to get these prop. files there are 2 sets: JRO03C and JRO03H. Which one do I need?
[Samsung Galaxy Nexus] adrynalyne:
Get the latest of whichever you find.
[Samsung Galaxy Nexus] wergeld:
Done, the 03H is the latest. Downloaded the 4 files associated with it.

Thanks!
[Samsung Galaxy Nexus] Quipper2008:
Hello guys,

nice Tutorial but i dont understand one thing. Point 4. Obtaining proprietary binaries:

I have a GNEX GSM and downloaded the 4 Binaries and extracted them in my download folder.

The problem is that i dont know how to install them right. I dont understand this point not really.

Help would be nice.

Thanks.
[Samsung Galaxy Nexus] Pwnna:
Run the extract script in terminal after you untared the tarballs
[Samsung Galaxy Nexus] Quipper2008:
After extracting every binary I open every script, choosed run in terminal and wrote I ACCEPT. The Terminal dissapeared.

What have i to do after that to install th ebinaries correct.
[Samsung Galaxy Nexus] wergeld:
That should do it.

Did you try building a ROM?

If you did and it failed what was the error?

If you did not try and build then what are you doing here? Go build!!
[Samsung Galaxy Nexus] halowen_pcd:
Hi everyone. I'm totally new to Galaxy Nexus.I just got one beside One X to have some experiment from JB. I have a question. Is there any way to fash Jelly Bean for Galaxy Nexus without unlockbootloaderd and install CWM. I havent received any update through OTA on my Galaxy Nexus. My phone is a GSM version and sim free so carrier is not a problem.

Thank you for you help.
[Samsung Galaxy Nexus] rasengan82:
After building... do we just flash gapps from goo.im?
[Samsung Galaxy Nexus] CdTDroiD:
If you want to
[Samsung Galaxy Nexus] rasengan82:
Is that the only gapps package available right now? Looks like picasa sync is not working with that...
[Samsung Galaxy Nexus] CdTDroiD:
It doesn't work with a lot of ROMs. Try flashing it and see
[Samsung Galaxy Nexus] rasengan82:
Thanks I will give it a try. This is a pure AOSP build nothing tweaked (only build.prop)
[Samsung Galaxy Nexus] rasengan82:
Oh man! Google Search is FC.. :( This is using latest from goo.im...
[Samsung Galaxy Nexus] CdTDroiD:
Check if you have Velvet.apk
[Samsung Galaxy Nexus] rasengan82:
The changelog on the latest gapps metions this:

Adjusted install and update scripts to remove source-built QuickSearchBox.apk (Search) and replace with Velvet.apk (renamed as QuickSearchBox.apk). This prevents the user from ending up with two Search apps

This means the Velvet.apk is getting renamed to QuickSearchBox.apk.
[Samsung Galaxy Nexus] CdTDroiD:
That's stupid. Just remove quicksearchbox.apk and push velvet.apk
[Samsung Galaxy Nexus] rasengan82:
Should I delete the odex file as well?
[Samsung Galaxy Nexus] CdTDroiD:
Their shouldn't be a odexed file for quicksearchbox unless you odexed it yourself
[Samsung Galaxy Nexus] rasengan82:
Thanks for all your help. I'm having two issues now. Market icon at top right app drawer is not linking to Playstore. Also the backup and reset setting is not showing my account... showing some local private debug cache.

Edit: Reboot fixed the Play store link on the drawer!
[Samsung Galaxy Nexus] beekay201:
just unlock the bootloader and be happy; this is not HTC, you can relock bootloader whenever you want, no one that matters will ever know if you did unlock it.
[Samsung Galaxy Nexus] Empty Hand:
Great guide. Thank you!
[Samsung Galaxy Nexus] Joselito22:
Excelent Tuto!

Congratulations!

:good::good:
[Samsung Galaxy Nexus] rasengan82:
What is the proper way of going from say 4.1.1.r3 to 4.1.1.r4?
[Samsung Galaxy Nexus] NoobSibot:
Do we really need to download 5 gigabytes of data? I'm doomed!
[Samsung Galaxy Nexus] Serious_Beans:
I can't find the folder I made before syncing the repo.

I named it jb_source

I followed the steps from the beginning, but I can't find the ./bin directory I made either. Can someone help me

Ubuntu 12.04 x64
[Samsung Galaxy Nexus] cxj1995:
can i use the lastest ubuntu?
[Samsung Galaxy Nexus] dxdiag32:
same here too
[Samsung Galaxy Nexus] beekay201:
There's a similar support thread for CM9/CM10 here. Post there. Over here it's the AOSP support thread.
[Samsung Galaxy Nexus] beekay201:
android-4.1.1_r6/JRO03R is up on googlesource.com

edit: working flawlessly so far. uv control, sio, gcc 4.7 :)
[Samsung Galaxy Nexus] ffxx68:
Hi. My touchscreen has a problem on Jb, while it worked perfectly in gb.

I have a thread here:

http://xdaforums.com/showpost.php?p=31867725&postcount=62

Someone who could help me?

Thanks in advance
[Samsung Galaxy Nexus] beekay201:
this is the nexus forums.

Sent from my i9250
[Samsung Galaxy Nexus] andresm7:
This is brilliant, thanks!
[Samsung Galaxy Nexus] dillalade:
At this point, I receive "couldn't find package" for the 4 packages I've listed below..... please can someone advise?

(The others I have managed to apt-get install correctly.)

lib32ncurses5-dev

ia32-libs

lib32readline-gplv2-dev

lib32z-dev

[Running Ubuntu (10.04 LTS) on VirtualBox (4.2.0) via a WinXP_64bit i7 PC.]
[Samsung Galaxy Nexus] mbroeders:
This really isn't the place to ask. Post this question in the Q&A section (but know that the responses will depend on whether you place it in the Nexus forum or Galaxy forum). Anyway, for compiling your own AOSP rom, of course the nexus will be better.

---------- Post added at 03:17 PM ---------- Previous post was at 03:13 PM ----------

I'd recommend using the newer LTS version 12.04, however, if you do want to keep on using 10.04, have a look here. Scroll down to "Installing required packages (Ubuntu 12.04)". Check if you can find alternative packages, for instance, lib32ncurses5-dev could be replaced with libncurses5-dev:i386. I'm not sure, but I think that is the case.
[Samsung Galaxy Nexus] beekay201:
new binaries are up.

sent from my i9250
[Samsung Galaxy Nexus] mrjeff2:
Hi how would one update their branch from android-4.1.1_r4 to android-4.1.1_r6? I've made some minor changes which have not been committed and I also initialized my repo using the -b option initially. I'm not sure if that matters but thought I'd include it anyways.

Thanks.

nevermind I figured it out.
[Samsung Galaxy Nexus] Vektor67:
Thanks for the great guide I've gotten farther than ever before...saying that I'm stuck trying to extract my proprietary binaries. They were downloaded to my downloads folder I don't know how to extract them to JB_SOURCE directory and running for exaple "sh extract-widevine-grouper.sh" from JB_SOURCE results in : "sh: 0: Can't open extract-widevine-grouper.sh" I get that having those folders hidden is for my own good but it's totally frustrating for this linux noob. In windows I unhide all and have total access. I guess I'm spoiled.

Also I'd like to attempt to compile CM10 as well and followed a different guide for it and now I have to very large source tree's in two very different locations i.e./ JB_SOURCE for AOSP and / android/system for CM10. The subdirectories in each tree are very similar (using ls command) I wonder if with better planning I might have combined the two. Thanks for any help.
[Samsung Galaxy Nexus] beekay201:
so that everybody has access to this information:

vim .repo/default.xml

change

<default revision="refs/tags/android-4.1.1_r4"

to

<default revision="refs/tags/android-4.1.1_r6"

---------- Post added at 11:38 PM ---------- Previous post was at 11:29 PM ----------

if my "root of the source tree" is /home/bk201doesntexist/workbench/aosp, then i would copy the scripts to the top, or root, of the source tree, 'cd' into it and from there would:

chmod +x extract-samsung-maguro.sh

and after that

sh extract-samsung-maguro.sh

or

./extract-samsung-maguro.sh

Accept the agreement (type "I ACCEPT" like it tells you to), and binaries will be extracted to the correct folders. When you're done, from the top of the build tree:

make clobber

rebuild.
[Samsung Galaxy Nexus] MR H3LLMAN:
Also, I noticed that OP is missing the right instructions for instaling Sun JDK 6. http://www.devsniper.com/ubuntu-12-04-install-sun-jdk-6-7/
[Samsung Galaxy Nexus] jtvd78:
I followed these directions, but it ended up creating my bin and JB_SOURCE folders in the /root/ folder (because of sudo -i)

How do I get them out? This will be a problem....
[Samsung Galaxy Nexus] thegtfusion:
Intresting. I just installed ubuntu 12.04 . Tomorrow i will start the building. If i run into any issues i can ask for help here right?

Sent from my trasbeaned Galaxy Nexus.

---------- Post added at 11:05 PM ---------- Previous post was at 10:52 PM ----------

And the build that will be compiled, does it have the stock recovery and etc? And how do I add root? (I know flashing supersu is an option, but from the terminal how do I do it?)

Sent from my trasbeaned Galaxy Nexus.