how to use local mirror - HybridOS/Document GitHub Wiki

Using Local mirror to speed your developing

Due to network bandwidth poor, so we set a local android Source code mirror server to speed our downloading;

Only need the following a few simple steps can be done:

  • First step:
 repo init -u $URL -b $BRANCH
 eg:
 repo init -u git://192.168.1.69/android-x86-mirror/manifest -b lollipop-x86

change root to source code directory and edit .repo/manifest.xml file

use the URL as below:

 fetch="git://192.168.1.69/android-aosp/mirror" />

Disable googlesource URL

 <!--fetch="https://android.googlesource.com/" -->

Finally run command as below to sync:

repo sync -j8

Emind