Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,687 Members 40,557 Now Online
XDA Developers Android and Mobile Development Forum

Building from Source Tip

Tip us?
 
CPCookieMan
Old
#1  
CPCookieMan's Avatar
Recognized Developer - OP
Thanks Meter 136
Posts: 455
Join Date: May 2009
Default Building from Source Tip

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:



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.
Samsung Galaxy Nexus LTE - Daily Driver - CM-10.2
ZoPhone i5 - Coming soon - Stock
HTC ThunderBolt - Given to my father - TheROM-Mecha
HTC Droid Eris - Retired - TheROM-Eris

I support Team AndIRC. irc.andirc.net #linux


Come check out CM-10.2 for the Toro!
Come check out TheROM-Mecha!
Come check out TheROM-Eris!
Come check out TheCookieRom!
 
Carlos_Manuel
Old
#2  
Carlos_Manuel's Avatar
Senior Member
Thanks Meter 4,307
Posts: 3,665
Join Date: Apr 2011
Location: 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
Samsung Galaxy Nexus
(the best Android phone ever)
ROM: Dreams
Radio Baseband: I9250XXLJ1

Sony Xperia tablet Z (LTE):
10.5.A.0.230

Samsung jet:
My built CM7

Twitter || Facebook || YouTube: CarlosJacksonHD

Android for Samsung Jt:
http://code.google.com/p/android-for-jet/
 
TheRinseM
Old
#3  
TheRinseM's Avatar
Senior Member
Thanks Meter 1,337
Posts: 887
Join Date: Jan 2013

 
DONATE TO ME
Thanks for all!

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

Thanks alot!

Rinse
"Stupid questions do not exist, the ones that do not ask questions, are stupid."


| Samsung Galaxy Nexus Samsung Ativ S |

contact me on Hangouts, if you need help. therinsem@gmail.com

Code:
if (thanks == true)
{
Click.thanksButton;
}
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes