Hi i know the solution of that problem , open the backcase, try to remove the back camera that paste in back housing, then connect it to the board thats it
Thank u so much for your concern its very useful for me same issue with my phone after my phone fix by electrician for changing lcd after that he changed the camera lens and flashlight thats why my camera same as him upsidedown then flashlight not response when i see ur comment i immediately back to technician who fix my phone then i ask him to fix again coz of hes mistakes . Thank u and godbless