Autofocus does not work after multiple camera replacements.
So a bit of backstory.
I have a iPhone SE 2020.
One day the rear camera completely stopped working with only a black screen.
i then bought a used iPhone 8 camera, because an article from ifixit said the parts are interchangeable.
After i put the camera in, it worked but the autofocus didn't.
So i did a bit of trial an error and found out that if i close the camera app and tap very softly on the lens directly and then start the camera it works fine for a while.
But when the Phone sleeps for a bit or gets rebooted it most of the time doesn't work anymore.
Repeating the tapping fixes it again.
I then bought another iPhone 8 camera because i thought the other one has a defect. But the second camera has now the same issue.
I then took the camera form my dads iPhone 8 wich is known to work fine. But the same issue appeared.
When i test the cameras i bought on ebay in the iPhone from my dad, they work fine.
I am at a loss right now.
On ebay the cameras are mostly listed to be compatible with iphone 8 and se 2020.
Are they really or is it possible i have mainboard damage.