Search code examples
androidubunturepo

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


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


Solution

  • 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