How to Build Your Own CyanogenMod 11

Published on March 2017 | Categories: Documents | Downloads: 22 | Comments: 0 | Views: 374
of 7
Download PDF   Embed   Report

Comments

Content

 

12/8/2013

[GUIDE UIDE CM1 CM11] Ho How to bu buil ild d your o ow wn Cy Cyanoge gen nMod Mod 11 11.0 R RO OM fr fro om source rces ffo or tth he N Ne exus 4 - x xd da-d -de evelop lopers 5,367,050 MEM MEMBERS BERS

User Name

Remember Me?

Forgot your pass word?

 

NEWS

FORUM

WIKI

XDA TV

Search All Forums

Type To Find Your Device...

4 > Nexus 4 General > General  > [GUIDE CM11] How to build your own CyanogenMod 11.0 ROM from sources for the Nexus 4 > Google Nexus 4 >

POST REPLY

+

V IEW FIRST UNREAD

Page 1 of 25

1

2

3

11

[GUIDE CM11] How to build your own CyanogenMod 11.0 ROM from sources for the Nexus 4 Lik e  

Raum1807

6th November 2013, 08:02 PM (Last edited by Raum1807; 8th November 2013 at 07:14 PM.)

 [GUIDE CM11] How to build your own CyanogenMod 11.0 ROM from sources for the Nexus 4

Tw e e t

+1

>

>>

Tip us?

#1  

Search this thread

MO OS S T T HA HANKED IN IN T ALL-TIME

Make your 'own' KitKa KitKat-ROM today! Senior Member   - OP

Thanks Meter 572 Posts: 233 Join Date: Jul 2012

V1.1 - 20131108 Update 1: Java part added. Error rema rks. Local_manifest: Local_manif est: branch update. V1.0 - 20131106 Initial release Thank you note: Thank you to the whole whole CM-Team CM-Team for bringing up-todate-Android date-Andro id to s o many devices.

http://for um.xda- devel oper s.com/showthr ead.php?t= 2515305

6

(qu (q uot ote) e) (q (quo uote te)) Lo Lo Raum1807 OP Clear Cache  I s a …

5 3

