Permission Error when using mxconfig script command on Zebra TC51 devices

Permission Error when using mxconfig script command on Zebra TC51 devices

I'm trying to install 2 OS updates on my Zebra TC51 devices running Android 6.0.1

I used StageNow to get the xml file to accomplish that task. On some of my devices I get the following error when trying to execute the mxconfig command on the device after the package got downloaded:

 

2018-07-25 16:42:27.836|pool-1-thread-1|D|AP|[LegacyScriptExecutor][execute]script command: mxconfig - begin|
2018-07-25 16:42:27.836|pool-1-thread-1|D|AP|[ZebraXmlStageCommand][execute] xmlPath: /sdcard/TC51_OS_Update_MX6.3.xml|
2018-07-25 16:42:27.839|pool-1-thread-1|D|AP|[ZebraXmlStageCommand][execute] (/sdcard/TC51_OS_Update_MX6.3.xml) Response: <wap-provisioningdoc><characteristic-error type="Permission Error" desc="MxFrameworkService: [net.soti.mobicontrol.motorola.shared:10130] is NOT allowed to access MX Framework!"></characteristic-error></wap-provisioningdoc>|
2018-07-25 16:42:27.839|pool-1-thread-1|D|AP|[ZebraXmlStageCommand][execute] (/sdcard/TC51_OS_Update_MX6.3.xml) Process xml successful|
2018-07-25 16:42:27.839|pool-1-thread-1|D|AP|[LegacyScriptExecutor][execute]script command: mxconfig [/sdcard/TC51_OS_Update_MX6.3.xml], result: ScriptResult{description='OK', resultType=OK}

 

The installation of the package gets reportet as successful back to the MobiControl server but the OS update never took place.

Sometimes a restart of the device fixes this permission error.

 

Does anybody know where I need to change permission settings or what could cause this error?

 

Thank you!

 

Regards,

Michael

11 Answers

Order By:   Standard | Newest | Votes
SMod@Soti | posted this 26 July 2018

 Hi Michael,

 

Are these devices enrolled as Android+ pr Android Enterprise? If Android+, can you verify that MobiControl agent is designated as a Device Administrator on these affected devices? Also, if you can confirm if the MX version used to build the XML file in StageNow is supported by the devices.

 

Please let me know if you have any questions.

 

Thanks

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

 

  • 0
  • 0
MichaelM | posted this 27 July 2018

Thank you for your reply.

The devices are enrolled as Android+ and MobiControl is set as device admin.

 

I should've given you more background information

I was trying to install the current ZEBRA BSP and LifeGuard (Security patch) for Android 6.0.1..... the BSP file got installed but not the LifeGuard one. Both packages should've been installed, atleast that's what I configured in the StageNow XML file.

I was upgrading the devices from BSP 15.01.7 (MX v6.2) to BSP 21.04.1 (MX v6.3)

The LifeGuard update patched the devices to MX v7.2

 

I created the XML file with version 6.3. Now I'm even more confused because the BSP upgrade from Version 15 to 21 shouldn't have worked to begin with because the XML file was created with the version above the current supported one.

 

Unfortunately im currently not able to test this entire process again because all my TC51 device are on the same OS now. (Like I've said, a reboot of the device and running the mxconfig command again fixed the permission problem and the LifeGuard update got installed)

 

Thank you

  • 0
  • 0
Matt Dermody | posted this 27 July 2018

You cant have them both install at the same time, they will need to be installed separately in sequence. You also can use install_system_update script instead of mxconfig + XML file to execute Zebra Android OSUpdates. 

  • 0
  • 0
MichaelM | posted this 30 July 2018

Based on ZEBRA Tech Docs for StageNow it should be possible to have 2 or more OS .zip files install "at the same time" by using an .upl file.

http://techdocs.zebra.com/stagenow/3-0/csp/power/

 

 

  • 0
  • 0
Matt Dermody | posted this 30 July 2018

Thats news to me, thanks for sharing!

  • 0
  • 0
MichaelM | posted this 31 July 2018

No problem, you're welcome :)

 

I've reached out to our ZEBRA Account Manager for additional assistance. He will ask a technician to help me out with it. 

  • 0
  • 0
MichaelM | posted this 10 August 2018

Zebra said this is a known issue when it comes to upgrading OS via .upl file.

I also tried it with a StageNow barcode and left MobiControl completely out of it and pretty much got the same error or outcome --> only BSP gets installed and not the LifeGuard patches afterwards

 

A internal ticket has already been opened.

I hope to get more information about this soon.

  • 0
  • 0
Matt Dermody | posted this 10 August 2018

I honestly would recommend decoupling them into separate packages. Otherwise, what happens when the next LG version comes out that you want to distribute to the devices? Do you recompile a new package with base OS + New LG version? That would lead to you unnecessarily performing a full OSUpdate every time you want to deliver a new LG update to the devices. 

  • 0
  • 0
MichaelM | posted this 13 August 2018

I totally agree with you. Zebra pretty much said the same thing.

 

But with that in mind, we actually tested what would happen, if you execute the full OS update + LG again after the OS update already took place....

The device went into recovery mode, checked for the current OS version and skipped the full OS update.

  • 0
  • 0
Matt Dermody | posted this 13 August 2018

It's nice that it didn't execute the update unnecessarily but you still would have pushed down the OSUpdate ZIP file from SOTI to the device which might be 700MB-1GB of unnecessary network traffic.

  • 0
  • 0
Marius Iversen | posted this 19 February 2019

You could use the app "OS Manager". It's specifically designed to automatically upgrade OS on Zebra Android devices. It basically replicates the user experience you have on Samsung and iPhone.

I've been through the process of upgrading OS and LifeGuard on Zebra Android devices many times, especially for devices being used in retail. The biggest issues I've seen are offline devices, devices with a low state of charge, devices in use, devices with low WiFi-coverage, distributing information to all users, etc.

So what OS Manager does, it automate the whole process. Users are asked if they want to install now or later. Pressing install now will install the update right away, install later will install the update around 11:30 PM. OS Manager have all kinds of safe guards, including checking state of charge, update-file integrity etc. You can also apply several updates at the same time if needed.

More information is also available on SOTI Marketplace.

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback