android代码下载

高通平台Android开源代码下载 一、环境准备 1、安装Ubuntu系统 2、进入桌面系统后可通过按alt+F2 , gnome-terminal开启一个terminal窗口 3、安装下载环境: 1)下载git sudo apt-get install git-core 2)安装curl sudo apt-get install git-core curl 3)安装repo, 通过curl下载repo Mak 阅读详情

To install Repo:

1.   

Makesure you have a bin/ directory in your home directory and that it is includedin your path:

2.   

$ mkdir ~/bin
$ PATH=~/bin:$PATH

3.   

4.   

Downloadthe Repo tool and ensure that it is executable:

5.   

$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
 
 
 
error:

you can try:curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" >~/bin/repo  

 

 

 

 

 

 

6.   

For version 1.17, the SHA-1 checksum for repois ddd79b6d5a7807e911b524cb223bc3544b661c28

For version 1.19, the SHA-1 checksum for repois 92cbad8c880f697b58ed83e348d06619f8098e6c

For version 1.20, the SHA-1 checksum for repois e197cb48ff4ddda4d11f23940d316e323b29671c

For version 1.21, the SHA-1 checksum for repois b8bd1804f432ecf1bab730949c82b93b0fc5fede

For version 1.22, the SHA-1 checksum for repois da0514e484f74648a890c0467d61ca415379f791

Initializinga Repo client

 


After installing Repo, set up your client toaccess the Android source repository:

1.   

Createan empty directory to hold your working files. If you're using MacOS, this hasto be on a case-sensitive filesystem. Give it any name you like:

2.   

$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY

3.   

4.      

Run repo init to bring down the latest versionof Repo with all its most recent bug fixes. You must specify a URL for themanifest, which specifies where the various repositories included in theAndroid source will be placed within your working directory.

5.      

$ repo init -u https://android.googlesource.com/platform/manifest
 
errer:

fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle  

fatal: error [Errno 101] Network is unreachable 

you can try:

1,  先按官网的步骤一步步执行  

2,当遇到上述问题后,用浏览器登录https://android.googlesource.com/new-password,并用gmail帐号登录;  

3, 点击网页上的“允许访问”,得到类似的结果:  

   

machine android.googlesource.com login git-<userName>.gmail.com password <password>  machine android-review.googlesource.com login git-<userName>.gmail.com password <password>  

 将上边的两行追加到~/.netrc文件结尾。(如果你的linux系统中从来没有建立过此文件,就在home目录下建立.netrc文件,将上面的信息加到新建的文件中去),  

4,下载地址的URI更改为https://android.googlesource.com/a/platform/manifest(中间加上了“/a”)。  

   

因为访问基本是匿名的,为了防止连接过多,对同一IP地址的连接数做了一定的限制。用gmail帐号进行认证。  

在公司网络内或者用虚拟机下载的话,会经常遇到这问题。 

6.      

 

7.      

$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1

8.      

9.      

Whenprompted, configure Repo with your real name and email address. To use theGerrit code-review tool, you will need an email address that is connected witha registered Googleaccount. Make sure this is a live address atwhich you can receive messages. The name that you provide here will show up inattributions for your code submissions.

10.   

A successful initialization will end with amessage stating that Repo is initialized in your working directory. Your clientdirectory should now contain a .repo directorywhere files such as the manifest will be kept.

Downloadingthe Android Source Tree

 


To pull down the Android source tree to yourworking directory from the repositories as specified in the default manifest,run

$ repo sync
error:
fatal: '../platform/abi/cpp.git' does not appear to be a git repository fatal: Could not read from remote repository.
 
You can try:
打开.repo目录下的manifest.xml文件(命令vim manifest.xml)并找到fetch属性,在我的文件中显示fetch="..",将fetch修改为fetch="git://Android.git.linaro.org/",保存并退出

The Android source files will be located inyour working directory under their project names. The initial sync operationwill take an hour or more to complete. For more about repo sync and other Repo commands, seethe Developing section.

UsingAuthentication

 


By default, access to the Android source codeis anonymous. To protect the servers against excessive usage, each IP addressis associated with a quota.

When sharing an IP address with other users(e.g. when accessing the source repositories from beyond a NAT firewall), thequotas can trigger even for regular usage patterns (e.g. if many users sync newclients from the same IP address within a short period).

In that case, it is possible to useauthenticated access, which then uses a separate quota for each user,regardless of the IP address.

The first step is to create a passwordwith the password generator andfollow the instructions on the password generator page.

