I'm writing a program that depends on the camera. I need to test how my program reacts when the camera is not present or disabled.
Is there a way to turn it off completely?
|
I'm writing a program that depends on the camera. I need to test how my program reacts when the camera is not present or disabled. Is there a way to turn it off completely? |
|||||||||||||||
|
|
If you have root access on your device and just denying access to the camera is enough, you can try an app like Permissions Denied to disable the permission for your app to read the camera. If you are comfortable with taking apart your phone, it looks like the camera cable could be physically disconnected without going too far into the device, according to this teardown. |
|||
|
|