How to disable camera in android 12 AOSP?

372 Views Asked by At

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?

0

There are 0 best solutions below