Coder Social home page Coder Social logo

android_external_mokee_servercontroller's Introduction

如何贡献机型下载界面数据

——————————————————

准备:

------------------

##一 、准备折腾环境

  • 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
不是怎么办?改呗~ 最终效果如下: mac icon

##二、更新机型数据

  • 1、素材准备 1⃣️机型图片  cancro demo (推荐分辨率:109*124)

    2⃣️机型参数

处理器(): 内存容量: 存储容量: 电池容量: 屏幕信息: 处理器架构:

  • 2、更新device.php和图片
    • ①进入 源码目录/external/mokee/ServerController 打开device.php(建议使用sublime,notepad++等)

    • ②在$devices_info中找到自己机型的代号 // 'model'是机型代号 'name'是机型全称 下步请使用'model' demo3

    • ③在$hardware_info中更新自己的机型,代码规范如下

   // ('model name'填写上步获取的‘model’,cpu后面的''填写cpu型号)
	'model name' => array('cpu' => '',		               
   // (ram后面的''填写机器内存大小)         
     'ram' => '',	
   // (rom后面的''填写机器的存储容量) 			
   	 'rom' => '',							   
   //  (battery后面的''填写机器的电池容量)		
     'battery' => '',	
   //  (display后面的''填写机器的屏幕信息)	
     'display' => '',  	
   //  (cpuarch后面的''填写处理器架构)
     'cpuarch' => ''),		

效果如高亮部分
demo5

④加入图片 进入 /static/images/,将已准备好的机型图片重命名为model.png

// (model是前面获取的机型代号,且图片必须是PNG PNG PNG)

##三、上传,提交代码审核

  • 修改成功后提交gerrit服务器审核 git add <path> //path是你修改过的文件 git commit -a -m"修改内容说明,请使用英文"

  • 上传到服务器等待审核 repo upload

到此为止,所有的工作已经做完,如果修改符合规范,则会合并至主代码分区,不久你就可以看到自己的贡献啦

撰写者:ray 微博:329ray(若发现文档中的不足,可提交issue或私信我)

android_external_mokee_servercontroller's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.