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 Low-cost hardware and free software 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 dead link
"Recovery" from https://play.google.com/store/apps/details?id=com.koushikdutta.rommanager&hl=en 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: Android: “Developer Options” is Missing From Settings
Then go to new menu in options and enable USB Debugging: Nexus 5X: 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:
- backup and restore
- wipe data/factory reset
- install zip from sdcard
- choose zip from sdcard (you should find it in folder named "0", not in the root of sdcard!)
- 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: ENABLE ADVANCED REBOOT OPTIONS ON CYANOGENMOD 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 :)
Based on: How to flash the gapps package after installing CyanogenMod
- Open in Android browser to: dead link to http://wiki.cyanogenmod.org/w/Google_Apps and download ZIP file for your version of CyanogenMod. After installing updates it should be 11.
- Reboot your phone to recovery mode.
- install zip from sdcard
- choose gapps.zip file (Download folder should be there somewhere :)
- Also go to Advanced and clear your cache and dalvik cache afterward.
- 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: Factory Images for Nexus and Pixel Devices
I haven't tried going back to default android yet but I think it should work the same way as installing CyanogenMod image.
Want to learn more?
Sign up to get a digest of my articles and interesting links via email every month.