Friday, December 11, 2015

Install android lollipop based cyanogenmod custom rom on Htc One Mini M4

Install android lollipop based custom rom on htc one mini m4 using cyanogenmod custom rom.Htc one mini M4 is a miniature version of htc one m7.It is powered by a dual core snapdragon 400 chipset clocked at 1.7ghz with 1gb of ram and 16gb internal storage.It was launched with android jellybean on board and later updated to kitkat and is yet to receive lollipop update.Device code name is "M4".

If you want to taste the latest version of lollipop then  then only way is to flash a  custom rom on htc one mini.In this post we will guide you to install android lollipop based cyangenmod cm 12.1 rom on htc one mini m4.

Flashing a firmware is very risky process and we take no responsibility for all the emotions that evoke in your heart if your device fails to boot.You have to decide if to follow this guide or not.

Why to flash a custom on htc one mini m4?

  • Less bloatware: Usually Carrier variants comes with lot of bloatware and unwanted stuff.This might hinder performance a bit which might result in hick ups.Custom roms will have less bloatware or no bloatware at all as a result of which you will notice its performance is much better than on stock rom.
  • Better performance: Though performance can be increased by controlling cpu and Gpu  with root apps you might not achieve what you want.There is better scope for performance on custom roms as developers implements different mods to make it perfect.
  • Battery life: Since It comes with a smaller non removable 1800 mah battery it you get very less  Battery life ans is always opposite to performance.Greater the performance least the battery life  you get.In order to get a balance one between them you have to go for custom roms. 
  • Better customisation: Most of the apps with root access will work better on custom roms than on stock roms.For instance take xposed installer.It offers lot of modules for customisation but will work perfectly on custom roms than on stock one.

prerequisites:
  • Backup:Backup all your data which includes apps,contacts,photos videos etc everything to computer or any cloud storage as flashing this cyanogenmod cm 12.1 on htc one mini m4 will erase data.
  • Battery: Charge your one mini  to at least 90% so that you wont encounter any battery related issues while flashing this.
  • Backup Efs partitions: Backup all your efs partition of your one mini on current rom.If you loose signal you can just restore it back.
  • Lock Gps:Lock your gps position on your current rom.If you use this a lot then you have to lock it so that it could work even after flashing other roms.Its easy to lock gps .Turn on gps in settings and find your current location in google maps and now now have locked on to gps.
  • Custom recovery: You need a custom recovery like twrp or cwm installed on your htc one mini m4.Without it you cannot flash them at all.
  • Downloads: Download cyanogenmod cm 12.1 and google apps if needed.Transfer them to internal storage.
  • If you are starting from scratch then you have to follow all these 4 steps carefully.So that you dont encounter any problems while flashing.

Install cyanogenmod rom on htc one mini m4:

 cyanogenmod cm 12.1 custom rom on Htc One Mini M4
cyanogenmod custom rom on Htc One Mini M4


Cyanogenmod rom :
Cyanogenmod is one of the best custom roms available in android development ecosystem.They support lot of devices.This ROM is based on android open source project with lot of added features.As htc one mini M4 is officially supported by cyanogenmod you will get latest updates much quicker than any other custom roms.
cyanogenmod htc one mini m4 custom roms
cyanogenmod htc one mini m4 custom roms

This is an unofficial rom with the features what original cm 12.1 has to offer and is quite stable for daily usage too.This is compiled by xda senior member "AndroGeek974" for one mini m4,a big thanks to him.
Features:
  • Theme engine: Theme engine is from the cyanogenmod custom ROM which basically changes the look user interface from lock screen  to ring tones all the way up to boot animations.The speciality of the theme engine is the ability to choose individual elements of every theme you have installed.So you like the ring tons and wallpapers of one theme and icons of other theme then you can have them at a time.Just open the theme chooser and you will understand how to do it.
    htc one mini m4 roms cyanogenmod
  • Performance control:A default cpu manager app to control frequencies and governors.You can adjust cpu frequencies and also set them on boot too.
  • Trebuchet: This is the default launcher that ships with cyanogenmod rom.But if you flash gapps then you might loose this.It doesn't have too many features like nova or other launchers but its simple and fast.
  • Software Updates: This one is usually available in three types one is nightlies which gets updated with new features every night and are quite stable for daily usage.second one is the snapchat which is monthly build version which will be stable version and other one is the release candidate.Some times nightlies are considered must stable than the snapshots. 
  • Status bar Tweaks:Status bar has lot of tweaks which include a brightness slider.Slide in status bar to adjust brightness of the screen.Double tap on status bar to sleep device and also network speed indicator for on going traffic info.

These are some of the features of cyanogenmod 12.1 custom rom for htc one Mini m4 and you can explore rest of the features by flashing this rom on your device.

