yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] Treken:
Shenye, I downloaded the binaries for Galaxy Nexus(CDMA/LTE) and the extract sheet was named toro instead of maguro. I went ahead and ran the command according to the name of the extract.sh. Next, I followed the next steps and finally ran the lunch command selecting the 8. I tried it with the 9 option and still got the same results. here are the results:

root@ICSDev:/home/treken/ICS_SOURCE# source build/envsetup.sh

including device/moto/stingray/vendorsetup.sh

including device/moto/wingray/vendorsetup.sh

including device/samsung/crespo4g/vendorsetup.sh

including device/samsung/crespo/vendorsetup.sh

including device/samsung/maguro/vendorsetup.sh

including device/samsung/toro/vendorsetup.sh

including device/samsung/tuna/vendorsetup.sh

including device/ti/panda/vendorsetup.sh

including sdk/bash_completion/adb.bash

root@ICSDev:/home/treken/ICS_SOURCE# lunch

You're building on Linux

Lunch menu... pick a combo:

1. full-eng

2. full_x86-eng

3. vbox_x86-eng

4. full_stingray-userdebug

5. full_wingray-userdebug

6. full_crespo4g-userdebug

7. full_crespo-userdebug

8. full_maguro-userdebug

9. full_toro-userdebug

10. full_tuna-userdebug

11. full_panda-eng

Which would you like? [full-eng] 8

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

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.0.3

TARGET_PRODUCT=full_maguro

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=IML74K

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

root@ICSDev:/home/treken/ICS_SOURCE#

As you can see, it paused for a few seconds then went back to my command prompt. Any solution for this so I can start building?
[Samsung Galaxy Nexus] EddyOS:
You need to run 9 if you have a Verizon Nexus, 8 is for a GSM build

---------- Post added at 02:32 PM ---------- Previous post was at 02:28 PM ----------

Do a build without the 'Mod' version in settings and I'll give it a go! :D
[Samsung Galaxy Nexus] Treken:
Thanks, that should do it!
[Samsung Galaxy Nexus] Treken:
Ok, here's what I'm doing...I downloaded the aosp source tree and compile for the toro build. I created a repo in github and pushed the frameworks/base/ to it so I can make edits and compile based from those edits. A friend told me to just repo what I want to edit. So my question is, how do I implement my repo in the build when compiling but yet pull the rest of the things I didn't change from the aosp repos? Another friend told me the default.xml but I don't know where to look for that. Any help in this matter would be most appreciated.
[Samsung Galaxy Nexus] PaulW21781:
Are you literally making a new project and uploading to it? Or are you going to github.com/android and forking the platform_frameworks_base from there into your git and then modyfying your own fork?

Personally, best practice is to fork projects from github.com/android into your own repo by pressing the Fork button, then clone your own repo

Within there, you then want to add the upstream branch, eg:

git clone git@github.com:YourUserName/platform_manifest.git

cd platform_manifest

git remote add upstream git://github.com/android/platform_manifest.git

git fetch upstream

git merge upstream/master

(note, I use Master branch, hence upstream/master. For other branches, simply replace master for the branch)

Same for other projects (frameworks_base) that way, to keep up to date with google's commits too, you simply go into the folder and type:

git fetch upstream

git merge upstream/master

:)

Also, fork your own copy of github.com/android/platform_manifest

Then to pull your own repo from git instead of Androids, edit the file platform_manifest/default.xml and include the following:

Where it says this:

<remote name="aosp"
fetch=".."
review="https://android-review.googlesource.com/" />
<default revision="master"
remote="aosp"
sync-j="4" />

Change it to this

<remote name="aosp"
fetch="https://android.googlesource.com/"
review="https://android-review.googlesource.com/" />

<remote name="gh"
fetch="git://github.com/"
revision="master" />

<default revision="master"
remote="aosp"
sync-j="4" />

