Flashing the Custom ROM to the phone

In this section, we will look at the installation steps involved in installing a pretty popular Custom ROM called CyanogenMod 11 (This keeps updating with the original Google Android version):

  1. Download CyanogenMod from the following URL and save it in the Phone Rooting directory. I have downloaded the latest GSM non-LTE version cm-11-20151004-NIGHTLY-n7100.zip from https://download.cyanogenmod.org/?device=n7100.
  2. Connect the device to the computer using a USB cable and use the adb push command to copy the file to the /sdcard and unplug the cable once done. You can also drag and drop by opening the device in Windows Explorer on your system:
    C:\..\Phone Rooting> adb push cm-11-20151004-NIGHTLY-n7100.zip /sdcard
    
  3. Switch off your device and boot it into the recovery mode by pressing the volume up, home, and power buttons simultaneously. You will see the TWRP screen, click on Install:
    Flashing the Custom ROM to the phone
  4. Select the Wipe option from the menu and Swipe to Factory Reset which clears the cache,data, and Dalvik VM:
    Flashing the Custom ROM to the phone
  5. You should see the Factory Reset Complete successful message as shown in the following screenshot:
    Flashing the Custom ROM to the phone
  6. Click the Back button and select Install. Select the cm-11-20151004-NIGHTLY-n7100.zip file as shown in the following screenshot:
    Flashing the Custom ROM to the phone
  7. Once you select the ROM, the following screen will be displayed:
    Flashing the Custom ROM to the phone
  8. Now click on Swipe to Confirm Flash to begin the flashing process of the custom ROM.
  9. Once the installation is complete, you will see the Zip Install Complete message as shown following screenshot. Click on Reboot System to reboot the phone:
    Flashing the Custom ROM to the phone
  10. Once the device starts, you should see the following CyanogenMod screen:
    Flashing the Custom ROM to the phone
  11. You will then see the usual Android system, set it up according to your liking and if you like to use Google Play Store, download and install it by following the same process as we have described here, and if you install GAPPS, make sure you install the updated SuperSU again. Finally, your screen should look like the following screenshot. You can find GAPPS at the following location:

    http://opengapps.org/?api=4.4&variant=nano

    Flashing the Custom ROM to the phone
  12. Connect to the device from the system using a USB cable and check if you can login as a root user.

In this section, we have seen how to install recovery software TWRP, how we can use TWRP to root our Android device, and finally how to install a custom ROM on our smartphone.

The process is similar for other phones, however, you have to make sure you are using the right version of the CM, TWRP.