yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] Carlos_Manuel:
Hey, yep I still need help. :)

OK, uninstalling "git" via terminal...

How? :D

I tried this command:

sudo apt-get --purge remove git

So do I try that autoremove command?

And I don't know much about the commands on Linux Ubuntu but many Ubuntu 11.4 and newer version's commands won't work.

I have installed Ubuntu to be able to use JétDroid and to e.g. make WiFi to work by changing lib and bin files..

:)
[Samsung Galaxy Nexus] Carlos_Manuel:
@bk201doesntexist!

Thank You again! You are the man, or is it better to say our Hero! :D

but terminal stuck, oh it continues... ahhh... too slow PC. :P

Thanks! :good: :)
[Samsung Galaxy Nexus] beekay201:
The package here was not "git", it was "git-core".

Eheh :) again, glad I could help.

Anyways, this part of the process is still undergoing, and we still have the actual building to do :)

Sent from my Nexus
[Samsung Galaxy Nexus] Carlos_Manuel:
Yep!

:)

Maybe I should update my post so others who have same issues can fix it quicker... but unfortunately I don't really remember what all the commands I/we used. .:D

Tomorrow I try to build AOSP ROM, Source files are downloaded now.. :)

Thanks! =)
[Samsung Galaxy Nexus] svprm:
I installed Java SDK 1.6.0.14.

But no luck.

Same error.

Here is full error:http://pastebin.com/Z8SqzFaE
[Samsung Galaxy Nexus] beekay201:
what branch/tag are you building? straight vanilla?

Right now, I can build tag android-4.2.2_r1, aosp/jb-mr1-dev-plus-aosp and aosp/master.

Try to 'make clean' or 'rm -rf out/' and rebuild.
[Samsung Galaxy Nexus] svprm:
Currently im using this tag android-4.1.2_r1.

If i want to update it to android-4.2.2_r1,can i sync over it?

or

Again i need to init and download the android-4.2.2_r1?
[Samsung Galaxy Nexus] beekay201:
yes, you can just repo init android-4.2.2_r1, although you should read the previous 4, 5 pages, there's no device trees under android-4.2.2_r1 tag yet.
[Samsung Galaxy Nexus] svprm:
First of all,Thanks for helped me continuously bk201doesntexist.

Bro,Atlast it worked for me.

I deleted the base and again synced it.

Then it worked for me.

And also installed the aosp on my devices.

Its working. ;)

But it took around 6hrs to compile on -j1.

I have 2 core and 4 threads,Can i use -j4?

Another doubt

Assume as i compiled the rom without any modification.

Then i changed some codes.

Now,Do i need to clean build? or just compile it?

I'm Newbie to AOSP.

Thanks to all helper.
[Samsung Galaxy Nexus] beekay201:
:) Glad I could help.

My build machine manages, with 6GB swap/2cores/4GB DDR3 1066, to build with -j8 (but by the looks of it, I'll manage -j16 no prob). No issues whatsoever running -j4 on this setup. So yeah, I think you can, unless you're running Linux on a VM and don't have 8GB+ of ram on your host.

Normally, it should be possible to just build the modified project and its dependencies (note: done previously) with

mmm /path/to/project

You can also commit your changes, and then rebuild with make -jX otapackage, it will only rebuild the parts it needs to and add it to the previous build. You shouldn't have to clean build ever, unless you're adding/removing binaries/prebuilts to/from the build.

TIP: use git branches to keep your work organised, leaving the master branch untouched/clean.

Don't stop here, search git tutorials, platform coding, ROM teams github, Java tutorials, and android-building, android-platform@Google Groups, anything you can get your hands on xD

Sent from my Nexus
[Samsung Galaxy Nexus] Carlos_Manuel:
Huh...I finished my program which I made via Microsoft Visual Basic 2010 express.... :P

Now I am going to try build JB 4.2.2 for Nexus! :)
[Samsung Galaxy Nexus] beekay201:
https://groups.google.com/forum/?fromgroups=#!topic/android-building/VWCZETXNYoE

