Chosen Solution

So my back camera started stuttering a while back and I found that magnets can get it to work, so I bought some small 3mm neodymium magnets and put them inside the phone next to the camera and now both the front and back camera are not working. any ideas?

You put it on the device internals? Where exactly? Neodymium is still an electrical conductor And putting any sort of electrically conductive material near a circuit board has the potential to do damage. Have you tried taking the magnets back out to see if there is any difference?