yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] beekay201:
Thanks. Here's the bit from JBQ, guys:

Indeed what I was thinking: poster (masteroftime666) is building from aosp/master. this kind of stuff should always appear on aosp/master, never on release tags.
[Samsung Galaxy Nexus] deepayanneogi:
I am planning to build a ubuntu machine for android rom and app development , how much space should I prepare for the partition ? I am on a 96 GB ssd where space is bit limited because I also run a win 8 setup in another partition , PLease recommend the least amount of space needed for this ubuntu partition ( os+JB source+JDK+android sdk) .

And recommend the ubuntu version also .
[Samsung Galaxy Nexus] Deadly:
Ubuntu 11.10, 20 GB should be fine.. or make it 25

____________________________________

UltimaTIME Clock Widgets, 200 clock widgets in one!!:eek:

Falling Doesn’t Make You a Failure, Staying Down Does
[Samsung Galaxy Nexus] beekay201:
More if he wants to use ccache. IMO, he should just buy another HDD (mechanical will do just fine). GB price is quite low these days.

sent from my Google Galaxy Nexus
[Samsung Galaxy Nexus] Deadly:
I suggested it because of his 96 gb limitation.. I myself use 40 gb for Ubuntu.. I have 1 TB though..

______________________________________

It matters not whether you win or lose; what matters is whether I win or lose.

- Darrin Weinberg
[Samsung Galaxy Nexus] beekay201:
Well, I was suggesting a mechanical disk because the poster MIGHT want to conserve that SSD a little while longer.. More write operations, the less time it will work
[Samsung Galaxy Nexus] jjhiza:
Hey guys, I've finally sat back down, and gotten a build that flashes and boots fine, and has root. I've got the right binaries and all, but there are no radios...and as such, no signal. I have the .img files, but I'm uncertain of where to put them, so the build will compile with them. Could anyone point me in the right direction? :)
[Samsung Galaxy Nexus] djmatt604:
Maybe check a flashable zip for a radio for your device to determine how to inject a radio on install?
[Samsung Galaxy Nexus] jjhiza:
I'm trying like crazy, but I can't, for the life of me, find any ROM with radio.img files in them. I've already got the appropriate files on my computer... I just don't know the path they belong in, so the build will compile with them. :confused:
[Samsung Galaxy Nexus] djmatt604:
Oh no, I had meant check in your forum for a flashable zip for a radio specifically...if there are multiple radio options for you. You could examine the updater script for tips on how to use your own install script to inject the radio yourself after the ROM install has completed...?

Sent from my Infamous Tab.
[Samsung Galaxy Nexus] jjhiza:
Thanks! I'll definitely dig around in the updater script, to see what I can come up with.

Just to clarify... I am aware that AOSP build without radios and stuff. What I'm searching for its a rationale for why my build seems to overwrite/remove the radios I already have.