JDQ39 is being pushed now. :victory:

still no camera/gps binaries. damn licensing.
[Samsung Galaxy Nexus] Carlos_Manuel:
On Ubuntu 10.04 lucid lynx I get same issues when building JB 4.2.2..

terminal complains abut missing recovery for maguro, missing src folder, etc. :/

And I don't know how to install Ubuntu as third OS on iMac safely and I don't want to mess up iMac when I don't know how to fix it. :rolleyes:

So it is also possible to build Android on Mac OS, and those commands in the android building site are compatible with iMac lion OS?:

e.g.

$ POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg

?
[Samsung Galaxy Nexus] svprm:
There is no problem with this error.

recovery for maguro, missing src
[Samsung Galaxy Nexus] Carlos_Manuel:
Yeah, bk said that in the freenode irc.. :)
[Samsung Galaxy Nexus] svprm:
I tried to init android-4.2.2_r1 over an android-4.1.2.

But it show me a error.

Do i need to redownload the entire source again for android-4.2.2_r1?

Then Which version for of Ubuntu is good for compiling?

10.04 or 12

Currently im using ubuntu 10.04.
[Samsung Galaxy Nexus] Carlos_Manuel:
Yep I think so, otherwise you get some files as double files or I don't know. Well Ubuntu version...

Which version would be good.....

It depends of your PC.

if your PC is fast with good CPU and enough RAM then 12.x is good and maybe it's easier to use 12.4 for android building.

I'm using 10.4 because it's a lot faster than 12.4 on my old pc.

---------- Post added at 04:13 PM ---------- Previous post was at 04:08 PM ----------

Wow, my slow PC did it..

Now I should have aosp ROM as in system. Img, other .ing files?

Thanks Bk.. :)