The second step is to force authenticatedaccess, by using the following manifest URI:https://android.googlesource.com/a/platform/manifest.Notice how the /a/ directoryprefix triggers mandatory authentication. You can convert an existing client touse mandatory authentication with the following command:

$ repo init -u https://android.googlesource.com/a/platform/manifest

Troubleshootingnetwork issues

 


When downloading from behind a proxy (which iscommon in some corporate environments), it might be necessary to explicitlyspecify the proxy that is then used by repo:

$ export HTTP_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
$ export HTTPS_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>

More rarely, Linux clients experienceconnectivity issues, getting stuck in the middle of downloads (typically during"Receiving objects"). It has been reported that tweaking the settingsof the TCP/IP stack and using non-parallel commands can improve the situation.You need root access to modify the TCP setting:

$ sudo sysctl -w net.ipv4.tcp_window_scaling=0
$ repo sync -j1

Usinga local mirror

 


When using several clients, especially insituations where bandwidth is scarce, it is better to create a local mirror ofthe entire server content, and to sync clients from that mirror (which requiresno network access). The download for a full mirror is smaller than the downloadof two clients, while containing more information.

These instructions assume that the mirror iscreated in /usr/local/aosp/mirror.The first step is to create and sync the mirror itself. Notice the --mirror flag, which can be specified onlywhen creating a new client:

$ mkdir -p /usr/local/aosp/mirror
$ cd /usr/local/aosp/mirror
$ repo init -u https://android.googlesource.com/mirror/manifest --mirror
$ repo sync

Once the mirror is synced, new clients can becreated from it. Note that it's important to specify an absolute path:

$ mkdir -p /usr/local/aosp/master
$ cd /usr/local/aosp/master
$ repo init -u /usr/local/aosp/mirror/platform/manifest.git
$ repo sync

Finally, to sync a client against the server,the mirror needs to be synced against the server, then the client against themirror:

$ cd /usr/local/aosp/mirror
$ repo sync
$ cd /usr/local/aosp/master
$ repo sync

It's possible to store the mirror on a LAN serverand to access it over NFS, SSH or Git. It's also possible to store it on aremovable drive and to pass that drive around between users or betweenmachines.

 

else

Only dowload kernel:

git clone https://android.googlesource.com/kernel/msm

git branch -a

我们选择使用的android5.1 ,所以

git checkout  remotes/origin/android-msm-shamu-3.10-lollipop-mr1

Android 源码下载(详细版) 经典好文推荐,通过阅读本文,您将收获以下知识点:一、下载AOSP前的准备二、国内网络下 clone 清华大学开源软件镜像三、编写Python脚本,开始下载android-10.0.0_r40 源码四、源码下载工具包五、参考文献。 阅读详情

相关推荐

联想Win10改Win7设置BIOS指南

通过本文的指南,你应该能够成功地在联想Win10电脑上设置BIOS以支持Windows 7的安装和运行。尽管Windows 10提供了许多现代化的功能和改进,但如果你因特定需求而更倾向于使用Windows 7,那么本文提供的步骤将帮助你顺利实现这一转换。请记住,在更改操作系统前务必做好充分的准备工作,并在安装过程中保持耐心和细心。祝你安装顺利!

mmoo_python的博客 2042

android原生代码下载方法

2、 修改为国内的源,修改~/.bashrc文件,末尾添加如下代码。完成后可以看到如下信息。

jiong_1的博客 1396

睿思综述智能体:100篇高质量文献一键生成万字长文,还能联网PubMed,科研效率拉满!

对一个主题进行文献综述,是日常科研人绕不过去的工作,无论是写论文前言,综述论文,或者基金申请书的立项依据,需要根据主题,从海量文献中提取相关信息,梳理出清晰的逻辑线,再组织成流畅的文字。4 一键生成万字全文:大纲确认后,它会基于对所有论文的深度理解,逐个章节进行详细撰写,最终生成一篇逻辑连贯、内容翔实、引用规范的万字综述长文,并直接保存为Word(.docx)文件。3 智能撰写大纲:你可以提供自己的大纲,也可以让它根据所有文献内容,智能生成一个逻辑清晰的综述大纲,并支持你在此基础上修改。

dinaxuejie的博客 822

Android系统源代码下载

原文地址:http://www.cnblogs.com/mandroid/archive/2011/06/06/2073473.html http://source.android.com/source/downloading.html 最新android地址 一、概述 众所周知,Android移动操作系统是Google花费了很大的财力、物力及人力的前提下,推广到世界各个角落,以开放源代...

