Sony Xperia Z stuck in a bootloop My Xperia Z is stuck int a bootloop. It goes up to the colorful waves and then it restarts. It was connected with USB in charging mode. Suddenly, it starts restarting. I thought it might be carrying out some of its processes, but even after an hour of restarts, it failed to start normally. Now my battery is completely drained. 

I want to recover/restore it to factory settings, but I can't because of bootloops. 

The phone is only two months old, and I do not want to format and restore flash files
via flashtools as suggested on the XDA forums. Getting into recovery mode and restoring from there will be preferred, instead of flashing. My last resort will be a Sony Service Center.
You have to download a rom for your mobile.

Download it from

https://xperiastockrom.com/category/firmware

Download a flashtool from

https://developer.sony.com/develop/open-devices/get-started/flash-tool/


open the  flashtool
Connect a USB cable to your computer.
Turn off your phone.
Connect your phone to the USB cable while holding the Volume down key.
Select the software you want to flash in the Service list. The tool automatically detects the phone model and lists available software versions.
Click on Apply Service. The phone will now be flashed.
When you have flashed your device, you can disconnect your phone from the computer. The first time the boot-up might take a little longer than normal. 


Hope it will solve your problem...