How to install Android's repo on my Ubuntu system?

Subrat picture Subrat · Dec 3, 2010 · Viewed 67.3k times · Source

I want to install repo for working with the Android source files. How to install repo?

Answer

Erich Douglass picture Erich Douglass · Dec 3, 2010

From https://source.android.com/source/downloading#installing-repo:

$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir working-directory-name 
$ cd working-directory-name 
$ repo init -u git://android.git.kernel.org/platform/manifest.git 

Authoritative instructions