简体   繁体   English

使用回购下载Android源代码

[英]Android Source code download using repo

I am trying to build android from source since I need to customize something at a lower level. 我正在尝试从源代码构建android,因为我需要在较低级别上自定义某些内容。 I download the entire source code to build from scratch using the command: 我使用以下命令下载了完整的源代码以从头开始构建:

repo init -u https://android.googlesource.com/platform/manifest -b android-4.4_r1
repo sync

The size is about 26gb. 大小约为26gb。 Only then did I realize that there was a simpler way to do this since a lot of modification were required and that was already done. 只有到那时,我才意识到有一种更简单的方法可以执行此操作,因为需要进行大量修改并且已经完成了。 What i had to do was : 我要做的是:

repo init -u git://github.com/jamesonwilliams/platform_manifest.git -b android-4.4_r1.1
repo sync

Is there anyway I can use what I downloaded already . 无论如何,我可以使用已经下载的内容。 I tried issuing the above command in the same directory where I downloaded the original code form but it looks like it is starting from scratch.Any ideas? 我尝试在下载原始代码表单的同一目录中发出上述命令,但看起来好像是从头开始的。

  1. Do repo init in a new folder for android-4.4_r1.1 在Android-4.4_r1.1的新文件夹中回购init
  2. Copy .repo/projects folder from previous repo (android-4.4_r1) in to new repo's .repo/ 将先前仓库中的.repo / projects文件夹(android-4.4_r1)复制到新仓库中的.repo /
  3. Now run repo sync and it will be faster, it should only fetch delta 现在运行repo sync,它会更快,应该只获取增量

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM