I had my iphone 4 jailbroken at ios 6.1.3 and all was good until I had install AppSync from cydia, then my Iphone wouldn't reboot and I got the error "error at line 5342". so I logically tried to upgrade to ios 7.1.2 then downgrade back, but every time I try to activate or jailbreak the device on ios 7.1.2, I get the "error at line 5342"