But how to fix the GPS and camera? Then I should build again which takes over 4 hours
[Samsung Galaxy Nexus] playabigfoot:
Hi all I was thinking to compile myself a 4.2.2 ROM for maguro and just checking 1. Witch Ubuntu to install (I'm making a dual boot machine) and my computer is Intel c2duo e6750@3.2ghz, 4gb of ddr3 800mhz and for Ubuntu I made a 50gb partition. Is it OK that I DL the latest Ubuntu or is 10.4 still the best.

Sent from my AK powered GNex
[Samsung Galaxy Nexus] djmatt604:
I use 12.04 LTS and it works beautifully.

Sent from my 4.2.GSII
[Samsung Galaxy Nexus] playabigfoot:
OK thanks going to try with the latest version.

Sent from my AK powered GNex
[Samsung Galaxy Nexus] svprm:
I managed to get working 4.2.1 Aosp.

Then how to add android source to eclipse?

I checked article "using eclipse" on android website.

But I think it is out of date.

There is no classpath.
[Samsung Galaxy Nexus] Carlos_Manuel:
Sorry I don't know, I have not used ecilipse.
[Samsung Galaxy Nexus] Carlos_Manuel:
Still no answer to my question how to fix GPS and Camera before building JDQ39 for Nexus..

But whatever, I had to delete everything to be able install Win7 back and then again Ubuntu back... :P

At least I know now that my PC can build Android in 7 hours but it should need more RAM and also better video card to make it faster..
[Samsung Galaxy Nexus] Sparx639:
Will I need to extract the proprietary binaries for jellybean like I would ICS? Great guide btw

edit* nvm I found out
[Samsung Galaxy Nexus] anil76:
AOSP build (4.2.2) stuck during boot ?

I followed this guide to create an AOSP build (4.2.2) for maguro on ubuntu 10.04. After several hours , the build completed and I had img files in the out/target/product/maguro directory.

I flashed system.img and boot.img using fastboot. After flashing, I rebooted the phone but it stuck on the "android" boot animation. I had to reflash system and boot.img from the factory image.

Any clue on what might have gone wrong ? This was my first attempt to create the build.
[Samsung Galaxy Nexus] djmatt604:
There is absolutely no way to guess without a log. Do you have one you can share?

Sent from my Infamous Tab.
[Samsung Galaxy Nexus] MBQ_:
Do you have the correct vendor and proprietary files?
[Samsung Galaxy Nexus] Sparx639:
You need to flash 3 .img's. System, boot, and userdata. When you flash userdata remember to type "fastboot flash -w userdata /directory/userdata.img" without quotes.
[Samsung Galaxy Nexus] anil76:
Unfortunately I did not save build log. May be I will give another attempt by building the whole thing again.

---------- Post added at 04:23 AM ---------- Previous post was at 04:23 AM ----------

Yeah I do have all the hardware binaries

---------- Post added at 04:25 AM ---------- Previous post was at 04:23 AM ----------

Is it ? I did not want to erase my apps and data so I did not flash userdata. I thought I could just flash system and boot images and use the old userdata.
[Samsung Galaxy Nexus] Carlos_Manuel:
Are or were you using Google's Android factory image?

If yes then you must do Full Wipe to be able boot AOSP, other-wive it just hangs in boot animation and never won't finish booting.

I think userdata.img is not needed to flash so just flash system and boot. img files
[Samsung Galaxy Nexus] anil76:
Thanks ! I will do a full wipe before installing my own build. After I do full wipe, I won't have problem in flashing userdata.img also as my data would have been gone anyway.

Btw other than google properitery apps, is there any other difference between AOSP build and factory image ?
[Samsung Galaxy Nexus] Sparx639:
Well you have some bugs, larger mod support, basically every cyanogenmod mod. I'm not sure if it use different libraries or not. It does give you the stock music player though, that's not present on the Google factory ROM. Did you fix your bugs or did you not look into it yet? I can help you if you want because I had to go through it myself.
[Samsung Galaxy Nexus] anil76:
Thanks ! I will certainly seek your help if I get stuck. I have not yet tried re-installing after a clean wipe, I will do it over the weekend as I can't afford to tinker with my phone during work days.
[Samsung Galaxy Nexus] Carlos_Manuel:
Hey guys, I Don't know do you already know this or not, but I gonna tell this thing to you...:

Want custom languages to your AOSP ROM?

I found the really easy way to do it..

1. Download sources and the stuff you need for building!

2. Go to the working directory e.g.: */carlos/android/system/

3. In that directory go to /build/target/product/ folder

4. Now edit these files:

languages_full.mk, languages_small.mk and locales_full.mk

E.g

locales_full.mk

.............. am_ET hi_IN

after hi_IN add the language that you want to include to your ROM, e.g. Estonian language et_ET

Then it looks like:

.............. am_ET hi_IN et_ET

5. Save files and start building ROM..

______________________________

IF YOU already have built ROM and you just want more languages then delete apps from */out/target/product/maguro/system/ <--- also delete files from the framework folder and start building ROM! AND system.img & userdata.img from /out/target/product/maguro/

by typing e.g these to Terminal:

repo sync

source build/envsetup.sh

lunch

12.

make -j4

_____________________________

This worked for me! :DDD

EDIT: Also check and edit sdk.mk if you want.. .:D
[Samsung Galaxy Nexus] sharad103:
Nice, this is interesting :good:
[Samsung Galaxy Nexus] jjhiza:
Hey guys, hope everyone is having fun with 4.2.2...I figured I'd ask a question or two.

I already have an AOSP Toro 4.2.2_r1 build compiled, with a few nice options that I've managed to include. I'm interested in learning how to do a few things, that would make my build really solid.

I'd like to add:

1) back to kill

2) notification LED options

3) a couple of init.d scripts to run at boot - specifically, a Flush script (to free up RAM on an interval of every 30 minutes)

4) nav bar dpi options

I've rummaged through github pages and websites, and have come up with some information, but nothing that I can truly make heads or tails of. I'm hoping and wondering if you guys can help me out with these issues, or point me in the right direction? Thanks in advance. :)
[Samsung Galaxy Nexus] beekay201:
Different hashes, not possible. AOSP isn't Google Android - look at it like switching ROM's.

You can also use this to remove locales you don't use.

