Most Weirdest Thing
So today my friend asked me to check out his Galaxy S3 because all of a sudden his phone went off and went into a boot loop with just the samsung galaxy s3 start screen appearing then dissapearing. His recovery menu didn't show up but download mode did so I went into ODIN and tried everything (different pc's, usb's, disabling KIES) and kept getting some PIT file error (I had re partition unchecked, i think the error was 'Can't read PIT'). So I gave him it back and asked him to try taking it to Samsung as he has official firmware and stuff.
After I gave him his phone and came home, I had some music playing on my phone and all of a sudden... BAM! I was stuck in a bootloop with the same problem! No idea whatsoever as to why.
Yesterday I flashed CM11 on my Galaxy S4, everything was perfectly fine and today it's stuck in a loop on the Galaxy S4 boot screen (Not samsung logo). I can access recovery and download and have wiped data, cache and dalvik cache and still no luck.
Before CM11 I was on stock samsung 4.4 with knox flag as 0x1
Any help is much appreciated!