Skip to main content

How to install CyanogenMod on Galaxy Nexus on Ubuntu



If you are disappointed that Galaxy Nexus is not going to get KitKat 4.4 you may think that CyanogenMod may be for you.

First: it's not perfect!
You will need to install Google Apps separately and from the start there is nothing like Gmail or Google Account in settings (it' solvable but remember about it).

My tutorial is post-mortem of following this one: http://wiki.cyanogenmod.org/w/Install_CM_for_maguro

Install Fastboot & ADB

as stated here: http://wiki.cyanogenmod.org/w/Doc:_fastboot_intro

sudo apt-get install android-tools-fastboot android-tools-adb

I have done it long ago and have it installed already so I'm not sure what was needed. If you have problems maybe something from http://ferrancasanovas.wordpress.com/2014/01/30/adb-install-android-system/ can help:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot

Download


If you have adb and fastboot then it's time to download images.

If you have Galaxy Nexus then you want to download maguro zip file from http://download.cyanogenmod.org/?device=maguro&type=stable

"Recovery" from http://clockworkmod.com/rommanager as of time of writing newest is: http://download2.clockworkmod.com/recoveries/recovery-clockwork-6.0.4.7-maguro.img


Enable USB Debugging

First enable Developer options clicking on 'Build version' many times. Read this for more info: http://www.technipages.com/android-developer-options-is-missing
Then go to new menu in options and enable USB Debugging: http://www.technipages.com/galaxy-nexus-enable-usb-debugging

Connect your phone by USB

There should be popup at your phone asking for permission to debug, chose : Yes :)


Deploy ROM image

adb devices

#to make sure it's connected

adb push YOURROMZIP.zip /sdcard/

#or more precisely:

adb push cm-10.2.1-maguro.zip /sdcard/


Unlock bootloader

adb devices 

# Should return your device

adb reboot bootloader

#will reboot your phone to bootloader, when you see it then it's time to flash recovery

fastboot devices

#To make sure your device is discovered by fastboot

fastboot oem unlock

#Rember you are doing it on your own risk ;)

It should reboot or reboot it yourself and after that go to bootloader again. Two options here:

  •  after seeing google logo (when phone is starting hold: UP and DOWN Volume buttons and POWER button at the same time) or:
  • adb reboot bootloader

Install Recovery

fastboot devices

#just to check it

cd Download

#or whenever you have downloaded files


fastboot flash recovery your_recovery_image.img

#or more precisely:

fastboot flash recovery recovery-clockwork-6.0.4.7-maguro.img


Choose Recovery

Now use your volume buttons to change selected item from the Menu and pick "Recovery mode" and select it with Power button.

Right now ClockworkMod recovery should start!

Now with the same buttons navigate in recovery and select:

  1. backup and restore
  2. wipe data/factory reset
  3. install zip from sdcard
  4. choose zip from sdcard (you should find it in folder named "0", not in the root of sdcard!)
  5. reboot system now

Cyanogen Mod should be installed!


Login and play with it a bit ;)

Install Updates from CyanogenMod (they are in UI)


Installing Google Apps


First you need to enable Developer options and just after that it's great to instead of playing with volume and power buttons to enable rebooting to bootloader and recovery from your android CyanogenMod menu! Nice tutorial is here: http://code.rawlinson.us/2013/05/enable-advanced-reboot-options-on.html It's easy to find it in Developer options :)

Download GAPPS

Now you don't even need your PC to install them from ZIP image :) 

  1. Open in Android browser to: http://wiki.cyanogenmod.org/w/Google_Apps and download ZIP file for your version of CyanogenMod. After installing updates it should be 11.
  2. Reboot your phone to recovery mode.
  3. install zip from sdcard
  4. choose gapps.zip file (Download folder should be there somewhere :)
  5. Also go to Advanced and clear your cache and dalvik cache afterward.
  6. reboot system now

All should work.

I know it's not perfect tutorial but it's more like a brain-dump of my yesterday evening to not forget it all ;)

Help


I found helpful viewing those things instead of only reading about it so in case it can help you too:

Enabling Developer Options



Not working for me but may help your understand recovery and boot.






If you want to go back find original image that your nexus phone had you can find it here: https://developers.google.com/android/nexus/images

I haven't tried going back to default android yet but I think it should work the same way as installing CyanogenMod image.





Comments

Popular posts from this blog

Course Review: The Bitfountain iOS 8 with Swift Immersive

This is second big iOS learning project. For first one read iOS Programming book review. As I only have two of them done I have to compare them somehow.

I am mindful that it took me a really long time to finish it (since last autumn). For a couple of months this year I didn't even have the internet to learn it, so it could not be helped. But last half of the June I've spent watching the videos every day and managed to finish it before any new internet problems.

So how was it?
In my opinion, it's great if you're starting out. There are a lot of basics, and seeing how to do things in XCode just makes your learning much easier than looking at the photos in the book. On the other hand, learning is more shallow and it is much easier to just follow the videos and learn only the basics without bigger picture about iOS SDK. I somehow missed more challenging exercises (even though I don't like to do them ;)

Length:
Course it pretty long but many videos are quite short (1-2…

How to Learn when Life is Short

I haven't really think this through but I have read really interesting articles recently and I just wanted to write for myself later.

Life is Short by Paul Graham

It's just that, learn from people older that you what is most important, and that life actually is short...

Instead of Goals or Resolutions, Try Creating Rules by Leo Babuta

In the time of New Year Resolutions, it's good to read something that is proposing different way of achieving things. Still I see much more value in habits than setting goals. But...

The Easy Way To Learn Hard Stuff by Per Harald Borgen
It's something that I read from time to time and I know it works sometimes for me. The things I learn then are really learned and something Jakub Wasilewski  has told me many times to do. Still it's uncomfortable and for some reason, I have failed to use this method more than once or twice. Writing it here so maybe I can think about it more and figure out how to do that more often.

Towards an understandin…

Hero's Journey in Presentations

Artur Skowroński recommended me: Want a Better Pitch? Watch This. by Andy Raskin and I think it is so great and applicable to all kinds of talks that I want to help it get more popular.
So the plan of presentation is going to follow these steps: Enemy - ProblemWhy now? - call to actionShow how the world will look like without the problemProblemsEvidence that you fixed the problem The image at the top is because it reminds me of Hero's Jurney. It has fewer steps but there is a lot of similarities. Especially #3 made me realize that grand vision of the future is something that I should have used in my talks.  The result at the start of the presentation makes a lot of sense actually. Everyone already knows that I speak about something because I probably fixed it and if you tell about it at the end then it might be hard for some people to see the bigger picture in the solution you're going to present.