Sent from my Nexus

---------- Post added at 12:36 PM ---------- Previous post was at 12:10 PM ----------

You could join #aosp-building @freenode, I normally hang out there, not so much xda these days. Might be able to help.

Sent from my Nexus
[Samsung Galaxy Nexus] Carlos_Manuel:
Yep that's true! :)
[Samsung Galaxy Nexus] jjhiza:
@bk, git pulled back to kill, notification light, and swipe to switch from CM, ran meld to correct some commit errors, and I'm making clean now. Hopefully everything goes well. *fingers crossed* :)

Update: ran three builds, and all of them failed. I was getting some kind of "recompile with -Xlint unchecked" error. Back to the drawing board tomorrow. :(
[Samsung Galaxy Nexus] jboyer0000:
To get the exact error you have you run make without -jX
[Samsung Galaxy Nexus] jjhiza:
Here's a link to the make error(s) I'm experiencing. I haven't figured out how to insert a box of code on Xda yet, and didn't want to take up too much space with copy/pasting everything.

https://www.box.com/s/x3dgfxmrdal8106p1714

I have a 4.2.2_r1 AOSP full_toro-userdebug build that compiles fine, but after pulling the following CM resources into my frameworks/base directory, the compile fails. I followed dreams' tutorial on git pulling, and thought I had done everything correctly (even installed meld, to help me correct any commit errors that popped up), but clearly, I messed up somewhere.

Here's what I'm trying to pull into, and compile with my base: (using 'git fetch http://<fetch_code_for_CM_feature_here>')

Back to kill - http://review.cyanogenmod.org/#/c/19753/

Notification LED options - http://review.cyanogenmod.org/#/c/19191/

Swipe to switch - http://review.cyanogenmod.org/#/c/29118/

Hopefully this will be enough information for you guys to lend me a hand. The only thing I was really confused with was using meld...I felt like I was just clicking arbitrarily, until all three windows matched; I didn't understand the process at all. Thank you for all your help guys. I really appreciate it. :good:
[Samsung Galaxy Nexus] jjhiza:
^Thanks for the quick response! This might be a really dumb question, but how should I go about finding the correct lines to replace? My first thought is to locate those lines in someone else's build, on git, and simply copy the correct lines in place of the wrong ones. Am I correct, or is there a better way to go about this?
[Samsung Galaxy Nexus] Carlos_Manuel:
Np.

You should go to the directory and edit the lines which gives errors..

also make sure that those are all the files which is needed, by checking is in review.cyanogenmod page more things related to the features.. hopefully you understand what I mean, my English isn't so good! :D

e.g. keyquard_glow.xml line 35 gives error

go to the frameworks/base/core/res/res/layout-port/ folder and open the .xml file, if it says something doesn't match, check other files e.g. .png files for the thing and add missing .png files, also check that you have edited the .java files correctly..

If in terminal is is mismatch or something else then probably you have written something wrong, e.g. </string> is like this: /string>

then fix it to fix that one building error....

I'm not any app themer or developer so unfortunately I can't help much more.. :/
[Samsung Galaxy Nexus] beekay201:
Hey, a bit late:

What Eclipse version are you running? What is discussed here, is it similar to your issue? If so, you might want to update package "eclipse-emf" (try to adapt to your distro, package name might be different)
[Samsung Galaxy Nexus] Carlos_Manuel:
Does anybody know the command to build only one system app?

I don't remember the command, it was something like this:

nice make -j32 Trebuchet

I Googled but I didn't find the page where was the command... -_-

EDIT: It is that command... :D but it's not the same what I used..
[Samsung Galaxy Nexus] Sparx639:
mmm make -jX /directory to app/app.apk

With X being your CPU core number
[Samsung Galaxy Nexus] Carlos_Manuel:
"Nice make -jxx app name" works too!

I rather to use the nice make command, it's easier to remember.
[Samsung Galaxy Nexus] Sparx639:
Yeah, I just didn't know the nice command I was only shown the mmm. Thanks for the info!
[Samsung Galaxy Nexus] Carlos_Manuel:
:)

