简体   繁体   中英

Android Source code download using repo

I am trying to build android from source since I need to customize something at a lower level. 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. 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
  2. Copy .repo/projects folder from previous repo (android-4.4_r1) in to new repo's .repo/
  3. Now run repo sync and it will be faster, it should only fetch delta

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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