Published July 28, 2018 by Bauuuuu, Kuber Sharma
Last updated on: 13th September,2018
- Sign up on our gerrit review.arrowos.net using either a google account or github account and set a USERNAME in profile section.
Note: Username once set cannot be changed. If signed up via github, the username by default will be set to your github username.
- Open your local terminal and generate a ssh key by running the following command. Refer this guide for more info on how to generate ssh keys.
- Now add the contents of your ssh public key(~/.ssh/id_rsa.pub) to your gerrit account in the SSH Public Keys section.
- Once done adding the ssh key to your gerrit account you may run the following command to check the connection with gerrit.
If everything went well you’ll be greeted with a welcome message that the connection has been established. If you receive any error saying “permission denied(public key)”, that means your SSH keys aren’t entered correctly, try repeating STEP 2 again.
In this case it is better to start things from scratch by removing your old ssh keys with the following command.
Once you have verified your SSH keys and a successful connection with gerrit, you’re ready to submit patches.
Below is an example showing how to submit a commit to android_vendor_arrow repo on ArrowOS gerrit:
This example commit shows you how to add a device to official list.
From the root of your source:
Now make your changes, i.e. here we edit the arrow.devices file to add the device codename and build type.
Once you have finished doing the changes
This will generate a commit with the changes you have made.
Now to push the changes:
Here android_vendor_arrow is the repository name and arrow-8.x is the branch, change them accordingly to the repo and branch you’re trying to push to.
If you receive a message saying missing change id in the commit then read the error message carefully and do the exact step shown in the hint of the error message and push again.
With that your commit should be visible on ArrowOS gerrit for review.
If you still have issues please contact anyone from the ArrowOS team.
Last but not the least, it is important that port 29418 on your network should be open else you will receive an error saying “no route to host”. Some universities, institutions effectively block this port and in such cases you should push the patches form some other network where its allowed.