Soti MobiControl dosent have MANAGE_EXTERNAL_STORAGE permissions on Zebra ET45 device

Solved
SD
Stefan Dumitrache
Orbico Croatia

I cannot access the folders/files from %sdcard%\sdcard\android\data\  on Zebra ET45 tablets

I need to upload a config file inside another aplication folder, need to do this to 400+ devices so doin it using Soti is the only practical solution

I read here that Zebra devices has hidden MANAGE EXTERNAL STORAGE permission (https://discussions.soti.net/discussions/impact-of-android-11-scoped-storage-restrictions-on-android-agent)

But for our devices it dosent seem to work

I have opened a ticket with support for more than a month now but with no resolution in sight

Anyone else encountered this problem?

a year ago
Android
ANSWERS

How did you try to do this?

You can't do this using remote control, try to copy it to this location via a package (or maybe file sync rule but I'm not very familar with) (best practice) or copy it somewhere on the device and then use a copy script to put it into the correct folder (bad workaround).

SD

I tried with a file sync rule witch works if I want to download the config file to an allowed location like %sdcard%

but I need it to be downloaded to %sdcard%\android\data\com.symbol.datawedge\files so the DataWedge app can load the config file on its own without having the user to import it manualy 

The problem is Soti cannot see anything past the "data" folder

Normally if you can copy files to %sdcard% you should already have access to external storage.

Try to download the file to the download folder instead maybe the path should look like different (i know that it should be like you wrote in a package but i needed to change it for me in a script as %sdcard%/... didn't work but /sdcard/...).

MD
Matt Dermody Diamond Contributor
a year ago

There is no way for SOTI, or any EMM for that matter, to access scoped storage directories on /sdcard/Android/data/ on A11+ devices. This is a restriction imposed by Google inherent to the Android OS and is not a problem specific to the ET45 or SOTI specifically.

Zebra unfortunately and maddeningly has not updated DataWedge to allow you to export the datawedge.db files to anywhere other than scoped storage in reaction to this. As a result, you either need to use adb to extract the datawedge.db off of a sample device. There is also an alternate workaround that has been devised to copy the file from the files app on the device to a public directory like Download where it can then be retrieved via Remote Control. The Files app on the device should have elevated permissions and access to these scoped storage directories. 

More information in this thread:
https://discussions.soti.net/thread/android-11-how-to-access-the-export-files-of-zebra-datawedge-profiles

SD

Well I want to do it the other way around. I have the datawedge .db file but I want to use a file sync rule to download this .db file to the directory where datawedge stores profiles which is inside the com.symbol.datawedge folder

@Stefan:

Ever tried this:

I recommend a package that places the .db file in the following directory and then a post-install script to make sure the file has the right read/write permissions set. Without the post-install script you'd likely need to have the device(s) rebooted before you see the profiles appear. 

 /enterprise/device/settings/datawedge/autoimport/datawedge.db

Post-Install:

__chmod 777 /enterprise/device/settings/datawedge/autoimport/datawedge.db

Comes from Matt :) found here: https://discussions.soti.net/discussions/datawedge-files-in-zebra-device

In that case you don't need access to the folder you are pointing to but not sure if this still works with the latest AE Versions.

Solution
MD
Matt Dermody Diamond Contributor
a year ago

That's right. datawedge.db files do not get placed in scoped storage when you're deploying them from an MDM. They go go the /enterprise/device/settings/datawedge/autoimport/ directory which is not scope storage restricted. You're trying to put the file in the wrong place. 

SD

In my case the correct file location would be %sdcard%\android\data\com.symbol.datawedge\files\autoimport

But I cant access anything past %sdcard%\android\data trough Soti therefore Soti cannot copy the datawedge db file to the desired location

I dont really need the db file to be readable and executable 

MD
Matt Dermody Diamond Contributor
a year ago

/enterprise/device/settings/datawedge/autoimport/ is the correct directory. I manage 100's of thousands of Zebra devices with SOTI. That is where it goes and that is the working process. I suggest you try it out. 

SD

Yes you are correct I was confused by that location for a moment. It seemed to work on a test device

Will try it out on a number of devices and mark as solved if I dont run into any issues

Thanks 

JG
Juan, Garcia
6 months ago

Mi Matt, is this also Working under Android 14?

Regards

Juan

JG
Juan, Garcia
6 months ago

Hi Matt,

we have some problems to Autoimport a Datawege konfig to an Android 14 Devices (Zebra)

Did you have tried this already ?

Regads

Juan

C
CKMOD@SOTI
a year ago

Hi Stefan 

Thanks for posting on SOTI Pulse, Thanks Matt, and Rafael for responding to the post,  

We are pleased to hear that you have found a solution to your query. "Thank you, Rafael, for providing a solution to the customer's question. Your expertise and willingness to help are greatly appreciated!
 
If you have any additional questions or concerns, please don't hesitate to reach out. We're dedicated to providing assistance and support.


Kind regards, 
Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |