1. 程式人生 > >如何提交Code到google open source android gerrit

如何提交Code到google open source android gerrit

也許你在進行android開發的時候會發現一些android原生的問題,那麼你可以提交issue到google issue網站上,

當然在提交的時候最好能先搜一下在google issue上是否已經有相關的CR已經提交過了,那麼有就可以參考

一下遇到該問題的Coder們都怎麼分析的,申請一個gmail帳號你也可以和大家一起討論,那麼如果你想要將

自己對該問題的修改提交到android的倉庫裡應該怎麼辦呢?這就是本篇文章要講述的主要內容:如何提交你

的修改到Android gerrit上。

首先來了解兩個官方網站:

1.android issue list

 

  這個網站上會有目前提交到android上的所有issue,這裡你可以提交issue,管理你的issue,也可搜尋已有的issue

2.android gerrit

  url:https://android-review.googlesource.com

  這個網站上會有android release上所有提交,可以檢視所有提交,管理自己的提交,新增android&google的人員

  對你的提交進行review.

  

瞭解以上兩個官方網址之後,接下來我們就做提交code的準備了,前提是你需要提交的code已經準備好,我主要是基於個人第一次提交code的經歷將過程講述一遍,如果你想要

看官方的詳細說明可以看 android 官網的 Submitting Patches 這個頁面的描述。

基於本地(ubuntu)有android原始碼滴同學,提交code到android 倉庫步驟

1.將自己的code修改完畢並驗證過OK

2.配置android gerrit

  1) 用gmail登入到https://android-review.googlesource.com

  2) 點選右上角使用者名稱進入settings ---> Agreements ---> New Contributor Agreement一路操作下去各種agree就行了