Rasbean (my current ROM) is compiled from source, and flashes perfectly fine (ie. Doesn't mess with my signal at all). I'm clearly missing something here, but I'm not sure what it could be, or what I can do to correct the problem. If others can compile an ota package that doesn't remove those files, I'm not sure why I'm having so many issues doing the same. :(

Edit: I found something that may/may not be interesting... Could I have possibly extracted my binaries incorrectly? I simply used the "Extract Here" option from the desktop, but I've run across another build guide that suggests doing it in terminal, as follows (it's for a different ROM, but the principles should still apply):

% cd ~/tdroid/tdroid-4.1.1_r6

% wget https://dl.google.com/dl/android/aosp/broadcom-toro-jro03r-1bf94b7c.tgz

% tar -zxvf broadcom-toro-jro03r-1bf94b7c.tgz

% ./extract-broadcom-toro.sh # (view the license and then type "I ACCEPT")

...

% wget https://dl.google.com/dl/android/aosp/imgtec-toro-jro03r-3cb69577.tgz

% tar -zxvf imgtec-toro-jro03r-3cb69577.tgz

% ./extract-imgtec-toro.sh # (view the license and then type "I ACCEPT")

...

% wget https://dl.google.com/dl/android/aosp/invensense-toro-jro03r-8f1588ba.tgz

% tar -zxvf invensense-toro-jro03r-8f1588ba.tgz

% ./extract-invensense-toro.sh # (view the license and then type "I ACCEPT")

...

% wget https://dl.google.com/dl/android/aosp/samsung-toro-jro03r-c5fc800d.tgz

% tar -zxvf samsung-toro-jro03r-c5fc800d.tgz

% ./extract-samsung-toro.sh # (view the license and then type "I ACCEPT")

I'm curious as to whether or not I may have messed things up by using the simple method of extraction, versus handling it in terminal...thoughts?
[Samsung Galaxy Nexus] jjhiza:
Update: Issues resolved!!!! :D

It was a binary issue...
[Samsung Galaxy Nexus] djmatt604:
Congratulations!

Sent from my Infamous Tab.
[Samsung Galaxy Nexus] jjhiza:
Thank you!!!! :D And thanks to everyone here, who offered guidance and assistance! You guys have allowed me to realize a dream of mine! :thumbup:
[Samsung Galaxy Nexus] beekay201:
aosp: android-4.2.1_r1.2 mostly for nexus 4 it seems, no big deal

build version JOP40G
[Samsung Galaxy Nexus] beekay201:
Only now I've gotten around to check this out.

Correct file path is frameworks/base/core/res/res/values/config.xml, on android-4.2.1_r1.2

diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index f91df99..a539dbd 100755
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -646,6 +646,8 @@
<string-array name="config_locationProviderPackageNames" translatable="false">
<!-- The standard AOSP fused location provider -->
<item>com.android.location.fused</item>
+ <!-- The Google provider -->
+ <item>com.google.android.location</item>
</string-array>
[Samsung Galaxy Nexus] capt.nizam:
Thanks

Thank you
[Samsung Galaxy Nexus] Lord Yurij:
It would be great if you don't quote such long posts
[Samsung Galaxy Nexus] beekay201:
And step2 is to be done as a normal user, not as root.

Sent from my Nexus
[Samsung Galaxy Nexus] no.one.writeme:
Build android 4.2.2

Hi there,

After initializing a new 4.2.2 AOSP repo, the devices tree is missing.

Am I missing something?

Can anyone help me build android 4.2.2 from source?

Thank you in advance,

Best regards.
[Samsung Galaxy Nexus] ciprianruse88:
guys,where can i finde a guide on how to cherry pick feature and implement them on my aosp rom?if someone wants to help ciprian.ruse@gmail.com and we talk on gtalk.thank you!:good
[Samsung Galaxy Nexus] djmatt604:
You need to blow away your current java setup and install the correct version. Google up a tutorial on how to uninstall Java and install the correct version. I had to do that, but am not at home at this time so don't have a link handy.

Sent from my Infamous Tab.
[Samsung Galaxy Nexus] tomvs16:
Guide worked perfectly !

Are the new binaries from 4.2.2 already out or not ?

I wonder how other developers compile from source without those 4.2.2 binaries. Can't get maguro device list unfortunately.

If I add the 4.2.1 source it shows up in the build list.
[Samsung Galaxy Nexus] nitsua98:
https://android.googlesource.com/device/samsung/tuna/
[Samsung Galaxy Nexus] ciprianruse88:
Yes...i did it.started build but didn't build 4.2.1_r1.2....don't know why thou.what repo do you use for 4.2.1 to sync cuz if i sync with all the manifest after sync i don't finde in workspace(the name of the dir i gived) /device/samsung/maguro <--(samsung/maguro)
[Samsung Galaxy Nexus] tomvs16:
That is tuna and only till 4.2.1. I just can't seem to figure out how other devs build from source without the binaries.

Any help is greatly appreciated !
[Samsung Galaxy Nexus] nitsua98:
Just be patient :)
[Samsung Galaxy Nexus] tomvs16:
Alright :) Will stick at 4.2.1 for now.

Thanks !
[Samsung Galaxy Nexus] beekay201:
Google "4.2.1 > 4.2.2 changelog"

