How can I limit the size of the Android source I need to download with "repo sync"?

Solution 1:

This might be too late. But:

  • You could pass --depth=1 to repo init to get a shallow clone.
  • And you could use repo sync -c to checkout only the current branch.