I had a client come in yesterday and had the shaking camera. Upon closer inspection of the functions of the phone, I found the compass wasn't reading correctly. I used a magnet as suggested by @Gibbz Arcilla and it fixed the shaking camera and the compass. I believe it is a board level problem. The customer did use the magnet for the future so I was unable to diagnose the actual problem. Side note the phone was ripped apart when I received it so it could be anything. As soon as you reboot the phone or close the application the problems come back. So my customer is going to tape it to the glass.