x112 (qu uot ote) e) Yo You u are are v (q Raum1807 O

3

guys Update Hey guys to …

2

(quote) Fixed :D /

Raum1807 OP

sorcio4

1/7

 

12/8/2013

[GUIDE UIDE CM1 CM11] Ho How to bu buil ild d your o ow wn Cy Cyanoge gen nMod Mod 11 11.0 R RO OM fr fro om source rces ffo or tth he N Ne exus 4 - x xd da-d -de evelop lopers

Overview I. Prepara Preparation tion II. Installation of the required packages III. Installing Java IV. The sources V. Building the ROM VI. Rebuilding with newest newest sources

I. Preparation Things you need for building:  A computer   An internet connection  An open mind Time Patience First of all, you need a running up-to-date up-to-date Ubuntu/Linux Ubuntu/Linux s ystem. I am using Ubuntu 13.10 64-bit. Use the terminal to make the steps. A terminal window can be opened by pressing Ctrl+Alt+T. Every single command for the terminal is m arked with a $ s ign. Just paste every every c ommand (without the $ sign) t o your terminal window and there shouldn't shouldn't be any problem. IMPORTANT: INSTALL EVERYTHING AS A NORMAL USER. DON'T INSTALL AS ROOT!

II. Installat Installation ion of the required packages (Ubuntu 13.10 64-bit) Install packages: Code:

$ sudo apt-get install bison build-essent build-essential ial curl flex \ g++-multilib gcc-multilib gcc-multilib git-core gnupg gperf \ lib32ncurses5-dev lib32ncurses 5-dev lib32readline lib32readline-gplv2-dev -gplv2-dev lib32z1-dev \ libesd0-dev libncurses5-dev libncurses5-dev libsdl1.2-d libsdl1.2-dev ev \ libwxgtk2.8-dev libwxgtk2.8dev libxml2 libxml2-utils lzop \ openjdk-6-jdk openjdk-6-jd k openjdk-6-jre pngcrush schedtool \ squashfs-tools squashfs-too ls xsltproc zip zlib1g-dev

III. Installing Java You need a version 6 Java Development Kit for building CM11.0. Usually, the SUN JDK 6 is recommended. But there is another way: you can use the OpenJDK 6. When y ou installed the required packages as desc ribed above above,, y ou will just need to configure your Java installation. Check your Java version: Code:

$ java -version

Verify the symlinks. Javac, Java, Javaws, Javadoc, Javah, Javap and Jar should all point to the right Java location and version: Code:

$ ls -la /etc/alternatives/java* /etc/alternatives/java* && ls -la /etc/alternat /etc/alternatives/jar ives/jar

If they are pointing to the wrong versions you have to change that to OpenJDK6. Select the default Java version for your system: Code:

$ $ $ $ $ $ $

sudo sudo sudo sudo sudo sudo sudo

update-alternatives update-alternatives update-alternatives update-alternatives update-altern atives update-alternatives update-alternatives update-alternatives update-alternatives update-altern atives

--config --config --config --config --config --config --config

javac java javaws javadoc javah javap jar

That's Tha t's it .

http://for um.xda- devel oper s.com/showthr ead.php?t= 2515305

2/7

 

12/8/2013

[GUIDE UIDE CM1 CM11] Ho How to bu buil ild d your o ow wn Cy Cyanoge gen nMod Mod 11 11.0 R RO OM fr fro om source rces ffo or tth he N Ne exus 4 - x xd da-d -de evelop lopers

IV. The sources Install repo: Repo is a tool that makes it quite easy to download and maintain the sources of Cyanogenmod. Code:

$ $ $ $ $

mkdir ~/bin PATH=~/bin:$PATH PATH=~/bin:$PATH cd ~/bin curl http://common http://commondatastorage.g datastorage.googleapis.com oogleapis.com/git-repo-do /git-repo-downloads/repo wnloads/repo > ~/bin/re chmod a+x ~/bin/repo

Create the working directory: Code:

$ mkdir ~/cm11 $ cd ~/cm11

Initialize Repo: Code:

$ repo init -u git://githu git://github.com/Cyanoge b.com/CyanogenMod/android. nMod/android.git git -b cm-11.0

and enter your credentials. Download Down load the sources: Code:

$ repo sync

Wait until it's finished - takes some time to download the hefty 12 GB of source code! Have a break, have a KitKat!

If the process hangs use Ctrl+C to break out of it and resume t he download download with another  Code:

$ repo sync

If you are running into a lot of sy ncing errors the reason might be t hat the 'repo sync' command is establishing four threads automatically. This might be too much. So try to change the command to run with one thread only by using Code:

$ repo sync -j1

Initialize the environment Code:

$ . build/envsetup.sh

Obtain the proprietary files: First get two missing repositories for the Nexus 4 by running Code:

$ breakfast mako

Then create a file with the name local_manifest.xml in the local_manifests directory. To see this directory, you have to press Ctrl-H in your file manager. Use this code Code:

$ gedit ~/cm11/.repo ~/cm11/.repo/local_manife /local_manifests/local_man sts/local_manifest.xml ifest.xml

Update: Branch revision is now c m-11.0

http://for um.xda- devel oper s.com/showthr ead.php?t= 2515305

3/7

 

12/8/2013

[GUIDE UIDE CM1 CM11] Ho How to bu buil ild d your o ow wn Cy Cyanoge gen nMod Mod 11 11.0 R RO OM fr fro om source rces ffo or tth he N Ne exus 4 - x xd da-d -de evelop lopers

  Paste the following lines to the editor  Code:

<?xml version="1.0 version="1.0" " encoding="UTF encoding="UTF-8"?> -8"?> <manifest>   <p <pro roje ject ct na name me=" ="Th TheM eMup uppe pets ts/p /pro ropr prie ieta tary ry_v _ven endo dor_ r_lg lge. e.gi git" t" pa path th=" ="ve vend ndor or/l /lge ge" " rem remot ote= e= </manifest>

Save the file. Run Code:

$ repo sync

again to get the files needed. Download Down load the necess ary prebuilts from c yanogenmod by running Code:

$ cd ~/cm11/vendor ~/cm11/vendor/cm /cm $ . get-prebuilts $ croot

 And you're done! done!

V. Building the ROM Now build it: Code:

$ brunch mako

 And the building process starts. Now have patience. Building takes aroun around d half an hour hour on fast sy stems and a lot more on older and slower machines.

Update 20131108: The errors from 20131106 are gone now. If you made the changes revert them, sync the repo and then brunch again. There is no need to edit the source at the moment.

  CLICK TO SHOW CONTENT

When everything everything worked as it should you will find your new ROM-image in ~/cm 11/out/target/product/mako It is called cm-11-DATE-UNOFFI cm-11-DATE-UNOFFICIAL-makoCIAL-mako-zip. zip. Y ou can flash it via CWM/TWRP as usual.

VI. Rebuilding Rebuilding with new est sources Whenever you like to update your sources and build a new version you have to run these four simple commands: Code:

$ $ $ $

cd ~/cm11 repo sync . build/envsetup.sh brunch mako

Compiling takes less time than it took for creating the ROM the first time because it's only building new parts while reusing old parts that haven't changed.

Happy building!    REPLY The Following 76 Users Say Thank You to Raum1807 For This Useful Post: [ Click to Expand ] Expand ]

 