If you have locked bootloder or you are on completely stock with out root and dont even have a recovery then we are going to explain you all the steps that are needed to flashing cm 12.1 on your htc one mini m4.

#1: Unlock bootloader of htc one Mini m4

This is first phase which you have go through before installing any custom rom and  is a simple process but it requires a computer with internet connection.
  • Install Htc sync on your laptop or pc.
  • Now power off the device completely and wait for few seconds to confirm that it is completely off.
  • Hold volume down and power button at same time for few seconds.When you see hboot release buttons.Using volume keys for navigation select "fastboot" and click on power button to reboot into fastboot.
  • Once you are in fastboot mode connect it to computer using usb cable and if you notice any driver installation process let it complete first.
  • Download  fastboot on our laptop or Pc and install it.You can install it any where but choose location as c: that is default location.
  • open the fastboot folder which you can find it in "c:\programming files".Right click on empty space by holding shift and you see an option "open cmd here".
  • If you don't find this option then press windows and R buttons at same time and type cmd to open command prompt.
  • Now go to fastboot folder and copy the location of it.
  • In command prompt type the command "Cd location of fastboot folder" and press enter.You will notice that fastboot appears in command line.
  • Once you are in fastboot window type "fastboot devices" and press enter.If your device is detected you will get a serial number in list of  devices attached.If not uninstall drivers and install them again.
  • Now type the command "fastboot oem get_identifier_token" and hit enter.You will get a serial key.Copy that key.
  • Now open htcdev.com and register with your email id.
  • One you sign up there.Log in to your account and you will find several options if you explore.
  • Click on unlock bootloader option and select your other supported devices.
  • Proceed all other steps as mentioned and you are are asked to submit Submit your key there.
  • You will receive a mail from Htc which includes a unlock_code.bin file. Download it and move it to fastboot folder which is located in programming files.
  • Now type the command "fastboot flash unlockcode unlock_code.bin" and hit enter.Check your device ,you will notice a notification on One mini m4  to confirm unlocking bootloader. Click on yes.This will unlock bootloder and also erases all data of your Htc one mini m4.
  • You have a unlocked bootloader device which is ready to accept a recovery to be installed.

#2: Install Twrp recovery on Htc one mini m4 

  • Now download twrp recovery for one mini m4 from above link and paste it in fastboot folder.Rename img file which you have copied to fastboot folder as recovery so that it will be easy to type command.
  • Put the device in fastboot mode again.
  • Type the command "fastboot flash recovery recovery.img".This will install latest twrp recovery on your htc one mini m4.
  • Once you have installed recovery reboot it and copy cyanogenmod 12.1 which you have downloaded on your computer to one mini m4 internal storage and head over to next step.

#3: Flash Cyanogenmod 1.2. rom using Twrp

  • Download Cm 12.1 for  htc one mini m4 (androidfilehost mirror) and Gapps transfer it to sdcard or internal storage of your device.
  • Power of  device completely and wait for few seconds to confirm that it is off completely.
  • Hold volume down and power button at same time for few seconds.
  • When you see hboot release buttons.Using volume keys for navigation select recovery and click on power button to reboot into twrp recovery.
  • Once you are in  twrp click on  backup and select all partitions which you want to backup. It might take about 5 minutes for backup to complete. Don't interrupt backup process.
  • Once backup of your existing rom is completed click on back button.Wipe data,cache and dalvik cache and wipe system partition too.
  • Now select Install and navigate to location where you have placed your cyanogenmod Rom and gapps zip files.
  • Flashing this might take about 5 minutes or even less.Once flashing is complete do a factory reset again.
  • Now reboot to system.

#4:Flash boot img through fastboot

If you reboot your htc one mini m4 primou after flashing cm 12.1 rom zip file it either stuck at boot logo or doesn't boot at all,that is shows blank screen after rebooting.In this case you have to follow this step.If it boots up without any problem
  • Extract cm 12.1 zip file which you have downloaded on your Pc.
  • You will find a boot.img file copy this file to fastboot folder of step 1.
  • Now power off htc one mini m4.If it stuck on boot logo or bootloop then press and hold power button for about 15 seconds.It will be forced to shut down.
  • Now put it in fastboot mode again.Hold volume down and power button at same time for few seconds.When you see hboot (boot loader) release buttons.Using volume keys for navigation select "fastboot" and click on power button to reboot into fastboot.
  • Now connect it to computer.
  • Open fastboot again.If you don't know how to do it follow step 1.
  • Type the command "fastboot flash boot boot.img" and it will be flashed in seconds.
  • once done type the command fasboot reboot-system or simple disconnect it from computer and reboot it.This time it boots for sure.
    By following above simple guide you will be able to install cyanogenmod cm12.1 custom rom on htc one mini m4 without any problems.For any further assistance just leave a comment below.