Dev Notes Dev Notes
  • Home
  • Categories
  • Tags
  • Archives

How to contribute to AOSP (Android Open Source Project)?

AOSP

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://code.google.com/p/android/issues/detail?id=209766&can=6&sort=-opened&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened

https://source.android.com/source/index.html


Published

May 16, 2016

Last Updated

May 16, 2016

Category

HowTo

Tags

  • Android 1
  • AOSP 1
  • gerrit 1
  • OpenSource 1
  • repo 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor