android-6.0源码下载

本文详细介绍了在Ubuntu 14.04环境下搭建Android源码编译环境的步骤,包括环境准备、工具安装、配置git、下载repo工具、初始化及同步源码等关键过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

第一次使用,写的不好。

1、环境准备:ubuntu-14.04.2-desktop-amd64.iso + VMware Vorkstation 11.1.0

2、工具准备:git和curl,通过一下命令获取
sudo apt-get install git-core curl

3、配置git环境

git config --global user.email “test@test.com”
git config --global user.name “test”

其中test@test.com为你自己的邮箱,也可以随便写。

4、下载repo

mkdir ~/bin
PATH=~/bin:$PATH
curl -sSL  'https://gerrit-googlesource.proxy.ustclug.org/git-repo/+/master/repo?format=TEXT' |base64 -d > ~/bin/repo
chmod a+x ~/bin/repo

5、新建一个源码目录

mkdir android_source
cd android_source

6、vi ~/bin/repo
修改REPO_URL改为’https://gerrit-googlesource.proxy.ustclug.org/git-repo

7、初始化仓库也可以指定Android版本

repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b android-6.0.1_r81 

8、同步源码树

repo sync

Android版本:http://mirrors.ustc.edu.cn/aosp/platform/manifest.git/refs/heads/

参考文档:
Android国内源码下载——亲测成功
https://blog.youkuaiyun.com/sinat_34677820/article/details/78328708
自己动手编译Android源码(超详细)
https://blog.youkuaiyun.com/weixin_34327223/article/details/85878256
AOSP(Android) 镜像使用帮助
https://lug.ustc.edu.cn/wiki/mirrors/help/aosp

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值