We will likely need to have a back and forth conversation to solve this. In order to reply to this thread you will need to register an account. This link will help you do this...
https://forums.androidcentral.com/as...-new-post.html
It sounds like this thread may have the answer to your inverted camera issue. It's about 4 posts in, but I would recommend that you explore the entire thread for any and all information as there may be other tips in it to help you...
https://forums.androidcentral.com/sa...wn-camera.html
Once you register and reply we can start looking into your back camera, but fixing your front camera may take care of that... Post back and let us know where you stand after trying some the items outlined in the other thread.