I had the same problem with my Nexus 5x - not focusing and buzzing noise (esp. when vibrate sensor was triggered). Camera glass of cover had cracked, which I replaced. After this the camera wouldn't focus. I thought that maybe there was something special about the glass that was broken, which...