Android - Packages - Created a package to copy files to directory, keeps getting error

Solved

This is in regards to the Proglove App's config files

I created a package using MC Package Studio

added 2 files "Proglove.proconfig" and "provisioning_cert.fleet"

both to be copied to %sdcard%/Android/data/de.proglove.connect/files/

I also added a post install script that included afw_set_preferred_keyboard de.proglove.connect to set the default keyboard to the one required by the app

I created the .PCG file using the MC Package Studio, added it to the list of packages in MobiControl, created a profile and attached the package to it, and then assigned it to a test android device but it fails every time.  The Error I get is below:


Package "proglove" version 1.2 failed to install. File IO error on device. Check Storage/Permissions.


Running MobiControl in the cloud v15.6

Devices that would be affected are Android 10 and up

2 years ago
Android
ANSWERS
KV
Keno van Loo
2 years ago

Hi Patrick,

 

considering that your intended method no longer works with Android 11 as others have already written, I would recommend the following way (already in use with 20+ customers):

 

  1. Create a new app policy for Android Enterprise
  2. Under App, select Enterprise as the source
  3. Upload your desired InsightMobile.apk
  4. Under Advanced Configuration, select Configure, Select Managed App Config and Enable it
  5. Upload ProGlove.proconfig here (https://www.base64encode.org/) , convert it to Base64 and download txt file.
  6. Open txt file, copy the entire content and paste it into the ProConfig file content field under Managed App Config.
  7. Save & Assign

 

The configuration is installed directly with the installation of the app on the device. If you want to make changes to the config, repeat the steps and insert the new string.

 

Works like a charm for us.

 

Kind regards,

Keno

Solution
MD
Matt Dermody
2 years ago

/sdcard/Android/data/... is a scoped storage directory that cannot be accessed by any app, including an EMM agent, on A11+. You won't be able to push files to that directory on any device running A11 or higher on any EMM, by design. You would need an alternative configuration process provided by ProGlove that supports this restriction of scoped storage on A11+

M
MNMOD@SOTI
2 years ago

Hi Patrick,

Thank you for posting on SOTI Pulse!

As mentioned by Matt, it could be related to Impact of Android 11 Scoped Storage Restrictions on Android Agent. Please go through the link below to know more about it.

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

Also, could you please confirm if you entered the higher OS version during the package creation in Package Studio as shown in the screenshot below.

Looking forward to your response.

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
a year ago

Hi Patrick,

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