
- Reboot your Android device into TWRP Custom Recovery mode.
- After entering TWRP, take the Nandroid backup of your current ROM.
- Now, choose the Wipe option, from the main menu.
- On the next screen, swipe right to reset factory settings
- This will clear all the data of your device (That’s why it is recommended to take the backup of all of your files).
- Click on the Install option to flash the custom ROM.
- Now, go to the main menu again.
- Choose the Wipe option.
- Click on Advanced Wipe Option.
- Now, mark the box check in front of the System.
- And click on Repair or Change File System.
- Now, on the next screen, choose the Resize File System option.
- Now, swipe right to resize the system partition.
- If the process executes successfully, then proceed next steps otherwise go back and implement the above steps again.
- Now, install the Gapps package file.