Building from Source Tip

Search This thread

CPCookieMan

Retired Recognized Developer
May 27, 2009
457
148
cpcookieman.com
I realize that many people have been having trouble while building Android for the Galaxy Nexus. Well, the truth is, building from source usually works exactly like this:

tumblr_inline_mqini1Asvk1qz4rgp.gif


in that you do exactly what people say to do, and it goes wrong.

The first tip is to repo sync repo sync repo sync. I say this because many of my own build problems were caused by not actually having the whole source code.

However most people's problems, say the camera not working, or the build not completing, or missing vendor files, or whatever, are caused by not using the vendor files from TheMuppets on GitHub.

  1. Erase the vendor/samsung folder (if it exists)
  2. Edit the file .repo/local_manifests/roomservice.xml
  3. Add the line <project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" /> in between the two top XML tags.
  4. Run the command "make clobber && repo sync" from your build root.
  5. Try your build again.
 

Carlos_Manuel

Senior Member
Apr 28, 2011
4,092
5,368
27
Kuressaare
Building Android from source to Galaxy Nexus is way too easy!

but building for device which has Android only unofficially is not so easy.




another way is to add vendor files manually to /*/vendor/ instead of editing default.xml
 

TheRinseM

Senior Member
Jan 31, 2013
899
1,349
Thanks for all!

Was having problems w/ incompleted source, did repo sync x10 and it worked :)

Thanks alot!

Rinse