Chosen Solution

I‘ve changed the backcover of my iphone x and the flashlight fell off of the flexcable. I glued it together. now the camera and the flashlight don‘t workl. should I replace it? pls help me

Well gluing the flashlight back to the flex cable certainly won’t fix the issue. Did you replace the glass only or do a frame swap?

What you are telling us it looks like you should have to replace the cameras, it has 2 they are connected together but have two connectors. A new camera set about 60 dollars. If you could give us a picture of what you are talking about I could give you better advice.