Np. :D
[Samsung Galaxy Nexus] creeve4:
I am planning to fork several AOKP repositories because I want to make some changes to my local forked source files that I will not be committing back to git and I want to be able to sync any changes to the AOKP source, but maintain the local changes I have made. I found this post, but I still have a few questions:

1. Can I fork all of AOKP's repos at once or do I need to individually fork each one (frameworks_base, packages_apps_ROMControl, etc)?

2. After forking and syncing the repos, setting up the remotes, and editing my forked platform manifest, do I just use "repo sync" in the root directory of my forked project or do I need to use the git commands (like "git fetch upstream" and "git merge upstream")?

3 a. How does the merging of new commits from the remotes with my fork work? Say I have added several lines of code to a file and the remote version of that file is also changed. I assume the changes from the remote are merged and if there is a conflict I will get an error.

3 b. Do I use "repo sync" or git commands for future syncing?
[Samsung Galaxy Nexus] beekay201:
1- you can create a manifest file, with remotes locations/branches, much like aosp, and use repo init/sync to fork/pull; or you can clone them separately and use git to version control instead of repo.

2- I think you can read 1)

3a- use branches to store your work/cherry-picks

3b- that depends on what you chose on 1)

Sent from my Nexus
[Samsung Galaxy Nexus] beekay201:
Tag android-4.2.2_r1.2/JDQ39E is up (since 17/04/2013).
[Samsung Galaxy Nexus] MBQ_:
:highfive:
[Samsung Galaxy Nexus] Carlos_Manuel:
Hey guys...

Google Is Working On And Testing Android 4.3 - It's Still Jelly Bean

From:

http://www.androidpolice.com/2013/0...and-testing-android-4-3-its-still-jelly-bean/
[Samsung Galaxy Nexus] beekay201:
Dude, build.props are way easy to edit; I ordinarily don't enjoy this hype, this one isn't any different

Sent from my Nexus
[Samsung Galaxy Nexus] Carlos_Manuel:
Yeah, but did you read this from that page?:

:D
[Samsung Galaxy Nexus] beekay201:
I did. Well, we'll know soon enough.

Sent from my Nexus
[Samsung Galaxy Nexus] creeve4:
What command can I use to search for and sync any missing local files?
[Samsung Galaxy Nexus] jboyer0000:
I'm pretty sure a repo sync will add any missing files locally
[Samsung Galaxy Nexus] creeve4:
I've already tried, repo sync does not sync missing files or directories.
[Samsung Galaxy Nexus] beekay201:
What missing files or folders?

Sent from my Nexus
[Samsung Galaxy Nexus] creeve4:
Both. I deleted a few files and when the repo sync did not recreate them, I deleted the whole folder and tried another repo sync. That did not work either.
[Samsung Galaxy Nexus] beekay201:
Are those projects on the manifest? Then repo init again, then repo sync.

Should get what's missing, I don't really use repo other than sync operation on the master branch, not really useful if you're following release tags, IMO. A bit off topic but, if you're not building from master or a dev branch, you're building from a release tag - a "stable" release - which means its a snapshot of the code at the time, on which you want to build from.

Sent from my Nexus
[Samsung Galaxy Nexus] Carlos_Manuel:
I don't know how to set up the latest Linaro Android toolchain for CM10.1.. -_-

Anybody can help me with this thing..?

In this general section there is one guide but I don't understand how should I edit envsetup.sh file and I think I donwnloaded some wrong toolchain files.. :D
[Samsung Galaxy Nexus] Carlos_Manuel:
Wow! Thank You MBQ_

I'll try this tomorrow. :)

I'm not sure do I understand the second part:

the path of /bin/ folder

is it /prebuilts/qcc/linux-x86/---toolchain---/bin/

or do I just copy and paste it to the file..? :confused:

Or do I just make some random folders for it..?

And is the cchache necessary? My PC doesn't have enough memory for Ccache
[Samsung Galaxy Nexus] MBQ_:
CCACHE helps, but isnt required

