After three consecutive days, the computer was finally downloaded. Let's talk about my process.
1. Create a new folder to put the source code and prepare enough space. After downloading the folder, add a little more than 10 Gb.
2. Download git
3. Go to http://android.git.kernel.org/
4. (Open http://android.git.kernel.org/check.) If you want to download the package at one time, I will do this by setting the paths (under "project) copy all of them and put them in one text (I copied the description, owner, and last change, and they can all be put in the text. Then we should be able to delete them using regular expressions, but I didn't know how to write this regular expression.) Then, add git clone git: // android.git.kernel.org/to the front of each line, and the following figure shows how to write this regular expression.
Git clone git: // android.git.kernel.org/device/common.git
Git clone git: // android.git.kernel.org/device/google/accessory/arduino.git
Git clone git: // android.git.kernel.org/device/google/accessory/demokit.git
Git clone git: // android.git.kernel.org/device/htc/common.gitgit clone
.....
.....
5. open git, configure it first (see Figure 6), run the command CD to enter the folder directory for storing Android, copy all the paths in the text, paste them into git, and then download the file automatically, wait...
6. I encountered the following warning during the download process:
Warning: Your console font probably doesn't support Unicode. If you experience strange characters in the output, consider switching to a TrueType font such as lucida console!
It should be a wrong character, so modify the character before pasting. Use this command: $ git config -- global core. autocrlf true, and the download will be successful.
7. After I download the source code:
Size: 10.2 GB (11,041,115,838 bytes)
Occupied Space: 11.4 GB (12,247,085,056 bytes)