- 浏览: 552068 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (204)
- android (78)
- spring MVC (10)
- spring (3)
- javascript (9)
- 喧泄 (0)
- libgdx (1)
- android View展现特效 (6)
- android.graphics.* (2)
- android ListView (4)
- android 电话及短信 (3)
- iPhone (4)
- iPhone自定义控件 (2)
- android 网文摘记 (4)
- java (30)
- android imageView (2)
- android textView EditText (1)
- 用户体验元素 (1)
- 营销推广 (3)
- android 多媒体 (4)
- android原创学习笔记 (7)
- 业余收入 (1)
- AndEngine (3)
- baidu map (3)
- android课程 (3)
- elasticsearch (1)
- freeSwitch (5)
最新评论
-
牵着蚂蚁散步:
哥,在吗,你现在操作freeswitch是用event soc ...
java esl连接freeswitch发送拨打电话<第二篇> -
白天看黑夜:
java过滤emoji字符处理,希望能帮到你http://ww ...
过滤特殊字符及表情符 -
YLCCMM:
按照楼主这样是可以页面是可以完成效果,但是后台依旧会报错打印出 ...
spring mvc CommonsMultipartResolver文件上传maxUploadSize限制大小 -
喧嚣求静:
sunshaoqun 写道二次元 写道希望能分享下.so文件编 ...
手机录音-amr -
sunshaoqun:
二次元 写道希望能分享下.so文件编译源码!求.so源码。。。 ...
手机录音-amr
- 安装Cygwin。因为repo脚本的运行必须在linux下,因此我们要安装Cygwin。Cygwin是一个在Windows平台下运行的Unix模拟环境,点击这里下载。
- 安装Cygwin的过程中可以选择要安装的包,以下是我们要安装的包:
1、Net -> curl;
2、Devel -> git* (git, git-completion, git-gui, gitk);
3、Libs -> libreadline6, libiconv2;
4、Editors -> vim
5、Python -> python。 -
$ mkdir ~/bin $ PATH=~/bin:$PATH
-
4$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo
-
$ mkdir WORKING_DIRECTORY $ cd WORKING_DIRECTORY
$ repo init -u https://android.googlesource.com/platform/manifest
To check out a branch other than "master", specify it with -b:
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
-
Getting the files
To pull down files to your working directory from the repositories as specified in the default manifest, run
-
$ repo sync
按照上面的方法,下载时,可能报连接超时,这是因为,android源码,默认下载是用匿名方式的,google为了某种性能和管理目的,做了限制,像一 般的,动态公网IP就 可能下载不了。为此,google提供了认证方式下载。
Using authentication
By default, access to the Android source code is anonymous. To protect the servers against excessive usage, each IP address is associated with a quota.
When sharing an IP address with other users (e.g. when accessing the source repositories from beyond a NAT firewall), the quotas can trigger even for regular usage patterns (e.g. if many users sync new clients from the same IP address within a short period).
In that case, it is possible to use authenticated access, which then uses a separate quota for each user, regardless of the IP address.
The first step is to create a password from the password generator and to save it in ~/.netrc
according to the instructions on that page.
The second step is to force authenticated access, by using the following manifest URI: https://android.googlesource.com/a/platform/manifest
. Notice how the /a/
directory prefix triggers mandatory authentication. You can convert an existing client to use mandatory authentication with the following command:
$ repo init -u https://android.googlesource.com/a/platform/manifest
第四步:
- 参考来源:
- http://source.android.com/source/downloading.html
- http://www.2eggs.org/?p=97
- http://www.cnblogs.com/mandroid/archive/2011/06/06/2073473.html
- http://blog.rexzhao.com/2011/11/29/Google-Code-set-netrc.html
http://my.oschina.net/armsky/blog/55644?p=1#rpl_267635548
评论
machine android.googlesource.com
login git-xxxx.gmail.com
password 1/xeyniDN1qln7w_P-bQ2vTD71_wyX_6G7aXOvYPkSuYc
machine android-review.googlesource.com
login git-xxx.gmail.com
password 1/xeyniDN1qln7w_P-bQ2vTD71_wyX_6G7aXOvYPkSuYc
也就是用来,使用认证方式下载源码时,不用我们手动输入密码和账号,自动到.netrc文件找了,
文件内容,需要google账号才能生成。
Git是面向Linux内核管理的一个工具,它是一种分布式的版本控制系统,即每一个工作目录下都是一个完整的仓库,因此也支持离线工作, 在本地提交后,便会稍后更新到服务器上。它这种结构比集中式版本控制系统(如常见的SVN、CVS等只有一个完整仓库)更加健壮。
2、repo
其实repo只是用Python编写的一个脚本,它是为了更好、更方便地管理Android操作系统下多个组成部分,如Kernel、Dalivk、Bionic、prebuild、build等多个项目。repo的目的就是为了统一管理这些项目,简化Git的使用过程。
3、curl
curl是一个利用URL语法在命令行模式下的文件传输工具。这里我们用它来获取repo脚本。
发表评论
-
Android动态改变shape填充颜色
2017-04-10 16:19 1629工作中需要依据不同的银行卡显示不同背景,由于银行很多,不可能 ... -
android studio源码关联
2016-12-19 11:36 669在android stuido开发工具中,源码的关联是依据当 ... -
仿支付宝广告-顶部往下掉的popwindow,消失在左上角
2016-09-13 16:43 2030最近玩支付宝,有时候打开时,会从顶部掉下一个营销的广告窗口, ... -
圆形进度条-倒计时
2016-09-08 15:28 841参考了:https://github.com/yanz ... -
Android 6.0 运行时权限处理完全解析-兼容
2016-07-21 10:12 4581.项目增加V7包,*Activity extends Ap ... -
安卓自定义进度条样式-layer-list
2016-07-06 09:32 1409//在开发中常用到的知识点,太多了,记不住,只能放网上做笔记 ... -
转载-Android系统支持的CPU架构
2016-06-30 10:12 4634原文链接 早期的Android系统几乎只支持ARMv5的C ... -
安卓通用baseAdapter数据适配器
2016-06-29 16:28 665用法 topFourFuncAdapter=new Ab ... -
android 编译dex,方法数限制65536
2016-06-21 15:40 1135产生原因,大致是android在编译dex后,进行优化时,使 ... -
android 5.1模拟器安装apk报INSTALL_FAILED_NO_MATCHING_ABIS
2016-06-12 16:08 2985android 5.1模拟器安装apk报INSTALL_FA ... -
android 自定义软键盘-转载
2016-06-08 15:45 741场景: 1.支付控件时,需要随机布局软键盘 2. 电视机 ... -
html5-android-转载
2016-05-26 20:32 626(上)包括Android设备多分辨率的问题,Android中 ... -
android代码编写ColorStateList
2015-12-26 16:48 900private void initViews() { ... -
Android资源图片读取机制-转载
2015-11-09 20:42 844在新建一个Android项目时,在res目录下会自动生成几个 ... -
移动端h5开源框架
2015-09-23 10:44 7040Amaze UI 含近 20 个 CSS 组件、20 ... -
Android基于volley的快速开发基类
2015-08-29 10:02 1522Volley框架至2013面试以来,已经普及了很多andro ... -
android QQ互联第三方登录开发
2015-08-26 17:14 4075android QQ互联第三方登录开发 背景: 当前基 ... -
android array.xml中使用图片和颜色资源
2015-08-23 11:17 3056<?xml version="1.0& ... -
开源新闻客户端QuickNews学习
2015-08-20 14:11 2384开源新闻客户端QuickNews学习 先贴出源码地址 h ... -
转载-ViewPagerindicator 源码解析
2015-08-12 20:27 794ViewPagerindicator 源码解析
相关推荐
windows下eclipse集成cygwin编译android_NDK.doc
本文档主要总结了cygwin结合android NDK的应用
OpenSSH for windowsxp和Windows2003下载 The Cygwin team has updated the cygwin package and deprecated support for various Windows versions over time. The below table shows the Windows version with the ...
Cygwin XP 安装文件,最后一个支持XP的Cygwin版本。 2016-04-25 2.874 setup-x86-2.874.exe MD5:8ec48797b1bdb5c98eb1ba501b44e8cc windows xp sp3下新测可用
windows版本的cygwin,可以在windows环境下使用该工具模拟linux环境
redis for Windows 7.0.7 使用cygwin编译的64位 redis微软官方的版本太旧了,此为我自己使用Cygwin编译的最新版 注意:这不是官方提供的版本
详细介绍windows下,下载安装cygwin进行搭建hadoop开发环境过程。
windows下安装Cygwin指南含安装包
cygwin xp离线安装包 解压缩以后按步骤安装,最新XP支持的版本2.874
使用cygwin编译的gdb的源码,生成gdb.exe使用。window 版本gdb.exe
在Windows下利用cygwin仿unix环境安装配置Hadoop
windows平台下cygwin搭建hadoop,不错的资料欢迎下载
仔细讲述了cygwin安装的过程 android 源码下载的步骤 以及ndk编辑的过程,此文档是目前截止今天最完整的
在Windows下本地安装Cygwin,在Windows下本地安装Cygwin
费了好大的劲才安装成功,希望对有需要的人有所帮助!
cygwin+ndk编译openssl源码库 for Android
Windows下的SSH安装之Cygwin
android NDK 安装必备 Cygwin
Android 官方建议使用Python脚本 repo 来管理代码,并且建议在Linux下执行该脚本。 大部分人其实都不会去修改Android代码,仅仅是想下载来看看...如果下载过程中网络不好而中断,还可以多次执行该脚本,直到成功为止。