Android 11+ how to access the export files of ZEBRA datawedge profiles?

TS
Thomas Seiler
Bison Schweiz AG

As fairly known, scoped storage restrictions are enforced on all device apps. As a result, all Android agents or any third-party app can no longer access files stored in any other app’s app specific external storage. 

I read quite a lot of discussions in the last days, but not really found a best-practise for my problem. How to access the export files of ZEBRA datawedge profiles via SOTI remote control?

Sources I read were:

https://discussions.soti.net/articles/impact-of-android-11-scoped-storage-restrictions-on-android-agent

https://techdocs.zebra.com/enterprise-browser/3-3/guide/scopedstorage/

https://developer.zebra.com/blog/scoped-storage-enterprise-applications

https://discussions.soti.net/thread/android-11-folder-permissions-zebra

Can anyone help me with a sample how to solve this on a ZEBRA TC52 device?

a year ago
Android
ANSWERS
SB
Simon Breuer
a year ago

Hi Thomas,

if your ZEBRA devices use MX version 10.4 or higher, the permission should be granted silently for the MobiControl agent.

So, you should be able to access the files without any problems.

If you are using an older MX version, you could force the MC agent to request this permission by

  • ... activating this option in the enrollment policy
  • ... sending the following script to the device: request_appops_permission android.permission.MANAGE_EXTERNAL_STORAGE

In both cases you would need to confirm the request manually on the device.

MD
Matt Dermody Diamond Contributor
a year ago

Ultimately Zebra needs to provide us with a new version of DataWedge that allows you to select where the export is saved. The problem is that the export only goes into scoped storage which the agent can't access through any means. There is a workaround you can leverage for this problem however. You can Remote Control the device, open the files app (not the file explorer in RC but the files app on the device), navigate to the scoped storage directory of DataWedge (you'll have to use the arrow keys and enter button on your keyboard), copy the datawedge.db to the Download directory, then download the datawedge.db off the device from the RC File explorer. Note that this option was temporarily unavailable in BSP 11-35. Higher or lower versions of the BSP should restore this capability. 

A
ABMOD@SOTI
a year ago

Hi Thomas Seiler,

Thanks for posting on SOTI Pulse, Thanks Matt, and Simon for responding to the post, your expertise and willingness to help are greatly appreciated!

Have you had an opportunity to test the suggested solutions by Raymond and Rafael, and has it successfully addressed your query?

If not, or If you have any additional questions or concerns, please don't hesitate to reach out. We're dedicated to providing assistance and support.