<span id="Label3"></p><p><p>The following tools are Required:</p></p>Download msysgit, Install the official download: http://download.csdn.net/detail/jason0539/7212993, download python, Install the official website: http://www.python.org open git Bash, Execute command, I'm on the D drive, path customizable CD D:git clone Https://android.googlesource.com/platform/manifest.git here will encounter problems, say you are not connected to the site, Error code 443 solution, in the Computer's Hosts file add the following lines, do not know where the hosts in their own Baidu<p><p>Enter a command to switch to the manifest directory</p></p><pre><pre>CD manifest</pre></pre><p><p>git tag lists all the Android branch versions</p></p><p><p>Download android-4.4 System Source code, Enter the following command, if you want to download other version of the source code, checkout git tag listed version number can be</p></p><pre><pre>git checkout Android-4.4.2_r1</pre></pre>After checkout, the Manifest/default.xml file is recorded in the android4.4 system of the various modules of the path, the following is the turn of python, here is a piece of the online python code, Implementation of the source code bulk Download the premise of executing this script is that the git checkout has been executed, choose the Android source version to download, if your manifest file is not d:/manifest/ default.xml, but also to the inside of the Git.exe road modified to your installation path, please modify the script yourself.<br> <pre class="brush:python;gutter:true;"><pre class="brush:python;gutter:true;">Import xml.dom.minidom import os from subprocess import call #downloaded source path RootDir = "f:/ anroid4.4 " #git program path git =" c:/program files/git/bin/git.exe " dom = Xml.dom.minidom.parse (" f:/ Anroid4.4/default.xml ") root = dom.documentelement prefix = git +" clone https://android.googlesource.com/" suffix = ". git" if not os.path.exists (rootdir): os.mkdir (rootdir) for node in Root.getelementsbytagname ("project"): os.chdir (rootdir) d = Node.getattribute ("path") last = D.rfind ("/") If last! =-1: d = rootdir + "/" + d[:last] if not os.path.exists (d): os.makedirs (d) <c20 />os.chdir (d) cmd = prefix + node.getattribute ("name") + suffix call (cmd) </pre></pre><p><p> </p></p><br>After executing this script, we start to download the screenshot automatically: it will take a while to wait patiently.<p><p>Windows platform download Android source code</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service