Share your experience!
If you repaired phone software and still having problems,I suggest taking the phone to a close sony center for more help.
You still have warranty,right?
I had similar issues with my old Xperia X10 a few years ago. It always seemed to turn off while I was using the camera. I went through the whole factory reset, etc. and even sent it off for repair, all to no avail. It turned out to be a battery on its last legs. I put a new battery in it and it was back to normal.
Hope that helps.
Ed.
If you have the skills you can replace the battery but this would void any warranty you have
For details see here