My phone was recently stuck in factory mode for a few days. With the help of LordVincent, we managed to fix the issue. I ended up copying my wife's /efs directory. It wouldn't allow me to paste it until I deleted my efs directory. I just pasted hers into the location that I deleted mine from. This link was a help but not how it ended up working for me. I also wiped cache and davlik cache from recovery.
See this link
efs problems and solutions - Post #4512 - XDA
)