My Android 7.0 phone has a flaw: When using the camera often, and the phone's uptime climbs beyond 100 hours (launch camera, capture, lock screen), at one point, the camera viewfinder just freezes, and the camera application crashes.
Then, it fails to connect to the camera, while the battery monitor claims that the camera is still on, even when disabling the camera permissions for every single user and system app.
Rebooting does fix that problem, but rebooting to solve problems is considered as a terrible violation of the Linux philosophy, and only an emergency workaround.
How do I identify the application/service that locks the camera and kill it?
There is only one rule: must exclude rebooting.