Sounds like a hardware issue. If it isn't damaged and is still covered under warranty, Samsung will foot the bill, I think. As long as software updates are official and the device isn't rooted, unless there's been physical damage to the device, it should still be covered considering how long ago it was released. 🤞
go to a Samsung Experience Centre is the best course of action. Here's what you can expect:
Diagnosis: A technician at the center will examine the device to confirm the cause of the camera failure. They will check for any physical damage and run diagnostic tests to determine if the issue is hardware or software related. Repair or Replacement: If the camera failure is confirmed to be a hardware defect covered under the warranty, the technician will likely repair it on-site, often on the same day. They use genuine Samsung parts to ensure the device is restored to its original state. Data Protection: Before any repair, they will likely advise you to back up your data, although it sounds like a factory reset has already been tried. Cost: If the issue is covered by the warranty and no physical damage is found, the repair will be free of charge. If the technician finds physical damage that caused the camera to fail, they will provide a quote for the cost of the repair.