Android phone will only boot into recovery and boot loader My HTC one will only boot into the recovery or the bootloader. I am trying to flash a stock ROM to my phone from the terminal on my mac, but I am getting this error:

Mikes-MacBook-Air:HTCOneRoot Mike$ ./fastboot-mac flash zip ATT-3.17.502.3-Stock-Rooted-DEODEX.zip 
sending 'zip' (1114992 KB)...
OKAY [ 37.597s]
writing 'zip'...
FAILED (remote: not allowed)
finished. total time: 37.618s

Mikes-MacBook-Air:HTCOneRoot Mike$
I don't know how you came up with that command line, but it appears to be incorrect. The format of the fastboot flash command is:

fastboot flash partition imagefile

I've never heard of a phone with a "zip" partition: they're usually called "boot", "recovery", "system", and "userdata".

My guess is that you need to unzip the zip file you've downloaded, which will give you files named something like "boot.img", "recovery.img" and "system.img". It may also include a script that already has the right fastboot commands to flash the whole system (but you'd need to rename fastboot-mac to fastboot to run it), and/or a readme file explaining the process. Read it carefully and follow the steps exactly. Guessing what arguments to give to fastboot will probably result in bricking your phone.