android system source code download

ubuntu install git curl python

  1. A bin / directory ensure that the main directory, and the directory included in the path:

    mkdir ~/bin
    PATH=~/bin:$PATH
    
     
  2. Download Repo tool, and make sure it executable:

    curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
    chmod a+x ~/bin/repo
  3. git config --global user.name "Your Name"
    git config --global user.email "[email protected]"
  4. Git the init -u the repo: //mirrors.ustc.edu.cn/aosp/platform/manifest
    ## if the tips do not connect to gerrit.googlesource.com, you can edit ~ / bin / repo, REPO_URL line to replace the following:
    REPO_URL = ## 'https://gerrit-googlesource.lug.ustc.edu.cn/git-repo'
    ---------------------

  5. repo sync

Guess you like

Origin www.cnblogs.com/lihuiupupup/p/11001361.html