advertisement

xda-developers

 Ads by Google

Download Mobile Software Free Mobile Manager Software. Easy File Transfer. Download Now ! mobogenie.com/mobile-software

http://for um.xda- devel oper s.com/showthr ead.php?t= 2515305

4/7

 

12/8/2013

 

[GUIDE UIDE CM1 CM11] Ho How to bu buil ild d your o ow wn Cy Cyanoge gen nMod Mod 11 11.0 R RO OM fr fro om source rces ffo or tth he N Ne exus 4 - x xd da-d -de evelop lopers

Raum1807

6th November 2013, 08:03 PM

#2  

 Reserved

Reserved Senior Member   - OP

Thanks Meter 572 Posts: 233 Join Date: Jul 2012 REPLY The Following 7 Users Say Thank You to Raum1807 For This Useful Post: [ Click to Expand ] Expand ]

 

November 2013 at 09:37 PM.) 6th November 2013, 08:32 PM (Last edited b y hansichen123; 6th November

hansichen123

#3  

Nice Tutorial, thank you for the work Now i have have to organize a linux-computer... :/ edited to linux, my brain is out of order today...

Senior Member 

Thanks Meter 24 Posts: 139

TRENDING IN THEMER...

Join Date: Mar 2013 REPLY

 

November 2013 at 08:44 PM.) Reason: I misspelled "b ut"  6th November 2013, 08:43 PM (Last edited by mick u7zu; 6th November

micku7zu

#4  

Thank you for your post. I knew how to compile but I was lazy to compile for myself any rom until now. I planned to wait until someone will post it, but your post just got me excited and I will compile. Thank you for your instructions and all. Good luck! Member 

Thanks Meter 75 Posts: 66 Join Date: Oct 2010 Location: Marghita

>

MORE INFO DONATE TO ME

REPLY

 

B4tnam

6th November 2013, 08:56 PM

#5  

 This is what I keep getting...

[email protected]:~/cm11$ repo init -u git:/ /github.com/CyanogenMod/and [email protected]:~/cm11$ /github.com/CyanogenMod/android.git roid.git -b c m-11.0 bash: /home/bruce/bin/repo: Permission denied Member 

Thanks Meter 4 Posts: 33 Join Date: Apr 2012 Location: Adrian, Michigan MORE INFO

>

http://for um.xda- devel oper s.com/showthr ead.php?t= 2515305

5/7

 

12/8/2013

[GUIDE UIDE CM1 CM11] Ho How to bu buil ild d your o ow wn Cy Cyanoge gen nMod Mod 11 11.0 R RO OM fr fro om source rces ffo or tth he N Ne exus 4 - x xd da-d -de evelop lopers Device:  16GB Nexus 4 (Mako) ROM: Carbon Nightlies Kernel:  Ultimate Hells-Cor Hells-Cores es Recovery:  TWRP 2.6.3.0 My Website:  JDiesel   REPLY

 

6th November 2013, 09:04 PM

Imperticus

#6  

Quote:

Originally Posted by B4tnam  [email protected]:~/cm11$ repo init -u git: //github. com/Cyanoge [email protected]:~/cm11$ com/CyanogenMo nMod/android d/android.git .git -b c m-11.0  bash: /home/bruce/bin/repo: Permission denied  Recognized Contributor  Thanks Meter 1039

try chmod a+x /home/bruce/bin/repo Posts: 1,093 Join Date: Jan 2011 MORE INFO

>

Nexus 4 LG Optimus 2X HTC Hero My Github

DONATE TO ME

REPLY The Following User Says Thank You to Imperticus For This Useful Post: [ Click to Expand ] Expand ]

 

