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
Hello

There are other settings that the user may need to change while in Kiosk mode. Like WiFi connectivity, for which you have a WiFi manager app.

Similarly what app can we use to change Brightness setting? I tried a simple app and it goes back to home screen as soon as a settings screen shows up asking to grant permission to change "Allow Modify System Settings".

Please suggest how to allow this action?

Also under Configuration->MDM Settings there is Allowed activities. Where can I find a list of activities that I can add there?
by (160 points)

2 Answers

0 votes

In kiosk mode, the Android OS silently block packages based on their package ID. It's not possible to enable certain activities of some package, so "Allowed Activities" doesn't work in kiosk mode.

I would suggest you setting up two configurations, with and without kiosk mode. At first start, the device runs without kiosk mode so your app can request the "Allow modify system settings" permission. Once all permissions are granted, you switch the device into the kiosk mode.

Headwind MDM manages brightness by using the DevicePolicyManager method:

devicePolicyManager.setSystemSetting(adminComponentName, Settings.System.SCREEN_BRIGHTNESS, brightness);

If you want to use this method in your application, you need to sign your app with the same keys as Headwind MDM (contact us to request keys), and add the following attribute to AndroidManifest.xml:

<manifest ... android:sharedUserId="com.hmdm">

by (37.4k points)
0 votes
For anyone else looking to do this, I am using the free app "Brightness" which is Google Play ID: com.arogulin.brightness.  I have tried several but this one works great in Kiosk Mode.
by (140 points)
...