Tips and tricks useful for "checkout" (download) Android source code faster

Browse and search for Android source code is simple. You just visit the AndroidXRef website .

But if you want to create and run a bleeding superuser version , you must first download the full Android tree.

Imagine that I want to grab the "master" Android branch from the source control.

If I follow the official Google instructions :

  • The operation will certainly take at least an hour. It may take half a day or more .
  • He will probably pick tens of gigabytes of data . Where I live, Internet service providers sometimes charge a surplus fee when users take tens of gigabytes of data in one month. I do not like to pay dues or allowances.

In short, running a regular command repo syncis likely to be slow and wasteful. I don't need the whole Android development story; and I do not have infinite disk space.

How can I check Android source code faster?

  • I know that it would help to make a "small clone". How can i do this?

  • Rakesh , repo sync -c. ? -c. Git , , . .

  • (:) , ?

  • (:) , ?

P.S. durron597 , . , , .

+4
1
  • repo init --depth=1 ( repo help init)
  • -c . , --depth, depth -c ( git help clone)
  • (20-07-2017), 21 . studio-master-dev, 15 . 36 .
0

Source: https://habr.com/ru/post/1606892/


All Articles