——————————————————
- gerrit账号
- mokee open source源码
- 一台能上网的linux或mac
------------------
##一 、准备折腾环境
-
1、执行repo init和repo sync同步代码
repo init -u https://github.com/MoKee/android.git -b mkl-mr1
repo sync
-
2、修改前建立分支
repo start [分支名] --all
-
3、git配置
git config --global user.name
git config --global review.review.mfunz.com.username
git config --global user.email
举例说明: 你的PC的用户名,也就是xxx@localhost前面是xxx
那么你git config --global user.name 就得是 xxx
git config --global user.email 就得是xxx@xxx
Gerrit的帐号必须是xxx
Gerrit邮箱必须是xxx
不是怎么办?改呗~ 最终效果如下:
##二、更新机型数据
处理器(): 内存容量: 存储容量: 电池容量: 屏幕信息: 处理器架构:
- 2、更新device.php和图片
// ('model name'填写上步获取的‘model’,cpu后面的''填写cpu型号)
'model name' => array('cpu' => '',
// (ram后面的''填写机器内存大小)
'ram' => '',
// (rom后面的''填写机器的存储容量)
'rom' => '',
// (battery后面的''填写机器的电池容量)
'battery' => '',
// (display后面的''填写机器的屏幕信息)
'display' => '',
// (cpuarch后面的''填写处理器架构)
'cpuarch' => ''),
④加入图片 进入 /static/images/,将已准备好的机型图片重命名为model.png
// (model是前面获取的机型代号,且图片必须是PNG PNG PNG)
##三、上传,提交代码审核
-
修改成功后提交gerrit服务器审核
git add <path> //path是你修改过的文件
git commit -a -m"修改内容说明,请使用英文"
-
上传到服务器等待审核
repo upload
撰写者:ray 微博:329ray(若发现文档中的不足,可提交issue或私信我)