Prepare
Install tools (Gerrit, Repo)
Gerrit
Setup your account on Settings Page in Gerrit account
- Setup your HTTP Password on Settings Page
- Setup your Agreement (Google CLA) on Settings Page
Repo
All required information could be found in official documentation
Repo installing
mkdir ~/bin
PATH=~/bin:$PATH
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Syncing code and changes
Here we suppose that change will be in project platform/frameworks/support
Repo syncing (only for one project as example)
repo sync platform/frameworks/support
Do your changes and commit them locally
Pushing your change to remote server
Check your remotes:
➜ support git:(master) git remote -v
aosp https://android.googlesource.com/platform/frameworks/support (fetch)
aosp https://android.googlesource.com/platform/frameworks/support (push)
Pushing your changes to gerrit:
git push aosp HEAD:refs/for/master
Pushing new patch set to gerrit:
git push aosp HEAD:refs/changes/229627/new
Check your results on server
Changes: https://android-review.googlesource.com/#/c/229627/
Used resources
https://source.android.com/source/contributing.html
https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
https://wiki.linaro.org/Platform/Android/Upstreaming
https://gerrit-review.googlesource.com/Documentation/intro-user.html
https://gerrit-review.googlesource.com/Documentation/user-changeid.html
https://source.android.com/source/submit-patches.html
https://www.chromium.org/chromium-os/developer-guide/gerrit-guide/legacy
https://source.android.com/source/developing.html
https://source.android.com/source/using-repo.html
https://code.google.com/p/android/issues/
https://source.android.com/source/index.html