May 2017
Beginner to intermediate
470 pages
10h 49m
English
If you refer to the article from the Google website about downloading the source, you can find a section called Using a local mirror. It reveals that if you need two different configurations of the AOSP build environment, the download for two clients is larger than the size of a full mirror of the repository. It is very simple to set up a mirror as follows:
$ mkdir -p /usr/local/mirror/aosp$ cd /usr/local/mirror/aosp$ repo init -u https://android.googlesource.com/mirror/manifest --mirror$ repo sync
From the preceding commands, we can see that we actually use a different manifest to create a mirror. If we look at the content of the manifest for a mirror, we can see the following XML code:
<?xml version="1.0" ...
Read now
Unlock full access