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

Our app is running on a device managed by Headwind MDM, but it can no longer perform Bluetooth interactions.
In the MDM configuration, Bluetooth is set to Enabled.

Before the device was managed by Headwind MDM, our app was installed and used as a system app, and Bluetooth functionality worked as expected.

Our app needs to:

  • scan for Bluetooth devices,

  • pair with them without user interaction, and

  • establish a connection.

The following permissions are declared in the app:

<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" />

What changes or additional configuration are required to restore this functionality?

ago by (120 points)

1 Answer

0 votes

There is a known issue with Bluetooth connectivity on a few device models managed by MDM. 

Here's a possible workaround:

1. In Headwind MDM, open the configuration details, MDM settings, and make sure there's no restrictions related to Bluetooth.

2. Turn off kiosk mode if it is on. If the Bluetooth will work and require user interaction, you may need to enable com.android.settings or another related package.

3. Check out logcat for Bluetooth-related errors.

ago by (45.1k points)
The Problem is that we need the BLUETOOTH_PRIVILEGED Permission that we can automaticly connect to bluetooth devices without any user interaction. This is only possible if is a system privileged app.

I try now that our app is preinstalled as an systemapp again.
Is it possible that i can update the app with headwind?
Do i have to set someting special in configuration/application if i preinstall with the Android image?
To grant system privileges to your app, add android:sharedUserId="android.uid.system" to AndroidManifest.xml and sign the app with platform keys. There's no need to preinstall the app in the ROM (you may not be allowed to update), just install the app via Headwind MDM, you'll be able to update as well.
...