go to prebuilts/gcc/linux-x86/ , and change the linaro_13.04_blah folder to just 'linaro'
[Samsung Galaxy Nexus] Carlos_Manuel:
Hey MBQ_ This is for Xylon! :/

I use CM10.1 sources so what should I do..? :D

What should I download from here: http://www.linaro.org/downloads/ ?

This one? : android-toolchain 4.8
[Samsung Galaxy Nexus] MBQ_:
CM doesnt properly compile with Linaro
[Samsung Galaxy Nexus] Carlos_Manuel:
Oh that su#ks! :D

But luckily my built CM is fast and I can build ROM pretty quickly.. :)
[Samsung Galaxy Nexus] MBQ_:
Excellent! To save time, dont 'make clean' prior to every build. It helps a LOT in regards to waiting
[Samsung Galaxy Nexus] Carlos_Manuel:
Yep! :)

I don't make clean prior to every build. :) It saves a lot time! :laugh:
[Samsung Galaxy Nexus] beekay201:
I've faced more instability using -O3/linaro than with -O2/Google. IMO, it's not worth it. The results are not so different (in terms of benchmarking, smoothness), Google's toolchain does the job nicely, since Linaro released their stuff. ;)

Kernel and it's tunables have more effect on everyday usage/butterness than the toolchain, from what I've seen.

A bit off topic: I'm expecting good things from Linux kernel 3.10.x. Maybe then f2fs support will come on the official kernel from Google.

I think we could benefit from a faster FS, nand-oriented FS, ext4 is good but not really designed for emmc's. I'm trying to back port it from Linux mainline, but I'm still learning the basics. I've set my mind to it, to improve my almost non-existant coding skills.

Sent from my Nexus
[Samsung Galaxy Nexus] djmatt604:
bk, how are you not at least a RC. Thank you for all you do.

Sent from my Infamous Tab.
[Samsung Galaxy Nexus] beekay201:
I still haven't applied!! Well, maybe I will, one of these days. ;)

Sent from my Nexus
[Samsung Galaxy Nexus] djmatt604:
you're a shoe in with the right application. I'll vouch for you anytime. you're always here to help people and your posts are informative and well articulated. always great to see!

Sent from something Infamous...
[Samsung Galaxy Nexus] MBQ_:
I'll do the same
[Samsung Galaxy Nexus] beekay201:
So, how about it, any big coding/kanging in your builds these days?

Sent from my Nexus
[Samsung Galaxy Nexus] djmatt604:
I'm screwing around with a partner trying to merge PIE from PA into AOKP. proving to be a great learning experience! Then turning my attention back to pure Google. so many projects and so little time...

Although I'm sure you weren't talking to me right? Lol :P

Sent from something Infamous.
[Samsung Galaxy Nexus] jjhiza:
Nice! I'm going to leave Pie alone, since LMT is readily available to everyone. I've gotten expanded Quick Settings, Ac!d Audio mod, native tethering, and Advanced Power Menu built in. I plan on keeping an eye on the popularity of, and demand for the new Halo feature. I need to get more comfortable with git first though, so I can try to pull it into my build, once Halo is 100% stable. :)
[Samsung Galaxy Nexus] CrotaNexus:
Great tutorial, very good :good:
[Samsung Galaxy Nexus] graltok:
Thanks for the info!
[Samsung Galaxy Nexus] naddie:
I hope the XDA community take kindly to noobs like us. After all, babies have to be born, life renews itself, and all that jazz. We all have to start somewhere. I think XDA is a great place to start. Afterall, it's a development-oriented community, right?

I actually had a new outlook in life: if others can do it, why should I?

As for your issue with permissions, I'm sure if it's anything like Windows, you should be able to apply permissions to all child objects within the ICS_SOURCES folder so that your standard user account should have access to the contents as well.

I'll look into this.

Edit: You need the chmod and -R switch to make it recursive.

example

sudo chmod 777 -R /path/to/someDirectory
[Samsung Galaxy Nexus] shenye:
Use the "chown" command.