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:

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