Chosen Solution
So, i ordered some replacement parts for my huawei p9 lite(Main camera, front camera, usb board), Everything i replaced is working, except for the main camera, the new main camera isn’t working, because when i open my camera app it immediately closes, snapchat shows me an error that says: Snapchat was unable to open the camera app. I made sure that the new main camera isn’t working for some reason, because when i put my original camera back in, everything works, including the new front camera). Am i missing something, could it be a hardware problem or a software problem? Please help, i need advices quick. Thanks.
Okay so, i got in touch with the supplier, he sent me a new replacement, and now everything works, it means the new main camera was potentially defective. Thank god it wasn’t a software problem, that would have been !&&*.