Checking out from a local mirror

To use our own manifest file, we can use either a local mirror or a remote repository. If we use a local mirror, we have to change manifest.xml of android-7.1.1_r4 a little to make our own. We copy .repo/manifest.xml to our manifests/default.xml and make the following changes:

<?xml version="1.0" encoding="UTF-8"?> <manifest>   <remote  name="github"         fetch="." />   <remote  name="aosp"          fetch="../android" />   <default revision="refs/tags/android-7.1.1_r4"            remote="aosp"            sync-j="4" />   <!-- github/shugaoye -->    <project path="kernel" name="goldfish"     remote="github" revision="refs/tags/  android-7.1.1_r4_x86emu_ch04_r1" />   <project path="device/generic/x86emu" name="x86emu" remote="github"    revision="refs/tags/android-7.1.1_r4_x86emu_ch04_r1" ...

Get Android System Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.