Try going into fastboot mode. Its comparatively much easier to go into fastboot mode. To go into fastboot mode, turn off your phone and press and hold volume down + power keys
at same time until you get to a black screen with android logo and a bunch of stuff written.
Now there you also have option to boot into recovery, just press volume buttons to switch to boot modes and when it says recovery
, press power button to select boot into recovery option.
Possibility 1:
You were able to go into recovery.
Here you can also try to factory reset and boot your phone. If that doesn't work, proceed below.
Case 1:
You have the rom to flash inside your phone (sdcard).
if you do have rom inside phone then just wipe system, cache, dalvic
and if rom isnt same as the once currently installed on your phone (the one that is bootlooping), then you also need to wipe data
.
Case 2:
You were able to boot into recovery but dont have any rom inside phone to flash.
In this case, setup ADB, connect phone while its in recovery to adb.
Download a rom for your phone (you can head over to XDA to look for rom and download one you like). Just download it to your pc.
Connect your phone to pc using USB.
Open cmd and enter the command adb push PathAndNameOfROMFile.zip /sdcard/
. This will push the rom file you downloaded above to sdcard.
Wipe your system, dalvic cache, cache and data (recommended, but not necessary if you downloaded same rom as previously installed on your phone).
Reboot.
Possibility 2:
You were unable to go to recovery due to whatever reason.
Boot into fastboot mode again.
Option 1:
Try wiping data and factory resetting from here (I wont be responsible for your data here).
To factory reset, first setup adb from link provided above. Then go to download mode and connect phone to pc.
Open CMD/Terminal. And enter these commands:
fastboot erase data
fastboot erase cache
Now try rebooting. If that didn't work, move on to Option 2.
Option 2:
(We are going to flash a factory image.)
So first, download factory image for your phone here.
Extract downloaded archive using winrar.
Connect your phone to pc using USB.
Execute the flash-all.bat script (for Windows) or flash-all.sh(for MAC and LINUX) in the folder where you extracted the factory images.
NOTES:
For MAC: You'll have to edit the flash-all.sh, and add "./" before every fastboot command.
This script will also flash stock recovery. If you are not sure that your recovery is ok, then let this happen. Otherwise if you are sure that your recovery is fine and not corrupt. delete the file with word recovery
in it. Open and edit whatever flash script you will be using to flash and remove these lines:
fastboot erase recovery
fastboot flash recovery recovery.img
Semi-Case 1:
Everything flashes fine.
In this case just skip the Semi-Case 2
and move on.
Semi-Case 2:
There is some problem flashing some specific part.
In this case, you can try flashing manually.
Run these commands One by One in cmd/terminal (replace C:/
with path to where you extracted the archive):
fastboot flash bootloader C:/image-hammerhead-xxxx/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-xxxx/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-xxxxx/system.img
fastboot flash userdata C:/image-hammerhead-xxxxx/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-xxxx/boot.img
fastboot flash recovery C:/image-hammerhead-xxxx/recovery.img
(Skip the above command if you dont want to flash stock recovery and are sure that your current recovery is not corrupt).
fastboot erase cache
This will manually flash everything. Hopefully this time it should be fine.
Wait for everything to flash.
After everything has finished flashing, use volume buttons to select recovery
option from fastboot and press power button to boot into it.
Select factory reset and reboot phone. You will turn on and you although are still rooted (just need to install a custom recovery and supersu from play store).
Hope this helps.