Then to pull your own packages (for instance, your own platform_frameworks_base, do this change:

From

<project path="frameworks/base" name="platform/frameworks/base" />

To

<project path="frameworks/base" remote="gh" name="PaulW/platform_frameworks_base" />

(Change PaulW to whatever the username of your github account is)

Hope this helps a little!
[Samsung Galaxy Nexus] Treken:
I think I'm going to use CM to fork from. So I would change this:

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote name="aosp"

fetch="https://android.googlesource.com/" />

<remote name="github"

fetch="git://github.com/"

review="review.cyanogenmod.com" />

<remote name="github-https"

fetch="https://github.com/"

review="review.cyanogenmod.com" />

<default revision="refs/heads/ics"

remote="github"

sync-j="4" />

to:

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote name="aosp"

fetch="https://android.googlesource.com/" />

<remote name="github"

fetch="git://github.com/"

review="review.cyanogenmod.com" />

<remote name="github-https"

fetch="https://github.com/"

review="review.cyanogenmod.com" />

<remote name="gh"

fetch="git://github.com/"

revision="master" />

<default revision="master"

remote="aosp"

sync-j="4" />
[Samsung Galaxy Nexus] PaulW21781:
Yes, and then for your own pull, have the remote="gh" included, and for a specific branch (ie, ics) have revision="ics" in there too (on the line for the individual packages you fork)

ie,

<project path="frameworks/base" remote="gh" name="Treken1/platform_frameworks_base" revision="ics" />
[Samsung Galaxy Nexus] tannor:
So i followed these directions and using Ubuntu 11.10 64 bit, and did compile with -otaupdate and about 40 minutes in get the following error and it stops:

Building Clang Driver Option tables with tblgen
Host TableGen: vdc (gen-opt-parser-defs) <= external/clang/include/clang/Driver/Options.td
host C++: llvm-rs-cc <= frameworks/compile/slang/llvm-rs-cc.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors

make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/llvm-rs-cc.o] Error 1

Anyone have any possible ideas? Thanks

EDIT: I got it to work. If anyone else runs on this on Ubuntu 11.10 64 bit, do this:

apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilib

and then when you do your make command make sure to use this version of gcc

make CC=gcc-4.4 CXX=g++-4.4 -j1 otapackage
[Samsung Galaxy Nexus] Snylter:
My build ****s up the GPS.

Even if it is enabled in the menu, apps asks me to turn GPS on..

Any idea?

The build.prop-file gives no answer to why..

Also, how do I add root to my build? Should it be good enough to add the su-file in /system/bin and the Superuser.apk in /system/app ?
[Samsung Galaxy Nexus] t4c:
Hi there,

followed the guide on a plain Ubuntu and now I get this one:

papaschlumpf@putamadre:~/nexusdevel$ lunch

You're building on Linux

Lunch menu... pick a combo:

1. full-eng

2. full_x86-eng

3. vbox_x86-eng

Which would you like? [full-eng] ^C

EDIT: Just fixed it, sorry!

Where are my other options?
[Samsung Galaxy Nexus] masi0:
All, have two question - I have compiled the AOSP but where the .img file is located? Cannot find it

And here comes the questions:

- is it a 100% working 4.0.3 or sth is missing/not working?

- how is the battery life on it?

- is there any difference between AOSP and GSN rom?
[Samsung Galaxy Nexus] dave_t321:
That's 4 questions! ;)

images and otapackage (if you built it) are in [build root]/out/target/product/[maguro or toro]/

Everything works if you have all the proprietary blobs included in your source. If you only have the Google supplied blobs (those extract .sh scripts) GPS and camera won't work.

Battery life is great! (ymmv)

Gapps and face-unlock aren't included in the AOSP source but these can be found around here somewhere..
[Samsung Galaxy Nexus] Snylter:
Where do I find these proprietary blobs to include?

I only have the google-supplied extract sh-scripts..

This explains why my gps won't work..
[Samsung Galaxy Nexus] dave_t321:
You've got 2 options:

Git clone a vendor/samsung repository into your [built root]/vendor directory.

or

install a working 4.0.3 rom from here plug your phone into your computer and do this:

cd [build root]/vendor
rm -rf samsung
rm -rf imgtec
cd [build root]/device/samsung/[maguro or toro]
./extract-files.sh

That'll pull the proprietary files from the working build into your vendor directory. They'll all be in vendor/samsung rather than split between vendor/samsung and vendor/imgtec but they'll all be there.

Might be a good idea to make clean before you build again after that.
[Samsung Galaxy Nexus] tannor:
I have not tested my build yet, but just curious isn't this the files you need?

http://code.google.com/android/nexus/drivers.html#toro

and there is one for GSM version

If not where do you find a repository to get it from?
[Samsung Galaxy Nexus] Snylter:
Those are just the files for graphics..

It seems like you still need gps and camera-drivers.

My build does not have a functionally GPS, I've not testet the camera as I never use it anyway.
[Samsung Galaxy Nexus] t4c:
I am so what interested in this one too.

Getting those files from another build may be possible but that's not the way it should be.
[Samsung Galaxy Nexus] efrant:
flash_image

Would someone be able to compile the flash_image binary for me from source here?

The current flash_image binary floating around the forums is not compatible with ICS.