455

NX二次开发编译时dll自动数字签名及拷贝

在UG5.0开始,所有基于UG二次开发的DLL都要“签名”后才能被客户端上正版的NX调用。

菜鸟爱飞不飞的博客 2686

服务器测试之网卡性能调优

nvidia下载mlnx_ofed:https://network.nvidia.com/products/infiniband-drivers/linux/mlnx_ofed/intel下载驱动固件:https://www.intel.com/content/www/us/en/download-center/home.html。然而,你可以根据实际情况手动调整中断相关配置。老生常谈了,一些性能相关的设置项打开,节能的关闭,虚拟化相关的VMX/SR-IOV/IOMMU最好也都关掉。

qq_41897488的博客 4912

【Android】系统源码下载及编译

指的是特定功能的组合的特定名称,即表示编译出的镜像可以运行在什么环境,例如 aosp_arm64-eng 中的 aosp(Android Open Source Project) 代表 Android 开源项目,arm 表示系统是运行在 arm 架构的处理器上的,arm64 则是指 64 位 arm 架构处理器。:编译目标的格式是 BUILD-BUILDTYPE ,如 aosp_arm64-eng 这个目标,它的 BUILD 是 aosp_arm64,BUILDTYPE 是 eng。

yang553566463的博客 4390

筑基篇第9节:CUDA内存管理API进阶

CUDA多维内存管理与零拷贝技术 本文介绍了CUDA中高效处理多维数据的内存管理技术。对于二维数据,使用cudaMallocPitch可确保内存对齐访问,提升75%的带宽利用率;三维数据则通过cudaMalloc3D实现切片对齐。配套的cudaMemcpy2D/3D函数能高效处理数据拷贝。此外,零拷贝内存技术允许内核直接访问主机内存,避免显存拷贝开销。这些技术对图像处理、科学计算等应用至关重要,能显著提升多维数据处理的性能。

PeterPan的博客 83

Android代码下载编译调试简介

复制这些内容,粘贴到对应gerrit上的SSH Public Keys中。2:然后会让你输入两次密码,最后出现。经过以上的配置,此时就可以下载代码了。lunch根据项目选择对应的序号。资源管理的一个工具,所以在安装。3:此时在主目录下执行la,将密钥添加到对应gerrit。:然后在用户主目录新建一个。过滤两个及两个以上的关键字。

weixin_41028555的博客 275

Keil uVision5 STM32 startup_stm32f10x_md_vl.s error A3906U Malformed via file target not created..

🏆 本文收录于《全栈Bug调优(实战版)》专栏,致力于分享我在项目实战过程中遇到的各类Bug及其原因,并提供切实有效的解决方案。无论你是初学者还是经验丰富的开发者,本文将为你指引出一条更高效的Bug修复之路,助你早日登顶,迈向财富自由的梦想🚀!同时,欢迎大家关注、收藏、订阅本专栏,更多精彩内容正在持续更新中。让我们一起进步,Up!Up!Up!    备注: 部分问题/难题源自互联网,经过精心筛选和整理,结合数位十多年大厂实战经验资深大佬经验总结所得,数条可行方案供所需之人参考。

**My Coding Family** 2788

Claude Code 从入门到精通,通过实战项目穿插 Agent Skills、MCP、Hooks、子代理、插件等十五个知识点

本文介绍了Claude Code的高级使用技巧,通过一个个人简历网站实战项目,详细讲解了15个核心知识点。主要内容包括:三种权限模式(默认/编辑/计划)的使用与切换;历史会话管理(/resume、/rename、/clear命令);会话回滚功能(/rewind);以及危险参数--dangerously-skip-permissions的注意事项。文章还演示了如何通过计划模式拆分代码文件,并强调了在复杂任务中仔细检查规划步骤的重要性。这些技巧能帮助开发者更高效地使用Claude Code完成项目开发。

1793

下载安卓最新源代码

谷歌发布了安卓L的源代码,据说是Google历史上最深入的版本更新。虽然咱不搞安卓但是看看源代码还是蛮有意思的。 于是就想把源代码下载下来,项目开源的主页https://android.googlesource.com/?format=HTML 有一个下载说明,但是后面有个name是下面对应的每个文件夹子项,这个总不能一个一个的填写吧。 很简单,到页面的最下部找到一个写着txt的标...

aittcfvm97105的博客 151

扰动观察法MPPT控制器simulink仿真

