Camera and Flashlight error in LineageOS 17.1 osprey

So I had installed the latest lineageOS version ( 17.1, android 10, osprey moto g3) from the official website and flashed it correctly, but after some time, I noticed that the torch icon was greyed out in the status bar and any camera app won’t work.

The app showed- "Camera stopped working"
Cleared cache, app info, rebooted the phone but nothing seemed to work.

I thought that flashing the ROM again would fix it, I redownloaded the latest lineageOS version, new GApps, and flashed it in the…

Read more

Source: XDA