Raum1807

6th November 2013, 09:05 PM

#7  

Quote:

Originally Posted by hansichen123  Nice Tutorial, thank you for the work work Senior Member   - OP

Thanks Meter 572

Now i have to organize a linux-computer... : / 

Posts: 233 Join Date: Jul 2012

Gesendet von meinem meinem Transformer Pad mit Tapatalk 4 edited to linux, my brain is out of order today...

If you have a quite new PC running Windows, you could use a virtual machine to install Linux ontop of your Windows installation. Have a look at VirtualBox for example. It's free. https://www.virtualbox.org/ REPLY The Following User Says Thank You to Raum1807 For This Useful Post: [ Click to Expand ] Expand ]

 

Imperticus

6th November 2013, 09:07 PM

#8  

@Raum1807 Raum1807 How's  How's cm11? What features have been implemented so far?

Recognized Contributor 

Nexus 4 LG Optimus 2X HTC Hero My Github

Thanks Meter 1039 Posts: 1,093 Join Date: Jan 2011 MORE INFO

>

DONATE TO ME

REPLY

 

micku7zu

6th November 2013, 09:10 PM

#9  

Quote:

Member 

Originally Posted by B4tnam  [email protected]:~/cm11$ [email protected] ain:~/cm11$ repo init -u git: //github. com/Cyanoge com/CyanogenMo nMod/android d/android.git .git -b c m-11.0  bash: /home/bruce/bin/repo: Permission denied 

Thanks Meter 75

Of course, because you didn't hit the thanks button. (joking, but of course, just press it now) Posts: 66 Join Date: Oct 2010  

Your problem is with folder permissions. I don't know how you created the folders but somehow you just don't have enough  

http://for um.xda- devel oper s.com/showthr ead.php?t= 2515305

6/7

 

12/8/2013

[GUIDE UIDE CM1 CM11] Ho How to bu buil ild d your o ow wn Cy Cyanoge gen nMod Mod 11 11.0 R RO OM fr fro om source rces ffo or tth he N Ne exus 4 - x xd da-d -de evelop lopers  

MORE INFO  

 

>

.

Try to: chmod a+x /home/bruce/bin/repo

DONATE TO ME

REPLY The Following 2 Users Say Thank You to micku7zu For This Useful Post: [ Click to Expand ] Expand  ]

 

sjoerd0301

#10  

6th November 2013, 09:29 PM

Bah my linux box broke.. @op @op Can  Can you release the c m11 build you made?

Senior Member 

Thanks Meter 82

Sent from my AOSP on Mako using Tapatalk

Posts: 185 Join Date: Oct 2011 Location: hengelo MORE INFO

> REPLY

 

advertisement

xda-developers

 Ads by Google

Mobile App Monetization Get More Than 90% Fill Rate and $5 eCPM. Sign up with Vserv Today! www.vserv.mobi/Developer 

The Following User Says Thank You to sjoerd0301 For This Useful Post: [ Click to Expand ] Expand  ]

1

2

 

3

11

>

>>

Page 1 of 25

POST REPLY

+

SUBSCRIBE

V IEW FIRST UNREAD

Search this thread > Google Nexus 4 > 4 > Nexus 4 General > General  > [GUIDE CM11] How to build your own CyanogenMod 11.0 ROM from sources for the Nexus 4

Thread | Next Thread  Thread  » « Previous Thread |

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to to make the mos t of  their mobile devices, from customizing the look and feel to adding new functionality. Are functionality. Are you you a developer?

More Info: Contact Contact |  | Rules Rules |  | Change Log | Log | Suggest Content | Content | Privacy Policy | Policy | XDA App Copyright© xda-developers. Powered by Searchlight Searchlight ©  © 2013 Axivo Inc. Inc. Hosted by Leaseweb Leaseweb..

-- XDA 2013 Beta

http://for um.xda- devel oper s.com/showthr ead.php?t= 2515305

7/7

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close