Android源码 国内

【国内下载Android系统源码的方法】_android 源码下载 国内-CSDN博客

二、在ubuntu内下载Adroid系统源码:
1.安装vm-tools:sudo apt-get install open-vm-tools-desktop
2.下载接下来要用到的工具:
sudo ln -s /usr/bin/python3 /usr/bin/python
apt install curl
apt install repo
apt install vim
apt install git
3.创建bin目录并准备下载:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
4.修改bashrc文件
vim ~/.bashrc
增加export REPO_URL=‘https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/’
5.将repo内的google源替换成国内edu的
vim ~/bin/repo
替换
REPO_URL = ‘https://gerrit-google.tuna.tsinghua.edu.cn/git-repo’
6.创建source文件并做拉取初始化:
mkdir source
cd source
export REPO_URL=‘https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/’
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest(这个是默认拉取最新android版本的源码下来,如果你要指定版本,可以-b,然后接版本名;比如:repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-12.0.0_r9)
7.同步源码下来:
repo sync

然后等下完即可,很慢,要几个钟
 

相关推荐

  1. Android 国内

    2024-03-26 18:54:02       21 阅读
  2. android-android目录

    2024-03-26 18:54:02       29 阅读
  3. Android下载流程

    2024-03-26 18:54:02       46 阅读
  4. android 环境配置

    2024-03-26 18:54:02       16 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-26 18:54:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-26 18:54:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-26 18:54:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-26 18:54:02       20 阅读

热门阅读

  1. Linux-各接口速率统计

    2024-03-26 18:54:02       18 阅读
  2. unity 2d范围检测:怪物检测范围

    2024-03-26 18:54:02       17 阅读
  3. 论低代码如何适配小程序开发

    2024-03-26 18:54:02       18 阅读
  4. npm安装yarn和pnpm

    2024-03-26 18:54:02       20 阅读
  5. 前端理论总结(html5)——meta标签作用/SEO优化

    2024-03-26 18:54:02       18 阅读
  6. 算法-排序,查找

    2024-03-26 18:54:02       18 阅读