I am trying to disable the camera on a custom android 12 ROM based on the state of another peripheral.
I looked into the function setCameraDisabled(Component Name, Boolean) and tried to invoke it. It results in a security exception. How do we get the component name? What other methods are there to disable the android camera completely on the device?