'Is there a way to blacklist a camera lens of an Android device?

I wish to blacklist one of the camera lenses of my Android phone. It's running Android 12. I am looking for a way to block it, similarly to PC, where I can use modprobe to block my internal camera.

Any help would be greatly appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source