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

HI,

I'm evaluating the community version installed on-premise for my company. Looking ahead, if things work, we would move to the premium version (on-premise anyway).

I can't make an internally developed application work if I install it via headwind mdm on the device (installed on the same non-administered device it works correctly).

Studying the device's logcat I see (many) error messages regarding NFC access permissions:

--------- beginning of crash

03-28 14:38:30.171  7138  7138 E AndroidRuntime: FATAL EXCEPTION: main

03-28 14:38:30.171  7138  7138 E AndroidRuntime: Process: com.example.imballaggi_app, PID: 7138

03-28 14:38:30.171  7138  7138 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {com.example.imballaggi_app/com.example.imballaggi_app.MainActivity}: java.lang.SecurityException: NFC permission required: Neither user 10151 nor current process has android.permission.NFC.

Any idea?

Thanks in advance.

by (160 points)

1 Answer

+1 vote
Headwind MDM should automatically grant all runtime permissions, but probably this doesn't work correctly for NFC.

Please try the following: open the configuration which device is using, and set "Permissions for other apps": "Ask user for all permissions". Then uninstall your app, and re-install it through MDM. Probably this would make your app working.

Also, make sure the field "Restrictions" in the "MDM settings" tab is empty.
by (37.6k points)
[RESOLVED]
Thank you!
...