Erase browser cache

Solved
OD
Ole, Daugaard
Twise I/S

Hi,

We want to be able to erase browser(surf) stored data, from a share devices locked down in KIOSK mode(see screenshot). Specifically the user needs to be able to trigger a 'logout' after end of shift.

Devices are enrolled via Android Enterprise(Device Owner).

Solution #1:
Deploy a script file and run from lockdown with scriptcommand. wipeapplication or kill_application.

However both script commands appear unsupported(log displays script command as unsupported).

Solution #2:
Invoke an action in lockdown items. action://clear_cache...etc.

However this only seems to support configuring wifi/pw change: https://discussions.soti.net/thread/are-they-any-other-mobicontrol-actions-possible-to-be-used-from-the-kiosk-mode-lockdown/

How do I go about this?

7 years ago
Android
ANSWERS
RC
Raymond Chan Diamond Contributor
7 years ago (edited 7 years ago)

For your device end-user to clear Soti Surf cached content from his/her device kiosk menu, just add the following script associated with your kiosk menu item:

  sendinfo  net.soti.action.surf  clearcache

Solution
MD
Matt Dermody Diamond Contributor
7 years ago

It would not be particularly elegant but uninstalling and reinstalling the app would have the effect of clearing the app cache. You could deliver the Surf apk as a file to the device and then have a "Logout" script that uninstalls the app and then reinstalls it.

OD
Ole, Daugaard
7 years ago

thank you both. The sendinfo script did indeed work. Thanks!

OD
Ole, Daugaard
7 years ago

On a further note :-)

Do you have any other script command that can kill/restart the surf app activity (which will work with AE, since the kill_application does not work) ? 

Right now the user is prompted to restart surf after the script command has been run.

Brgds,

Ole 

AF
Allen Foster
5 years ago

how would you implement the sendinfo command as a lock screen item.  I am trying to do the clear cache for soti surf as a extra button on the lock screen.

MD
Martin Doyle
3 years ago

I am trying to achieve the same.  We do not want users to have to log back in every time they switch applications and hit the launch key.  

AP
Armando Pino
a year ago

FYI you can accomplish this on lockdown by calling a .cmd file on the device's sdcard.

Step 1. Open notepad, paste everything between quotes, and save the file as a .cmd. (i.e SurfClearCache.cmd)

"sendinfo net.soti.action.surf clearcache"

Step 2. Create a package that deploys SurfClearCache.cmd to somewhere accessible from the device's storage (i.e. /sdcard/SurfClearCache.cmd)

Step 3. Create a lockdown add a "Home Screen Item" select "Custom" as your item and then in the textbox add your directory. You can copy mine below. (everything without the quotes)

"script://%sdcard%/SurfClearCache.cmd"

Step 4. Add a display and a custom icon. (needed for the script to be visible on the lockdown)

Step 5. Profit!

AP
Armando Pino
a year ago

Bonus!

You can launch "clear cache" and followed by a specific "Soti Surf URL" using a single icon on lockdown with the above .cmd script method

To accomplish this you can use the below scripts in your .cmd file.  (copy & paste the 3 lines below and then type out your URL)

sendinfo net.soti.action.surf clearcache
sleep 2
sendintent -a "surf://DesiredURL"