So, I tried everything available on the internet to make my camera come back to life and nothing worked, but I've come with a simple solution that might help those in the same situation.
A little background, I tried:
1 - Cleaning camera cache;
2 - Cleaning all camera data;
3 - Using another camera app;
4 - Reboot;
5 - Turn on and off;
6 - Set via developer option "no background processess" and turn off all camera notifications;
7 - Reset all app preferences;
8 - Take the battery for an hour and turn on;
9 - Factory reset;
10 - Reflash at least 3 different stock ROMS.
None of those worked for me, so I decided to open the cellphone following some rear camera replacing videos on YouTube. I tried taking the flat off from both cameras (rear and front) and putting them back, put all the screws back and turn the phone to see what error that might come. When I turned on nothing seemed to change, so I turned off and replaced all the camera flats back and just fixed the back not putting the screws back.
When I turned the cellphone on, to my surprise the cameras were back, but as soon as I put the screws back, the cameras would stop again. The same happened when I put the back plastic lid (don't know the name) on without the screws. Long story short, I managed to find which contacts were mildly oxidized and cleaned them with an electronic contact cleaner, but I believe isopropyl alcohol and some rubbing may do the work, heres a picture of the contacts:
If there's your warranty has expired you could give this a try, worked for me and also fixed a problem with the volume down button (I cleaned its contact by removing the camera lens glass).