My Samsung A5 (2017) running Android 6.0.1 takes pictures on it's own every 2 minutes when the front camera is turned on. If I turn the main camera on it starts recording every 2 minutes. I noticed it yesterday, and reset the device.
Now it instead closes both front and back camera after 2 minutes and goes to the homescreen. I haven't noticed any battery loss at all.
So now I wonder, is it a defect in the camera or is someone spying on me?