3.cd 修改code所在倉庫的.git目錄下

  vi config

  按照如下方式新增aosp的remote資訊,以5.0 frameworks/webview為例

  [remote "aosp"]
    url = https://android.googlesource.com/platform/frameworks/webview
    review = https://android-review.googlesource.com
    projectname = platform/frameworks/webview
    fetch = +refs/heads/*:refs/remotes/aosp/*

4.1) git fetch  aosp   # fetch aosp遠端倉庫

   2) git branch -r |grep aosp   

       fetch完成之後通過上面這條命令可以看到如下aosp相關的分支

  aosp/chromium-dev
  aosp/idea133
  aosp/idea133-weekly-release
  aosp/jb-mr2-dev
  aosp/jb-mr2-release
  aosp/jb-mr2.0-release
  aosp/jb-mr2.0.0-release
  aosp/kitkat-cts-dev
  aosp/kitkat-dev
  aosp/kitkat-mr1-release
  aosp/kitkat-mr1.1-release
  aosp/kitkat-mr2-release
  aosp/kitkat-mr2.1-release
  aosp/kitkat-mr2.2-release
  aosp/kitkat-release
  aosp/kitkat-wear
  aosp/l-preview
  aosp/lollipop-dev
  aosp/lollipop-release
  aosp/lollipop-wear-release
  aosp/master
  aosp/tools_r22.2  

  3) git checkout -b aosp_master  aosp/master #建立本地aosp_master分支

  4) git config user.name "XXX"  #配置提交的使用者名稱和郵箱,這裡的name和email需要

                                                      和android-review.googlesource.com上使用者設定下profile中保持一致。

      git config user.emai [email protected]

  5) git add, git commit這些命令幾乎是日常就不說了,注意git log看一下提交message中一定要是

      android gerrit上的使用者資訊(name&email),不然會提交失敗,錯誤提示類似如下:

      remote: ERROR:  In commit 2a34a535511c4e4b6f6baf91b6eedca2fcb37a1a
      remote: ERROR:  committer email address [email protected]
      remote: ERROR:  does not match your user account.
      remote: ERROR:
      remote: ERROR:  The following addresses are currently registered:
      remote: ERROR:    [email protected]

  6) repo upload . --br aosp_master  # 提交到android gerrit 一路yes就可以了

  7) 在你所修改的模組中查詢該模組owner名字,在gerrit上add他們對你的code進行review

  鐺鐺....到android-review.googlesource.com上檢視你的提交已經上去啦~~

參考

相關推薦

如何提交Code到google open source android gerrit

也許你在進行android開發的時候會發現一些android原生的問題,那麼你可以提交issue到google issue網站上, 當然在提交的時候最好能先搜一下在google issue上是否已經有相關的CR已經提交過了,那麼有就可以參考 一下遇到該問題的Coder們都怎

Who is Open Source? Android O Preview 3. Kotlin for Android. And Vaadin 8!

GitHub Survey: Open Source is Raining Men! A 2017 GitHub survey of 5500 randomly selected participants, most of whom work on GitHub.com open source pro

Make an android custom view, publish and open source.

Publish your library:After finish pushing your project to GitHub, there is the last step to get done: publish it so that developers can just add dependency

AWS Marketplace: Android Open Source Project ROM Builder (HVM)

AWS Marketplace is hiring! Amazon Web Services (AWS) is a dynamic, growing business unit within Am

android-open-source 開源專案

AChartEngine is a charting library for Android applications. It currently supports the following chart types:line chartarea chartscatter charttime chartb

open source

oss tps alt -c log blog bsp image .com https://github.com/fffaraz/awesome-cpp https://notabug.org/koz.ross/awesome-c open source

Folly: Facebook Open-source Library Readme.md 和 Overview.md(感覺包含的東西並不多,還是Boost更有用)

sts series flat actions direct ports idg sha printing folly/ For a high level overview see the README Components Below is a list of (s

kafka-rest:A Comprehensive, Open Source REST Proxy for Kafka

machine cost ace def hms mas benchmark file oss Ewen Cheslack-Postava March 25, 2015 時間有點久,但講的還是很清楚的 As part of Confluent Platform 1.0

1.Linux的發展歷史以及 GNUGPL和open source

linu 公司 語言 出現 data- 嚴格 開發者 font 標準 發展歷史:20實際60年代:那時候的計算機一般只有在軍事,科研以及學術院校才能見到,不是一般人能接觸的東西。開始的時候計算機的時候的輸入靠卡片閱讀器,即程序開發者在卡片上打洞放入卡片閱讀器上輸入,在通過打

國內的source.android.com

http://source.android.youdaxue.com/   國內下載aosp原始碼方法  https://android.googlesource.com/platform/manifest換成git://mirrors.ustc.edu.cn/

Darknet: Open Source Neural Networks in C - Train a Classifier on CIFAR-10

Darknet: Open Source Neural Networks in C - Train a Classifier on CIFAR-10 Darknet is an open source neural network framework written in C and C

Darknet: Open Source Neural Networks in C - Classifying With darknet19.weights Models

Darknet: Open Source Neural Networks in C - Classifying With darknet19.weights Models Darknet is an open source neural network framework written

Open Source Vbootkit 2 0 Attack Tool for Windows 7

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

Darknet: Open Source Neural Networks in C - CIFAR-10 Dataset Mirror

Darknet: Open Source Neural Networks in C - CIFAR-10 Dataset Mirror CIFAR-10 Dataset Mirror https://pjreddie.com/projects/cifar-10-dataset-mir

C++:cannot open source file問題

最近,在一些專案中只要引用了標準C++程式碼的地方,都會報cannot open source file這樣的錯誤,比如: 查詢問題後發現,是由於Configuration Properties -> VC++ Directories -> Include Directorie

67 open source tools and resources for IoT

The idea behind open source has been around for years, long before the movement toward open source software in the late 1980s—even before

ORB-SLAM2: an Open-Source SLAM System for Monocular, Stereo and RGB-D Cameras

1 摘要 我們為單眼,立體和RGB-D相機提供完整的SLAM系統ORB-SLAM2,包括地圖重用,閉環檢測和重定位功能。 該系統可在各種環境中的標準CPU中實時工作,從小型手持室內序列,到工業環境中飛行的無人機和城市周圍的汽車。我們的後端基於捆綁調整,具有單眼和

27 iOS open source libraries to skyrocket your development.

So from my daily work on my own apps, here I’ve selected favorites from my favorites iOS open source libraries. Order of these projects is totally random,

open-source-load-testing-tools-which-one-should-you-use

https://www.blazemeter.com/blog/open-source-load-testing-tools-which-one-should-you-use Open Source Load Testing Tools: Which One Should You Use?

Open source HTML5 Charts for your website – Max的程式語言筆記

試了一下 Chart.js 效果滿好的,而且使用簡單,不會被其他的 css 給綁架,不會互相比影響。css 會被影響的是:MDB Free charts.js 使用方法是要先下載: Chart.bundle.min.js 然後再修改掉官方附的 html 就可以拿到自己想要的效果。