Zebra TC52 storage access

Solved
KS
Kerry Samantha Kerridge
Zebra OVS - (Next PLC)

Hi We have an in-house application which needs to have access to config files.  I have tired putting the files in the sdcard/config/rf/

But on android 11 our application cant see this folder. Android 10 and below is ok. 

Is it the application that needs to do something, soti, combination of the two or some zebra xml? 

They are enrolled as DO in soti and latest plugin is installed. 

2 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
2 years ago

Here are some suggestions offered by Zebra.

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

If it is an internal app that you have control over then you have two paths forward that I would recommend:

- Option 1: Declare the MANAGE_EXTERNAL_STORAGE runtime permission in your app manifest and then use Zebra MX to auto-grant that runtime permission. This will give your app access to read and write files from /sdcard/config/rf/ (assuming that is the correct directory). This is the easiest approach and allows you to continue configuring your app in the same way, but it is kind of kicking the can down the road as Google is forcing everyone away from external storage and toward Managed Configurations for config. 

- Option 2: Rewrite the app to leverage an alternative configuration strategy like Managed Configurations. This is a larger undertaking, but the strategic direction of Android long term. Some would say its an inevitability. 

Solution
RC
Raymond Chan Diamond Contributor
2 years ago

This is likely related to the tightened scoped-storage permission model imposed by Google on Android 11 and later Android system.  

MobiControl device agent itself is also impacted (Ref : https://discussions.soti.net/articles/impact-of-android-11-scoped-storage-restrictions-on-android-agent )

So are many of the apps released by giants such as Microsoft, Adobe, ..., etc.   Ask the developer of your in-house apps to study Google's latest documents related to scoped storage.  Making minor changes to permissions declaration and some read/write access module(s) and recompile the codes to release an updated apk MAY be able to solve the problem.  Zebra may also have moved related file to some other directory with renewed access permissions.  Check Zebra documentation or email their technical support team for more information.

M
MNMOD@SOTI
2 years ago

Hi Kerry,

Thank you for posting on SOTI Pulse!

I see that couple of solutions are provided here. Did any of these work for you? Did you get the information that you were looking for?

If you require any more assistance, please feel free to let us know. If not, feel free to mark the post that solved this issue as solution.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net l Discussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter 

M
MNMOD@SOTI
2 years ago

Hi Kerry,

I have marked the relevant post as solution. If this post did not assist you in resolving the issue and you have additional questions, please do not hesitate to reach out.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net l Discussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter