Skip to main content

Install CyanogenMod 13 on Nexus 4

Let me show you how to install CyanogenMod 13 which is build on Android 6.0.1 since Nexus 4 no longer receives update from Google. I will be explaining you using Debian Linux.

Download the latest version of CyanogenMod 13 from Official CyanogenMod website https://download.cyanogenmod.org/?device=mako. I would recommend Stable release only. Make sure to download system image (CyanogenMod Build), recovery image (CyanogenMod Recovery) and Google App from https://wiki.cyanogenmod.org/w/Google_Apps

1. You will need Android SDK platform tool and we will be using fastboot and adb. 

2. Now boot the phone in recovery mode, hold down Volume Down + Power button until bootloader appears, then navigate to Bootloader by clicking volume up/down and select by clicking Power button. 

3. Open terminal and then navigate to folder where you have placed Android SDK platform tools. Type 
sudo ./fastboot oem unlock if your OEM is locked else 
sudo ./fastboot oem lock
sudo ./fastboot oem unlock

4. Now lets erase some partitions like recovery, system, boot, cache and userdata.
sudo ./fastboot erase recovery
sudo ./fastboot erase system
sudo ./fastboot erase boot
sudo ./fastboot erase cache
sudo ./fastboot erase userdata

5. Now lets flash recovery image 
sudo ./fastboot flash recovery cm13xxx-recovery.img

6. Now reboot the phone to Recovery Mode like you did in step 2. 

7. Now select Wipe/Factory Reset and also any wipe option available.

8. So let flash in System Image and Google Apps using adb sideload. Select Apply Update in the recovery mode, and select ABD Sideload

sudo ./adb kill-server
sudo ./adb start-server
sudo ./abd sideload CM13xxx.zip
sudo ./abd sideload open-gappxxx.zip 

9. Now select Reboot System from the recovery mode menu. At first time boot it will take some time, just relax and wait for it to boot.

Now your Nexus 4 will boot in CyanogenMod 13 in turn Android 6.0.1

Comments

Popular posts from this blog

Zimbra Mail Error: not enough free space in mail queue

If you are using Zimbra Mail and you are not able to send any mails and also you see an Error Message " not enough free space in mail queue " under /var/log/message. Then you should try out this solution. 1. Login to the server, and then again login as zimbra as follows: #su - zimbra 2. Check the Postfix message_size_limit, by default it should be 10MB (i.e. '10240000' bytes) as follows: $postconf message_size_limit message_size_limit = 10240000 3. If the value is higher than that, set it as follows to 10MB $ zmprov modifyConfig zimbraMtaMaxMessageSize 10240000 $ postfix reload Now try sending Mail, It should work. You could try out this solution for Error: " SMTP Server Reported: 452 4.3.1 Insufficient System Storage "

Clear Zimbra Mail Queue

If you want to clear mail queue from specific email address run the following command in your terminal. Below will remove mail queues, by checking FROM sender. eg. remove all mail queues sent by info@example.com /opt/zimbra/postfix/sbin/mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($7 == "info@example.comt") print $1 } ' | tr -d '*!' | xargs -rn1 /opt/zimbra/postfix/sbin/postsuper -d Below will remove mail queues, by checking TO sender. eg. remove all mail queues sent to info@example.com /opt/zimbra/postfix/sbin/mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($8 == "info@example.comt") print $1 } ' | tr -d '*!' | xargs -rn1 /opt/zimbra/postfix/sbin/postsuper -d