repo/git Android/CyanogenMod srouce code

For getting the whole Android/CM rom source code,
1. get the repo first.
2. make sure the git is installed.

1. how to get the repo:
http://source.android.com/source/downloading.html#installing-repo
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
2. how to install git (Ubuntu):
apt-get install git-core git-svn gitk git-gui git-email gnupg

** other tools
sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl valgrind

** For Android rom:
repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.1_r1 (the whole build)
** For CM rom:
https://github.com/CyanogenMod/android // Click "Fork" button, and copy the "HTTPS clone URL" for git.
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.0    // Cm12的代码, 基于android5.0

repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0    // Cm11的代码, 基于android4.4, 大于23.4 GB

** Related URL:
https://github.com/username/android
http://source.android.com/source/using-repo.html

** Related Git:
git clone https://github.com/username/android_frameworks_native.git
git clone https://github.com/username/android.git
git clone https://android.googlesource.com/platform/prebuilt.git (but too big, 2.04GB)

参考文章:

http://my.oschina.net/tonywolf/blog/49214  //设置ndk, 编译环境Cygwin工具搭建及配置, 但android-ndk-r7b(自带toolchain, 不需要装cygwin)。

http://winuxxan.blog.51cto.com/2779763/502340  //Android环境搭建3 编译Android源码

http://bach-dream.iteye.com/blog/1278  //GitHub使用(二)-- 从代码库下载代码到本地

http://conifertw1.blogspot.com/2014/10/build-android-source-codes.html  //Build Android source codes (looks on Mac PC)

** Sample for fetch CM 11 source code:

[email protected] ~/test
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24081  100 24081    0     0  14071      0  0:00:01  0:00:01 --:--:-- 19264

[email protected]-PC ~/test
$ chmod a+x ~/bin/repo

[email protected]-PC ~/test
$ PATH=~/bin:$PATH

or edit ~/.profile file
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi
$ source ~/.profile


[email protected]-PC ~/test
$ git config --global user.email  "[email protected]"

[email protected]-PC ~/test
$ git config --global user.name "xxxxxx"

[email protected]-PC ~/test
$ repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0

Your identity is: xxxxxx <[email protected]>
If you want to change this, please re-run 'repo init' with --config-name

Testing colorized output (for 'repo diff', 'repo status'):
  black    red      green    yellow   blue     magenta   cyan     white
  bold     dim      ul       reverse
Enable color display in this user account (y/N)? y

repo has been initialized in /home/xxxxxx/test

[email protected]-PC ~/test
$ ls -al
total 8
drwxr-xr-x+ 1 xxxxxx None 0 Mar 19 00:43 .
drwxr-xr-x+ 1 xxxxxx None 0 Mar 19 00:46 ..
drwxr-xr-x+ 1 xxxxxx None 0 Mar 19 00:46 .repo
[email protected]-PC ~/test
$ repo sync

 

更多相关文章
一周排行
  • 


    		    通過注冊表去除Window XP桌面圖標下的底色(陰影)
    桌面上的图标下有底色,见下图: 正常桌面图标: 方法: 1.在桌面空白处右键→→-排列图标
  • 


    		    輕量級keepalive實現高可用和熱備系列一之WEB服務的簡單高可用
    一.keepalive软件概述: 那么什么是keepalived呢?keepalived见
  • 学习网络知识的最多的教材要属思科的网络工程师认证,CCNA,CCNP,CCIE等,无论你是否考证,思科的认证课程和相关的书籍.视频,在网上一搜一大把,鸿鹄论坛视频教程和视频讲座是个不错的地方,经常有免费的yy视频讲堂
  • 直接在终端用 root 安装 Shadowsocks 官方客户端apt-get install python-pip -ypip install shadowsocks然后编辑 /etc/shadowsocks.js
  • Esper介绍 Esper是一个Java开发并且开源的轻量级和可扩展的事件流处理和复合事件处理引擎,并提供了定制的事件处理语言(EPL). 应用场景 某个用户在请求登录服务时,n秒内连续m次未登录成功,可视为该ip在
  • 昨天遇到要求,要在asp文件中注入一段js代码,感觉不难,不过搞了挺久的,最后结果居然如此简单... 1 protected void Page_Load(object sender, EventArgs e) 2 ...
  • 1:向表中添加字段 Alter table [表名] add [列名] 类型 2:  删除字段 Alter table [表名]  drop column [列名] 3:  修改表中字段类型 (可以修改列的类型,是否
  • 修改数据库实例的启动参数 然后修改SQLServer启动参数,打开SQLServer configuration manager,然后选择服务实例,点击右键属性,查看实例的属性界面,然后启动参数选项输入- T272,
  • top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源使用情况. top – 1 up 3, 1 user, load average: 0.00, 0.00, 0.00 T
  • 


    		    Apache模塊 mod_headers
    说明 允许通过配置文件控制任意的HTTP请求和应答头信息 状态 扩展(E) 模块名 hea