So, make sure you create a backup of entire important data. You can follow our guide to enable USB debugging. In latest versions of Android, the Enable Debugging option will be hidden in depth of settings panel. You can do it by following the below mentioned path. If you’ve not installed previously, download them form below source and install manually.
For the PC to detect the device, it should have installed Samsung USB drivers. To transfer firmware packages, it is to be connected with PC. If your device model number doesn’t match the mentioned one, do not attempt this tutorial.
The device model name should be Samsung Galaxy Grand 2(SM-G7102). It is vital to check device model number before rooting/unlocking/flashing process to ensure flashing compatible files on the device. Guide to Update Samsung Galaxy Grand 2 to Android 6.0 Marshmallow via CyanogenMod based firmware.