Chosen Solution

Did someone change the battery of htc m7 and have some problem with app stock of camera? I’ve already done with factory reset on setting but no success and even using htc’s test ##3424##

Have you tried reseating the camera? Take a look at the camera connector, cable and the nearby traces.