Cyanogenmod 12.0 12.1 13.0 Bacon (Oneplus) Download compile
Repo Download
Source Download
model related code download
Compiling and packaging
Brush Machine
Repo Download
Mkdir-p ~/bin
Curl Https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Due to the wall, you can use the following method to get repo (not recommended, 12.1 and 13.0 of the code download will be problematic):
git clone git://codeaurora.org/tools/repo.git
CP./repo/repo ~/bin/repo Source Download
Enter the following instructions:
~/bin/repo init-u git://github.com/cyanogenmod/android.git-b cm-12.0
~/bin/repo init-u git://github.com/cyanogenmod/android.git-b cm-12.1
~/bin/repo init-u git://github.com/cyanogenmod/android.git-b cm-13.0
Or:
~/bin/repo init-u git://github.com/cyanogenmod/android.git-b Cm-12.0-repo-url=git://codeaurora.org/tools/repo.git -repo-branch=caf-stable
~/bin/repo sync-j8 Model related code download
mkdir. repo/local_manifests
Vim. Repo/local_manifests/local_manifests.xml
The contents of the cm12.0 file are as follows:
<?xml version= "1.0" encoding= "UTF-8"?> <manifest> <project name= "Cyanogenmod/android_device_oneplus_ Bacon "path=" Device/oneplus/bacon "remote=" GitHub "/> <project name=" Cyanogenmod/android_device_qcom_common " Path= "Device/qcom/common" remote= "GitHub"/> <project name= "Cyanogenmod/android_device_oppo_msm8974-common" Path= "Device/oppo/msm8974-common" remote= "GitHub"/> <project name= "Cyanogenmod/android_device_oppo_common" Path= "Device/oppo/common" remote= "GitHub" revision= "cm-12.0"/> <project name= "Cyanogenmod/android_kernel_ oneplus_msm8974 "path=" kernel/oneplus/msm8974 "remote=" GitHub "/> <project name=" Themuppets/proprietary_ Vendor_oppo "path=" Vendor/oppo "remote=" GitHub "/> <project name=" Themuppets/proprietary_vendor_oneplus "path= "Vendor/oneplus" remote= "GitHub"/> <project name= "cyanogenmod/android_frameworks_opt_connectivity" path= " Frameworks/opt/connectivity "remote=" GitHub "revision=" cm-11.0 "/> </manifest>
The contents of the
cm13.0 file are as follows:
<?xml version= "1.0" encoding= "UTF-8"?> <manifest> <remote name= "GitHub" fetch= "Https://github . com "review=" review.cyanogenmod.org "/> <project name=" Updateing/android_device_oneplus_bacon "path=" Device/oneplus/bacon "remote=" GitHub "revision=" MARSHMALLOW_CAF "/> <project name=" Cyanogenmod/android_device _oppo_common "path=" Device/oppo/common "remote=" GitHub "revision=" cm-12.1 "/> <project name=" updateing/android _kernel_oneplus_msm8974 "path=" kernel/oneplus/msm8974 "remote=" GitHub "revision=" marshmallow "/> <project Name = "Updateing/proprietary_vendor_oneplus" path= "Vendor/oneplus" remote= "GitHub" revision= "Marshmallow"/> < Project Name= "Cyanogenmod/android_external_sony_boringssl-compat" path= "External/boringssl-compat" remote= "GitHub "revision=" cm-13.0 "/> <project name=" cyanogenmod/android_external_jpeg "path=" External/jpeg "remote=" GitHub " revision= "cm-12.1"/> <project name= "cyanogenmod/aNdroid_device_qcom_common "path=" Device/qcom/common "remote=" GitHub "revision=" cm-13.0 "/> </manifest>
[Note]: You can also not edit this file, but through the breakfast bacon instructions to automatically download the relevant file compilation and packaging
. build/envsetup.sh
Choosecombo (choose compile options and compile, or you can run brunch bacon start compiling with default options)
Make-j24 2>&1 | Tee Build.log
Make Otapackage
You need to execute the following instruction before compiling again to clear the build file:
Make clobber Brush machine
Rename the generated zip package to update.zip and place it in the phone's built-in storage root directory.
Then shut down and reboot into recovery mode, select Update.zip upgrade
If you encounter a power-on exception, you may need to wipe the user data
Reference:
1. Http://wiki.cyanogenmod.org/w/Build_for_bacon
2. http://forum.xda-developers.com/oneplus-one/general/guide-building-lollipop-oneplus-one-t2947949
3. http://forum.xda-developers.com/oneplus-one/orig-development/experimental-homemade-android-6-0-t3225725
4. http://forum.xda-developers.com/oneplus-one/development/exp-rom-cyanogenmod-13-unofficial-t3232077
5. http://forum.xda-developers.com/oneplus-one/development/wip-cyanogenmod-13-t3230116