最大功率点跟踪(MPPT)控制器对于光伏(PV)系统至关重要,因为它可以确保系统在所有操作条件下都能从光伏阵列中提取最大功率。扰动观察法(P&O)是一种广泛使用的MPPT算法,因为它简单且易于实现。本文介绍了P&O MPPT控制器的Simulink仿真,并分析了其性能。

qq_59747472的博客 320

高通android开源代码下载,高通平台开源代码下载

1、进入codeaurora主页,https://www.codeaurora.org/2、选择【Projects】 -> 【Active Projects(Gerrit Repo)】 3、进入https://www.codeaurora.org/project-category/active-projects 4、找到【Android for MSM Project】,点击进入https:...

weixin_42525328的博客 1707

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

如何下载安卓源代码

 如何下载安卓源代码   基于ubuntu11.04系统了: android系统源码(包括sdk源码)的下载主要是需要用到git工具,关于git工具的使用我会抽空专门介绍,这里用到的时候简略说明一下。 1.安装git和curl 命令: $sudo apt-get install git-core curl 说明:

tt525519836的专栏 2675

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

android程序内下载文件,android文件下载代码 android程序 里如何编写下载代码

android开发文件下载在手机报错package cc.download; import android.app.Activity;import android.os我比任何人都懂你不会真的陪我到最后,所以宁愿比你先走,哪怕再痛。这个问题我以前碰到过,当时是由于手机中的金山安全卫士将我们的程序禁止使用网络造成的。分享android开发中的实现上传与下载的代码,最好可以下载图片核心代码: prot...

weixin_34138585的博客 743

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

编译android 机器要求,安卓系统源代码下载及编译的环境要求

Before you download and build the Android source, ensure yoursystem meets the following requirements:下载和编译安卓源代码之前,确保你的系统满足以下要求A Linux or Mac system. It is alsopossible to build Android in a virtual ma...

weixin_35846141的博客 937

android下载源代码

原文链接https://source.android.com/source/downloading.html 下载源代码 Android 源代码树位于由 Google 托管的 Git 代码库中。Git 代码库中包含 Android 源代码的元数据,其中包括与对源代码进行的更改以及更改日期相关的元数据。本文档介绍了如何下载特定 Android 代码流水线的源代码树。 要从特定设备的出厂映像开始,请参阅选择设备版本。 安装 Repo Repo 是一款工具,可让您在 Android 环境...

michael1112的专栏 1413

android文件下载代码,Android代码实现文件下载

import android.os.Environment;import androidx.annotation.NonNull;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import okhttp3.Call;import ok...

weixin_42527464的博客 368

Android最新代码下载(windows平台直接下载)

 Android作为一个十分火爆的开源系统,在开发应用的过程中难免要了解一下它的源代码,这样的话,才能更深层次地掌握和了解其原理,才能制作出更适合自己的东西,这里我们介绍一下在Windows平台上直接下载代码(其实在linux环境下更方便下载)。     1、下载及安装Git: Android源代码是通过一个开源的分布式版本控制软件Git,在Windows平台也有相应软件,可访问:http://code.google.com/p/msysgit/ 来下载最新版本Git工具。下载完成后,即可按默认设置来安装G

宁静致远 2100

使用Git下载Android源代码

使用Git下载Android源代码 除此之外,我们就不得不在计算机上安装Git,然后手动下载源代码。如果有Linux发行版本,可以按照http://source.android.com的文档说明下载最新源代码。 如果使用Windows操作系统,那么下载源代码的过程会是一个挑战。首先,必须要安装Git,然后使用它下载想要的Android源码包。 说明 关于使用Git下载Androi

11:00 啦 1255

如何在Windows上使用GIT下载Android源代码

在http://code.google.com/p/msysgit/downloads/list下在msysgit.我使用的版本是:     msysGit-fullinstall-1.6.4-preview20090729.exe.     安装后,会启动一个类似Linux Shell的窗口.譬如我想把dalvik代码下载到d:/android:     mkdir /d/android

Richard.Dai的专栏 589

Android源代码 之 下载源代码

Android源代码存储在Google的Git 仓库里。所以下载Android源代码其实是执行一些Git的操作。 1.下载Repo(假设Android源代码的文件夹是~/AndroidSource,其子文件夹为tool,将repo下载到tool中) Repo是一个python脚本,一...

chuanjiaoxie1663的博客 543

Window7系统用git下载安卓源代码

这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入 欢迎使用Ma...

nfclwnihcb的博客 259
下一篇: repo sync问题
Knight_RUI
博客等级 码龄11年 0粉丝 3原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值