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

Hi everyone,

I have version 2.2.4.5 installed and choose in Mobicontrol to go back to version 2.2.3.5.
When i choose to reverse to early version i get this error:
Package "**" version 2.2.3.5 failed to install. File IO error on device. Check Storage/Permissions

Does anyone know why i get this error on Samsung Android Enterprise devices? 

Kind regards,

Frank van Ewijk

2 years ago
Android
ANSWERS
E
Emanuel
2 years ago

Hi,

as far as I know from my experience, you have to uninstall the older version of an application if you want to install a newer one. Otherwise you will get the error you mentioned. I usually make a package with a preinstall script and uninstall the app first before installing the new version.

If there is another solution I would be interested in it too.

RC
Raymond Chan Diamond Contributor
2 years ago

Possible causes of "File I/O Error" for .pcg package installation include:

1. Not enough free flash/RAM storage space to complete the installation task

2. Some device OEM firmware disallows "in-place" (i.e. without loss of app data while app binaries get replaced) downgrade of an apps. (To solve this, the previously installed app version should be totally uninstalled first before the older version of the same app is installed, but some app data may be lost in the process.)

3. Some required app permissions of the MobiControl device agent has not yet been granted on device running post Android 11 versions, which enforce ever-tightening permission model to improve system security.

etc.

MD
Matt Dermody Diamond Contributor
2 years ago

In this situation the problem is very likely the downgrade. The device OS is going to prevent a downgrade to a lower app version and the prior version will therefore need to be fully uninstalled first before the downgrade. Be cautious of this approach however as any app cache and storage, including files in scoped storage, will also be wiped as part of uninstalling the current version of the application. 

FV
Frank van Ewijk
2 years ago

Thank you for the answer.
I'm gonna test this solution and hopefully the cashed files are not deleted. 

M
MPMOD@SOTI Gold Contributor
2 years ago
FV
Frank van Ewijk
2 years ago

Hi Support,

No, the cashed files are also deleted. So this is not the solution for me.

Kind regards,

Frank

G
GPMOD@SOTI Bronze Contributor
2 years ago

Hi Frank,

Thanks for posting on SOTI Pulse and thanks Emanuel, Raymond, and Matt for responding to the post.

If we are downgrading the application version, then we need to uninstall the application installed in the device with the upper version, and once you uninstall the application, it will remove all the app data and cache. 

Thank you. 

Kind regards,

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