Cyanogenmod is really a magic thing. It makes the development of Mobile Phone firmware no longer a patent of mobile phone manufacturers. Every programmer interested in it can customize a proprietary and unique firmware for his mobile phone, this was previously hard to think about. In addition, cyanogenmod supports many mobile phone models, which are also amazing. Its latest version has reached 11.0. This article describes how to download cyanogenmod.
The cyanogenmod code is stored on GitHub. Although Google is down by the wall, the android Code cannot be down, but GitHub is not down by the wall, so it seems that the cyanogenmod code can be easily downloaded. Unfortunately, things are not as simple as you think.
Take the code for downloading the Samsung S3 i9300 model as an example. Follow the URL:
Http://wiki.cyanogenmod.org/w/Build_for_i9300
First
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
Download the code. The first step is to download the repo code. So you must set a proxy. Here I use go * agent:
Then let git download repo via proxy:
Export http_proxy = 127.0.0.1: 8087
Export http_proxy = 127.0.0.1: 8087
Re-Execute:
Repo init-u git: // github.com/cyanogenmod/android.git-B cm-11.0
Then execute repo sync to start downloading the code,
At the beginning, it seems to have been quite smooth, but unfortunately, some of the tools cyanogenmod relies on, such as the compilation tool chain, still need to be downloaded from Google. In theory, you can use go * agent to download code from Google, but you don't know what is happening recently. I tried several methods on the Internet, if you know it, you cannot download it.
Later, I thought of a solution: Since it cannot be downloaded from Google, can I always download it from Google?
Here are my solutions:
1. First, download the source code image from the Network Disk Based on the following file
Download the latest Android source code (version 4.4.2 _ R1 or later)
And unzip readme.txt on the network disk. Here we assume that the package is decompressed to:/mnt/androidmirror.
2. Open. repo/manifest. XML in the root directory.
Replace:
<Remote name = "aosp"
Fetch = "https://android.googlesource.com"
Review = "android-review.googlesource.com"/>
Is:
<Remote name = "aosp"
Fetch = "file: // MNT/androidmirror"
Review = "android-review.googlesource.com"/>
Then run the following command again:
Repo sync
You can download all the files without unexpected issues. Next, follow
Http://wiki.cyanogenmod.org/w/Build_for_i9300
Let's start coding.