This question is an exact duplicate of:
My Yuphoria 5010 got into bootloop after installing a custom ROM. My friend tried to fix it but deleted the recovery following a tutorial.
Now the device is stuck at the boot logo.
Is it possible to hard format the device to the default ROM anyhow?
Update: This is not a normal bootloop. The problem here is the ROM could not be rewritten. Any writing attempts are being failed. The device was infected with a malicious adware which couldn't be deleted and that's the reason I tried to format the device. Is there any way around if the writing modules fail?