Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes

I would like to be able to disable camera activation when a user double presses the power button. I am running the MDM in Kiosk Mode.

I know I can disable the camera completely by not allowing the system camera in the config but I may need to use the camera in my app in the future.

A quick search brought up this solution for an MDM:

DevicePolicyManager dpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); ComponentName adminComponent = new ComponentName(this, MyDeviceAdminReceiver.class); // Disable camera launch gesture (Only on fully managed devices) dpm.setKeyguardDisabledFeatures(adminComponent, DevicePolicyManager.KEYGUARD_DISABLE_SHORTCUTS);

Is this available  in Headwind MDM?

Thank you  

by (180 points)

1 Answer

0 votes

The official Android documentation doesn't mention KEYGUARD_DISABLE_SHORTCUTS. There is a KEYGUARD_DISABLE_SHORTCUTS_ALL flag which apparently does what you're looking for. 

This flag is only available on Android 14+ and this option is not available in Headwind MDM yet.

by (40.1k points)
...