I apologize if this is the wrong thread to post this request in.
[Samsung Galaxy Nexus] scratch42069:
Finally got a working build. What I did was just downloaded the propriertary binaries from one of the githubs and placed that in my vendor directory and I was able to get it to build with working camera and gps.
[Samsung Galaxy Nexus] TulpiX:
After you get the .img files. How do you add or delete files from those? As an example: how would you add the su binary ?
[Samsung Galaxy Nexus] Snylter:
Where should the su file be placed to make sure I got root?

Tulpix: add files in the correct folder under /out/target/product

Then do a make snod

This is what I did with gapps.
[Samsung Galaxy Nexus] Snylter:
Yes, I'm then running AOSP 4.0.3 with everything working just fine :)

I extracted the drivers from the phone as instructed at this webpage:

http://www.franziroesner.com/blog/2...ary-binaries-for-custom-android-galaxy-nexus/

I did a build with the proprietary binaries and the google binaries first.

Then I extracted GAPPS in to the correct place in the out-folder by using the script in the package in a slightly modified version for my system.

I put the Market.apk in to /out/target/product/maguro/system/app

I put the Superuser.apk in the same location.

I put su in to /out/target/product/maguro/system/xbin

I then did a make snod

Finally, I made an zip-file for use with fastboot, and flashed my phone.

This gave me a fully functional 4.0.3 with root :)
[Samsung Galaxy Nexus] Treken:
flashed my first compiled aosp rom. I rebooted and all the sudden it got these weird colored lined running horizontal with the screen. It never booted and when I tried to go to clockwork recovery, my backup files were all gone. I tried to do a factory reset and then when I booted it had the same lines. I tried going to cwm recovery again but it was not there. I got the dead droid with the red triangle. I finally returned the phone to stock and had to reroot which was a bit of a pain. Any idea of why it did this?
[Samsung Galaxy Nexus] ganex:
thx great tutorial!
[Samsung Galaxy Nexus] Yay 4 Juggs:
ok so i started to set this up running ubuntu 11.10 and got to the part of installing jre and now it's just sitting on the Configuring sun-java6-jre with an <ok> at the bottom but doesnt seem to be doing anything...is this normal???

as i read on this tut is more for the gsm gnex but is it possible to get this to work with the lte verizon gnex? i noticed the binaries are for maguro in "sh extract-imgtech-maguro.sh" is there a command for the toro?
[Samsung Galaxy Nexus] Snylter:
Use tab to highlight the OK, then enter.

You have to accept the license :)

This tutorial is for both the GSM and the LTE..

There is only minor changes between these versions.
[Samsung Galaxy Nexus] t4c:
I tried 3 Times for now with different methods of extracting drivers from the device

but my build fails.

Stucks in bootloops, I did no modifications, any suggestion for me:

http://www.bundeszensuramt.de/~t4c/lolcat.txt

