I had a similar issue. After replacing the camera, the auto focus wouldn't work anymore. I did not test it with a manual focus app.
After some research i found out that this could have been caused by a faulty connection of the ribbon cable.
I reopened the phone, detached the ribbon cable and firmly pressed it on again. Had to repeat this twice, and after the second time the camera is doing auto focus again!