Then check for changes in that project, and merge those in the 4.2.1 project. Just an example.

Sent from my Nexus

Edit:

Our device isn't the only one.

https://groups.google.com/forum/?fromgroups=#!topic/android-building/WY6KRt8v738
[Samsung Galaxy Nexus] svprm:
After Fetching project is completed.

It showing me a error:

error: frameworks/base/: platform/frameworks/base checkout 11e96c0dbce3425ee6ef2d180a5f5b54d007bf06

How to solve this?
[Samsung Galaxy Nexus] xdp:
I am stuck here as well. I repo synced cm-10.1 branch, ran ./get-prebuilts and build/envsetup.sh, but when running "breakfast maguro" I get:

Device maguro not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_samsung_maguro
Default revision: cm-10.1
Checking branch info
CyanogenMod/android_device_samsung_maguro already exists
Syncing repository to retrieve project.
error: project device/samsung/maguro not found
Repository synced!
Looking for dependencies
Dependencies file not found, bailing out.
Done
ls: cannot access device/*/maguro/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_maguro". Stop.

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

This prevents me from moving on to extracting blobs since that must be done from the device/samsung/maguro directory which doesn't exist yet. What might be the problem?
[Samsung Galaxy Nexus] beekay201:
that doesn't really provide any useful information

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

You being on the wrong thread; This thread supports AOSP building, not CM building.
[Samsung Galaxy Nexus] xdp:
I see that now...thanks.
[Samsung Galaxy Nexus] mannyboy28:
Thanks this thread helps alot

: )

---------- Post added at 01:23 AM ---------- Previous post was at 01:18 AM ----------

the sun java command no longer works :o:highfive:
[Samsung Galaxy Nexus] dxdiag32:
me too dude!

i stucked here for whole day!In order to solve this i tried to download entire source 2 times!maybe it's the cm server problem:(
[Samsung Galaxy Nexus] djMesias:
Delete the frameworks/base directory (rm -rf frameworks/base) and try repo sync frameworks/base again.
[Samsung Galaxy Nexus] xdp:
This fixed it for me: http://xdaforums.com/showpost.php?p=38239132&postcount=6
[Samsung Galaxy Nexus] svprm:
I got this error when on make cmd

find: `src': No such file or directory
build/core/base_rules.mk:171: *** vendor/widevine/maguro/proprietary: MODULE.TARGET.SHARED_LIBRARIES.libdrmdecrypt already defined by hardware/ti/omap4xxx/libdrmdecrypt. Stop.

How to solve?
[Samsung Galaxy Nexus] jjhiza:
You can ignore the src error... the ROM will be just fine. If you don't have the widevine binaries, you need to get them, and include them in the build. You'll need all of the binaries for a fully functional build.
[Samsung Galaxy Nexus] beekay201:
http://xdaforums.com/showpost.php?p=36368195&postcount=596
[Samsung Galaxy Nexus] MBQ_:
You seriously need to apply for the RC title. Youre one of the most intelligent, kind, humble, and helpful users on XDA.
[Samsung Galaxy Nexus] svprm:
Now I'm facing this error.

frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pService.java:1442: cannot find symbol
symbol : class TextView
location: class android.net.wifi.p2p.WifiP2pService.P2pStateMachine
((TextView) row.findViewById(R.id.value)).setText(value);
^
frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pService.java:1475: inconvertible types
found : android.view.View
required: android.widget.EditText
final EditText pin = (EditText) textEntryView.findViewById(R.id.wifi_p2p_wps_pin);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1167 errors
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar] Error 41

After I updated the Java SDK to 1.6.0.41.

Again facing the same problem.
[Samsung Galaxy Nexus] beekay201:
Could you try adding

import android.widget.EditText;
import android.widget.TextView;

to file frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pService.java, commit your changes and rebuild?

-----

EDIT: Anyone not being able to sync device trees? switch to 'jb-mr1-dev-plus-aosp', it's the state of the AOSP master branch when it was merged with google's internal tree (which then gave birth to android-4.2.2_r1): it will have the device trees. ;)

.repo/manifest.xml

<?xml version="1.0" encoding="UTF-8"?> [0/1]
<manifest>

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

credit: JBQ@android-building/google groups
[Samsung Galaxy Nexus] svprm:
It already having that two line.

Also it showing error from various Java files.

Any other solution?
[Samsung Galaxy Nexus] beekay201:
various java files? this may be related to java version. Are you using openjdk or sun's jdk?

Please see this commit, it may be worth pulling it to relax java, as I don't know exactly what version you're using.

-------

Tip: to minimize the size of the source tree when downloading it first time:

- 'repo init' will create a hidden folder at the top of the build tree, which contains

tango% ls -othr .repo
total 24K
drwxr-xr-x 7 bk201 4.0K Feb 25 04:02 repo
lrwxrwxrwx 1 bk201 21 Feb 25 04:02 manifest.xml -> manifests/default.xml
drwxr-xr-x 9 bk201 4.0K Feb 25 04:03 manifests.git
drwxr-xr-x 3 bk201 4.0K Feb 25 04:31 manifests
drwxr-xr-x 24 bk201 4.0K Feb 25 07:04 projects
-rw-r--r-- 1 bk201 6.9K Feb 25 07:15 project.list

- before doing 'repo sync', edit .repo/manifest.xml and remove the projects you don't need; for example, since i only build on Linux, for manta and maguro, i removed projects android_device_samsung_toro, android_device_samsung_toroplus, the mac toolchains, clang support for mac;

Brings down the size of the build tree to 13.7GB. :)
[Samsung Galaxy Nexus] MBQ_:
Guys, check out my github. I have a full repo manifest that will pull code to successfully compile an Android build. Link is in my signature :)
[Samsung Galaxy Nexus] svprm:
I'm using Sun Java jdk 1.6.0.41.
[Samsung Galaxy Nexus] jjhiza:
I'm mobile right now, so I'm not 100% up to speed on your issue, but if you're having a problem with Java, just purge your current version, and "apt get install" the version recommended in the OP. I had to purge my version that came with Linux Mint, but from there on out, things have worked fine. Hope this helps. :)
[Samsung Galaxy Nexus] beekay201:
I think I used 1.6.0-update16, which would be 6u16.
[Samsung Galaxy Nexus] svprm:
OK I will try it and report you both.
[Samsung Galaxy Nexus] Carlos_Manuel:
Hey guys this question doesn't really belong to building ROM,..

But I would like to build app from sources e.g. Apollo music player from sources in gthub..

Can someone please tell me any good page for Tutorial to do that?

I can't find anything or I'm noob or stupid when I don't find any thread here to do it.

Thank You!

EDIT:As always nobody can't answer to my questions and some complains there is so much guides to do something.... -.-
[Samsung Galaxy Nexus] DevonL:
So I followed the tutorial and I'm trying to build 4.1.1 for toro and I don't have the option to build for it, the options I DO get are:

Lunch menu... pick a combo:

1. full-eng

2. full_x86-eng

3. vbox_x86-eng

4. full_grouper-userdebug

5. mini_armv7a_neon-userdebug

6. mini_armv7a-userdebug

7. full_wingray-userdebug

8. full_crespo-userdebug

9. full_maguro-userdebug

10. full_panda-userdebug

Which would you like? [full-eng]

Any idea/help as to why I don't have it to select here?
[Samsung Galaxy Nexus] beekay201:
read the previous page..... :silly:
[Samsung Galaxy Nexus] sourcex:
Just wanted to ask whether Windows can be used for this ?
[Samsung Galaxy Nexus] josteink:
Nope. You can run a Linux - vm though :p
[Samsung Galaxy Nexus] Carlos_Manuel:
So now I try to build AOSP ROM and it's my first time doing it for Nexus, on old business PC with 1GB RAM and Intelpentium 4 64-bit CPU...

looks like I successfully downloaded source files but the binaries are old? for JOP40D and older and no JB 4.4.2?
[Samsung Galaxy Nexus] jjhiza:
If you're building for toro, I'm pretty sure the binaries haven't been updated yet, because VZW hasn't pushed the update. Many devs are sticking to 4.2.1_r1.2 for the moment, due to the lack of binaries.

I think the OP is pretty good too... The command line for purging incompatible versions of Java might be nice to see, but it's easy to find if you Google it. The only serious issue I ran into was with the LTE binaries needing to be patched, in order for me to get a fully functional toro build. Other than that, I had no problems following the instructions. :)
[Samsung Galaxy Nexus] Carlos_Manuel:
Well!

I don't live in USA!

I have GSM Galaxy Nexus.

I noticed that the lib files and the bin file are in the vendor folder (/system/etc/vendor/*)

but I have never built from sources successfully and I think I have to change android.mk file in vendor folder abd other .mk files..
[Samsung Galaxy Nexus] beekay201:
seriously, just read this thread;

if you think the OP isn't noob friendly enough, there's always the instructions Google has given you!
[Samsung Galaxy Nexus] Carlos_Manuel:
Oh god sake!

I have read that page many times!

I have read OP!

What I can do when I can't do anything so well..

I am trying to build JB 4.2.2 from sources and I need help not any replied red that bla bla bla..

I have run extract.imgtec-maguro.sh in the woring directrory and when I try to buildit doesn't give Maguro or any other Nexus device..

-.-
[Samsung Galaxy Nexus] MBQ_:
cd to your directory

Run:

repo sync -f
[Samsung Galaxy Nexus] Carlos_Manuel:
OK, Thanks I try it. :)
[Samsung Galaxy Nexus] MBQ_:
How many cores does your PC or laptop have?
[Samsung Galaxy Nexus] beekay201:
A few pages back...

Maybe this clears it:

And one solution:

Or you could just follow MBQsniper:

As you can see, it's not something that hasn't been discussed.

And as for the following:

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

Tom Gray:

or maybe you could extract-files.sh to get them from the factory image...
[Samsung Galaxy Nexus] MBQ_:
Has Google source released full 4.2.2 yet?

Edit: I worded that weird. Whatever, haha
[Samsung Galaxy Nexus] beekay201:
Nothing on official manifest, no official annoucement from JBQ.
[Samsung Galaxy Nexus] MBQ_:
Still? What a shame
[Samsung Galaxy Nexus] beekay201:
At this point, I don't need it. Would be nice to get it though.
[Samsung Galaxy Nexus] MBQ_:
True. I agree though
[Samsung Galaxy Nexus] beekay201:
hey, do you IRC? #aosp-building@irc.freenode.net if you want to drop by for chat. created it like last month, never seen anybody there but me :laugh:

anyone's free to join in, ofc
[Samsung Galaxy Nexus] MBQ_:
Hahaha. Okay bro!! I'll keep that in mind. :good:

Thanks :)
[Samsung Galaxy Nexus] jjhiza:
I'm mobile, so I didn't check your profile to see where you're located, which device you have, etc... I was just trying to lend a helping hand. I'm pretty new to compiling myself (just started a couple months ago), so I don't have all the answers, but I try to help when I feel I can. I agree with bk though... Between the OP, the troubleshooting that's been done in this thread, and Google search, you have all the resources you need to build successfully. :)
[Samsung Galaxy Nexus] Carlos_Manuel:
Heh sorry I don't know!

I haven't bought that PC, it is old HP Compaq DC7600 PU699AV with intel pentium 4 64-bit based processor, was it 2,8 GHz or what,I don't remember..

I use only Ubuntu on it to be able access EXT2/EXT3 partitions for dual boot...

At least Ubuntu 12.10 runs slow on it but Ubuntu 10.04 is super fast on it..

OK, I'm completely noob with those source stuff, I'm so confused..

I have to download sources again because I modified the manifest file wrong from .repo

and I should sleep to wake up at morning..
[Samsung Galaxy Nexus] beekay201:
join irc channel #aosp-building @ irc.freenode.net, i'll help you out
[Samsung Galaxy Nexus] Carlos_Manuel:
Sorry I don't know how to get there,I have never before used that. :eek:

EDIT; I think I got there.

EDIT2: Thank You really much, finally someone can help me with something what I am not bale to do myself... :)

EDIT3: I'm bored so I clicked thanks to them who helped or tried to help.. :P
[Samsung Galaxy Nexus] beekay201:
yeah, no problem. :)
[Samsung Galaxy Nexus] Carlos_Manuel:
:)

My pc went to slow so I have to try to do it via iMac later at home.

Is it possible to build JB on Ubuntu 10.04.4? It's the only Ubuntu version that I like to use. :)
[Samsung Galaxy Nexus] MBQ_:
Yes.
[Samsung Galaxy Nexus] Carlos_Manuel:
OK, thanks, sorry I have limited the 8 thankses so I can't press the thanks button.. :)
[Samsung Galaxy Nexus] MBQ_:
Not here to get thanks dude, don't even worry about it! Make sure to thank bk because he has helped a LOT of people here. :good:
[Samsung Galaxy Nexus] beekay201:
Hey guys, good morning (GMT+00:00);

I'm not so strong with Mac, but I'll help, sure ;)

I'll be on IRC in a few.

Sent from m Nexus
[Samsung Galaxy Nexus] Carlos_Manuel:
@MBQsniper: yep that's true.

I don't remember how many times I have thanked him yesterday but today thanks again... :P

And yeah good morning.

It's 9:39 AM here. :)

I am going to install Ubuntu to my mom's iMac because I really don't know how to use Mac's terminal. :D

But I can do it when I'm at home and if my little brother isn't playing games again on iMac. :laugh:

EDIT: I fixed some texts because before I wrote via my Nexus.

I have installed Ubuntu 10.04.4 back so now my PC is faster. I try one time again with it. :)
[Samsung Galaxy Nexus] Carlos_Manuel:
On Linux Lucid Lynx 10.4.4 (LTS)

Terminal said something about, git, that it is missing..

I have got once before too that message!

I have installed all the packages and I try to install similar packages too..

If those doesn't fix that git is missing problem then what to do?

When I check via terminal the git version it hows the latest version of it...., I also tried to re-install git with different ways..

:rolleyes:

---------- Post added at 09:55 PM ---------- Previous post was at 09:13 PM ----------

OK, so I get this error! (if you don't see the wallpaper then disable ad blocker)

I have tried to install latest git at least 4 different way but I get errors e.g. 404 "*somethig*" not found...

I have tried these:

https://www.google.ee/url?sa=t&rct=...eKlMOn2WIQvvUAvaAcg4doQ&bvm=bv.43148975,d.bGE

and:

http://kibyegon.wordpress.com/2010/05/13/how-to-install-git-on-ubuntu-lucid-10-04/
[Samsung Galaxy Nexus] beekay201:
hey, still need help? I'm no Ubuntu user, but with a bit of searching I think we can solve that small issue (at least in my distro lol, hope it's not so hard on Ubuntu).

Edit: Okay, so I already did the searching part... Bored until now.

So, let's start. I'll drop this here too, might be useful again sometime, i don't know. Let me remind you, if you've got any doubts concerning the way your distro works or adapts to this, please refer to your man pages (i.e. 'man sudo') or distro wiki/forums. TIP: If you have any previous git versions installed, remove them.

For the ones having the same issue, you'll need to update your git version, as 'repo' obviously states. The following steps should do it:

1- Open this on a new tab. Assuming you've all read it, Peter provides of his own will a up-to-date git PPA for several Ubuntu versions. It so happens that he's (apparently) still supporting 10.04 as it's an LTS and there's some demand;

2- Follow his instructions to add his PPA repo to your system:

sudo add-apt-repository ppa:pdoes/ppa

3- Then, I believe it should be:

sudo apt-get update
sudo apt-get install git

4- This should do it. Some might need to

sudo apt-get install python-software-properties

before 'apt-get install git'.

Disclaimer: Right now, I don't have the patience (sorry) to install Ubuntu on a jail, but I've read a reply to that blog post that stated that the PPA was online 20 Dec 2012 and working, so it's worth to give it a go.