I start despairing 8(.

I just want a clean AOSP build (later with su) this can't be so hard?
[Samsung Galaxy Nexus] scratch42069:
Would manually extracting the gapps and pasting them into the proper out-folders work or is the install script needed? I'm stuck at the gapps. I have everything else compiled and built and have even used the make snod command to make the system image after adding ringtones and missing wallpapers.

Edit: Nevermind, I got it all sorted out by manually copying over the gapps and doing a make snod.
[Samsung Galaxy Nexus] RogerPodacter:
haha this got me too my first time. i sat there staring at the screen for 20 minutes not know what to do. just hit the TAB key and continue!
[Samsung Galaxy Nexus] locomain:
hai!

i used to build and mod my apks with windows 7

but now i dual booted my pc with ubuntu(11.10)

so i dont understand much of the OS

is it possible to build a single app from the source?

can someone tell me how or is there a tutorial somewhere

thnx!
[Samsung Galaxy Nexus] beekay201:
i was also looking for it, until i read your next post. thanks mate! too much information sometimes right!?

i also build from master branch, and i only have issues with user build variant. eng variant come deodexed.

use '. build/envsetup.sh && lunch full_maguro-user && make installclean && make DISABLE_DEXPREOPT=true -j8 otapackage' (i use -j8 as i have a quadcore processor, and run linux natively)

i think build/core/main.mk doesn't have it quite right.

you can use 'lunch full_maguro-variant', where variant might be user, userdebug or eng (there's more, but these are the most common ones)

- clone cyanogenmod system/extras/su project, define LOCAL_MODULE_TAGS in Android.mk to optional

- clone Chainsdd Superuser project to packages/apps/Superuser, define LOCAL_MODULE_TAGS in Android.mk to optional

- edit build/core/main.mk, add Superuser first, su at the end.

issue 'make install clean' from the top of the tree and build again.

there's a way, i don't remember the command exactly
[Samsung Galaxy Nexus] titto503:
help please how to extract binaries i try this

cd ./device/samsung/maguro

./extract-files.sh

but i get a error

/ICS_SOURCE/device/samsung/maguro# ./extract-files.sh

./extract-files.sh: 23: adb: not found

chmod: cannot access `../../../vendor/samsung/maguro/proprietary/fRom': No such file or directory

./extract-files.sh: 25: adb: not found

./extract-files.sh: 26: adb: not found

chmod: cannot access `../../../vendor/samsung/maguro/proprietary/pvrsrvinit': No such file or directory

./extract-files.sh: 28: adb: not found

./extract-files.sh: 29: adb: not found

./extract-files.sh: 30: adb: not found

./extract-files.sh: 31: adb: not found

./extract-files.sh: 32: adb: not found

./extract-files.sh: 33: adb: not found
[Samsung Galaxy Nexus] t4c:
You must have "adb" installed and set $PATH correctly.
[Samsung Galaxy Nexus] tannor:
I take it you absolutely need to be on a 4.0.3 rom? I was able to extract from 4.0.2 but I guess they might be different drivers?

Also if I understand correctly I do not need to run the google supplied extract binaries script at all? Just skip that step and run the extract from /device/samsung/toro?
[Samsung Galaxy Nexus] beekay201:
That's correct. At least for gsm version, so it's probably the same for cdma.

If you open extract-files.sh with an editor, you'll see the list of files that the script wants to extract/copy to the device dir.

You can also can clone/pull the files from online repos, like github, instead of flashing to 4.0.3 first. I think its safer to flash to 4.0.3 and get the files yourself, adb is the way to go.
[Samsung Galaxy Nexus] Snylter:
4.0.2 drivers works just fine on my GSM-version.
[Samsung Galaxy Nexus] adrynalyne:
GPU drivers will not.
[Samsung Galaxy Nexus] TulpiX:
Hello

where exactly do you find those repositories ?

I could not find them :(

thanks
[Samsung Galaxy Nexus] dave_t321:
https://github.com/search?type=Repo...ng&repo=&langOverride=&x=18&y=9&start_value=1

https://github.com/search?type=Repo...tec&repo=&langOverride=&x=0&y=0&start_value=1

A selection to choose from. Obviously you only need the maguro or toro folders. A lot of those repos contain other devices too.

tbh the easiest way is the device/samsung/maguro/unzip_files.sh script though if you don't already have a working 4.0.3 build. It sets the folder structure up for you that way.
[Samsung Galaxy Nexus] beekay201:
He's probably using software rendering.
[Samsung Galaxy Nexus] Snylter:
You might be right.

I extracted the drivers from the device, and then extracted the binaries from google.. So I guess I'm using the 4.0.3 GPU-driver.
[Samsung Galaxy Nexus] t4c:
Did you guys test those dictonaries for writing short messages?

I can download a language but nothing happens, my dictonaries are alle empty.

My main language german and english too, tried to download them but nothing really happens:

D/dalvikvm(26191): GC_CONCURRENT freed 504K, 6% free 12993K/13703K, paused 5ms+3ms
E/DictionaryProvider:EnableAction(26191): Unexpected state of the word list 'de : 1 for an enable action. Cancelling
W/InputManagerService( 201): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41a56000
E/DictionaryProvider:DisableAction(26191): Unexpected state of the word list 'de' : 1 for a disable action. Fall back to marking as available.
D/dalvikvm(26191): GC_CONCURRENT freed 425K, 5% free 13061K/13703K, paused 5ms+8ms
I/DownloadManager(15404): deleting /data/data/com.android.providers.downloads/cache/de_general.htm
D/dalvikvm(26191): GC_CONCURRENT freed 454K, 6% free 13013K/13703K, paused 6ms+3ms
W/InputManagerService( 201): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41abcfc0
E/DictionaryProvider:EnableAction(26191): Unexpected state of the word list 'de : 1 for an enable action. Cancelling
W/InputManagerService( 201): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41b8be50
[Samsung Galaxy Nexus] TulpiX:
Hello

I have forked a new repository to test this out

i assumed that after you change the default.xml you use repo on that to fetch the rest of the source.

am i right there ?

this seems to work with master

but if i want to use another branch e.g.: android-4.0.2_r1

i first do: git merge upstream/android-4.0.2_r1

which seems to work

i initialize my repo with that branch which works too

but when i do a repo sync i get tons of erros like these:

fatal: https://github.com/platform/bootable/bootloader/legacy/info/refs not found: did you run git update-server-info on the server?

how do i use other branches ?

i dont want to compile to master because i want to go with a stable release ( i dont want to go further than officieal releases)

i hope i am on the right track here :(

thanks
[Samsung Galaxy Nexus] TulpiX:
nevermind seems to work now :)

at least i hope :)
[Samsung Galaxy Nexus] toroidal_loop:
Would you be able to make a CDMA version of this tutorial? I know a lot of people would be able to use it.
[Samsung Galaxy Nexus] TulpiX:
does somebody know what google apps dont get compiled and need to be taken from other sources ? i mean the names and locations (on a working phone rom)

as i understand if you compile from aosp no google apps are included ?

thanks

edit:

after looking at the system/app folder in the compiled out folder and from a working rom i found the following files that exist only in the working rom folders:

BooksTablet.apk

ChromeBookmarksSyncAdapter.apk

FaceLock.apk

GalleryGoogle.apk

GenieWidget.apk

Gmail.apk

GoogleBackupTransport.apk

GoogleContactsSyncAdapter.apk

GoogleEarth.apk

GoogleFeedback.apk

GoogleLoginService.apk

GooglePartnerSetup.apk

GoogleQuickSearchBox.apk

GoogleServicesFramework.apk

GoogleTTS.apk

HoloSpiralWallpaper.apk

LatinImeDictionaryPack.apk

Maps.apk

MarketUpdater.apk

MediaUploader.apk

Microbes.apk

NetworkLocation.apk

NoiseField.apk

OneTimeInitializer.apk

PhaseBeam.apk

SetupWizard.apk

PlusOne.apk

Stk.apk

Street.apk

Talk.apk

talkback.apk

Thinkfree.apk

Videos.apk

VoiceSearch.apk

YouTube.apk

are those all the files ?

some files exist but in the rom folders they are named with a google at the end, example: CalendarGoogle.apk is named when compiling from source Calendar.apk

why is this ? are there any differences between those ?
[Samsung Galaxy Nexus] x_SCOS_x_ELITE:
Great Job

Lot of good work here. Now we just a need a beginners bug fix thread. Maybe I will start one?
[Samsung Galaxy Nexus] TulpiX:
That would be interesting

Does nobody know answers to my questions above?

Another qestion i have is. What do you people use to deodex your files?
[Samsung Galaxy Nexus] danpaul:
yesss thats good
[Samsung Galaxy Nexus] Dutchy18:
After compiling (OTA Package), how can i emulate/debug it?

trying "emulator" but it doesnt exist.
[Samsung Galaxy Nexus] DandyNL:
I don't think so.. where is the market ( Vending.apk )
[Samsung Galaxy Nexus] Yay 4 Juggs:
For weeks now I have been trying to do this but run into a similar problem each time ...during the do process it freezes...like for instance right now its sitting on Downloading system/core: 33% (1MB/3MB) and has been for approximately 40 min...I tried several times with my old laptop this is happening on my new Asus g53sx and is really starting to piss me off
[Samsung Galaxy Nexus] sam9410090:
Perfect, ta muchly.
[Samsung Galaxy Nexus] t3xboar:
silly question:

compile went fine. spit out an ota zip flashable. tested it. works perfectly.

I made some changes (su, programs etc), then used the make snod command. it worked for like 5min then spit out some info that it was successful in re-writing the system.img file.

ermm... if im trying to make a otapackage for distribution lets say.. but its editing the .img files rather than remaking the ota package every snod command... question is basically is there some magic command to slap all those edited .img files into a flashable ota??

thanks !
[Samsung Galaxy Nexus] MR H3LLMAN:
So I've got builds for a couple of different sources such as stock, aosp, and Codename but how do you package the lte/cdma radios into it as well as a boot.img? None of my builds seem to compile those with them. I'm also trying to figure out how to package a different kernel in it as I just finished the first build of my own kernel. I feel stupid asking this but I'm at a loss.
[Samsung Galaxy Nexus] t3xboar:
h3llman you are basically asking what i was.

radios are not built into the compile it's an extra needs to be added. as for the kernel pretty sure its the boot.img in the dir.

problem is even after a successful edit - I cant figure out how to convert the fastboot compile into a modified OTA. if i recompile it it goes back to default reverting all my mods :(
[Samsung Galaxy Nexus] MR H3LLMAN:
Haha yeah just realized we are asking the same thing. I'm headed home from work now. I'm going to try a couple things out and see what I can do now that I know the process. I'll report back in a bit.