Soft Brick? I closed the magnetic case cover of my Nexus 7 while my newly flashed Rom was optimizing apps and....Brick I bought a Nexus 7 2012 grouper.
 I used wug's nexus 7 rootkit tool for windows on WinXp.
The drivers took a bit of tinkering but eventually I got the Raw drivers configured.
Everything was going along just fine, unlocked, rooted, flashed recovery happy day!
Downloaded and flashed Paranoid Android it booted up. 

Paranoid was optimizing my apps (it had a couple hundread to do) so i figured I was past the critical part so I closed the case and put it down to do other things...

Aparently this was a bad idea. It boot looped when I turned ir back on. Tried to optimize apps again for a secons then went back to the boot animation. I turned it off and back on and it never went to app optimization again just boot animation. Now it just fails to boot and I cant get past the bootloader.

Recovery mode wont load but bootloader will.

I tried to flash recovery but adb says it cannot find the device.
I had this problem before until I got the right drivers installed and updated and the kicker that made it all work was my pc's signature popping up on my nexus and I said ok to give access. Because im stuck in bootloader mode it doesnt give me the option to allow the pc access, this seems like a problem.

I tried to use wugs tools for softbricked devices, flash stock with wugs but I get

Writeing bootloader FAILED
Invalid State

And the .bat hangs and cannot be closed without a reboot.

I also tried from linux where I have the android dev setup. Before I started this process it allowed me to access the nexus file system pretty reliably. Now linux does not notice that anything is plugged in and adb says Device Not Found.

So this is where I am at. Please and thank you for your help.
Since you do have working fastboot access, you have a few options from there:

You can...


Get a custom recovery like TWRP. Then run fastboot flash recovery /path/to/twrp.img.

With TWRP, you can to try to reinstall ROMS, do factory resets, and make backups of your current system (Which may be a good idea, even if it's bricked).

Do a factory reset with fastboot format data and fastboot format cache. 
Try to install stock Android (keeping data) from the Factory Images by running included flash-base.sh, included in the image download. 
If all else fails, you can unbrick it by running the flash-all.sh - which will essentially reset it to a like-new state, with the stock OS and no data.


If you wind up doing a factory reset after all, you can use Titanium Backup to extract the apps and settings from the TWRP backups.