HTC 626 bricked when trying to root the phone. What to do now? I have bricked my HTC 626. I was trying to root my phone. 

I installed a recovery. As you can understand that I flashed recovery after unlocking bootloader. But I have s-on on phone. I then got some file on Google searching it for ways of recovery, super su, and boot.img.  

I tried to open the phone in recovery mode but recovery wasn't working.
Then I thought flashing boot.img will work so I flashed it.
On the tutorial I found on the net there was a command for erasing the cache. Now it is not booting up. I tried to switch s-off. Didn't work.

Recovery did not work. I can only go through fastboot mode. ADB commands are working. I found some details that ruu.exe could help. But it is more complicated that I couldn't find proper ruu. 

I did download HTCdev source file.  

Here is getvar all details version: 0.5

version-bootloader: 3.19.0.0000
version-baseband: 1.0.U20402.1@50313
version-cpld: None
version-microp: None
version-main: 1.10.709.2
version-misc: PVT SHIP S-ON
imei2: Not Support
meid: 00000000000000
product: a32_ul
platform: hTCBmsm8916
modelid: 0PKX21000
cidnum: HTC__621
battery-status: good
battery-voltage: 0mV
partition-layout: Generic
security: on
build-mode: SHIP
boot-mode: FASTBOOT
hbootpreupdate: 11
gencheckpt: 0
mfg-name: 1001 

What should I do to unbrick the phone?
If you have access to bootloader (fastboot), do the following:


Unlock the bootloaderGeneral command:fastboot oem unlock (Not sure for your phone)
Flash a custom recovery: CWMUse the command: fastboot flash recovery *recovery_name*.img
Download and Flash this stock ROM from CWM: CWM Backup


(Source: https://www.facebook.com/htc626gplusdev)