Google play services app is the culprit. Fix : Go to settings > Apps > Google Play Services and force stop. This will fix your camera anytime the focus isn't working. This works every time.
open