How to re-enable Agent mode: agent

Solved Locked
RH
Reece Harsley
MH Plastics/Onecom

Hello

We are using Zebra TC21 scanners, that we lock down via device control with authentication policy as disable lock screen

As these are in production environments the supervisors have the admin password to unlock the scanners so they can perform a data storage clear of a Dynamics NAV app that occasionally goes haywire.

My question is how can I set a timer that automatically reenables the agent mode after a set time or can I run a script that will re-enable it, as the supervisors sometimes forget?

additionally is there a script to clear the storage for a given installed application?

any help would be appreciated. 

Edited 4 years ago
Android
ANSWERS
RS
Rafael Schäfer
4 years ago

You can just send a legacy script:

wipeapplication packagename

This will wipe the app data of the used package name.

Regarding admin mode you can use following legacy script:

_Adminmode off
 
And if you want to run it periodically you can use the "Tasks" (the availability of this depends on your MC version!) Profile where you can define how often this should be executed. But be aware: This will strict run periodically! so if they are on a device and working, it can be that exactly then the script will be executed. So, in my opinion not a good choice.
 
 
Solution
SB
Simon Breuer
4 years ago (edited 4 years ago)

Hi Reece,

as you are using ZEBRA devices you can clear an apps's cache with mxconfig command and the following XML file which you copy on your devices:

<wap-provisioningdoc>
<characteristic version="9.3" type="AppMgr">
<parm name="Action" value="ClearApplicationCache" />
<parm name="Package" value="MYAPP.IDENTIFIER" />
</characteristic>
</wap-provisioningdoc>

Unfortunately I haven't got an answer for your question regarding the agent mode.

RH
Reece Harsley
4 years ago

Hi Simon

Is there a cmd to clear storage of an app rather than cache

RH
Reece Harsley
4 years ago

Hi Rafael

Thank you for both of these suggestions, both tested and work great, I'm now going to give out how to set tasks.

Thanks again