Script wipeapplication

Solved
R
RMLFD
La Fournée Dorée

Hello,

I want to clear the cache of the google chrome and Soti Surf application at several times during the day which are not always at the same time, so I can't use scheduled tasks. I do not wish to use lockdown.

Here are the commands:

wipeapplication net.soti.surf
wipeapplication com.android.chrome
start net.soti.surf

Is it possible to create an application with package studio or the user will be able to launch an application (APK) to launch this script?

Thanks in advance for your feedback.

Best regards

2 years ago
Android Scripting
ANSWERS
RS
Rafael Schäfer
2 years ago

Hi,

can you tell the reason why you want to do this during the day? For me it very sounds like you try to work around something else with this instead of investigate into the "real" problem.

R
RMLFD
2 years ago

Thank you for your reply,

Many users log in to a website with their own credentials, but when they log out of the website, the credentials are kept in memory. 

Best regards

RS
Rafael Schäfer
2 years ago

So, you have some kind of "shared device", normally i would ask you to look if your browser (maybe chrome?) provides managed app config to set something like "clear cache / app data after closing" but i tried to look into chrome and it does not show app config anymore in our Mobicontrol (but i know there have been before and other apps still show).

But maybe it's worth for you to look into that which would mean you don't need to run a skript manually. Or try Soti Surf instead, there are several settings available.

Also you could tell them only to use "incognito mode" which does the same (if no other chrome window is open in the background).

R
RMLFD
2 years ago

Clear cache is not possible on Soti Surf, Only the wipe cache is for script.

On Google Chrome is not possible to force incognito mode.

Best regards

RS
Rafael Schäfer
2 years ago

Regarding incognito: You are right, you can't force the app to do it, only the user.

Regarding Soti surf: Don't look for a script! Look for the profile, there you have (in privacy):

Clear Cookies on Launch - enable
 
Try if set those (maybe not all needed, using the Soti Surf browser) could cover your needs.
In addition if you enable kiosk mode for soti surf, you also can enable in the kiosk settings:
 
To add another thing: If the login is an LDAP login, you could use (and i would recommend this then) in Soti surf "Use LDAP Log In" in general settings as well.
 
 
MD
Matt Dermody Diamond Contributor
2 years ago

You could also clear cache on launch by saving the script to a CMD file and then link to the script on the lockdown screen. The user would think they're launching Surf but they'd be calling the script that would clear the cache before launching Surf every time they tapped on the icon on the launcher. 

RS
Rafael Schäfer
2 years ago

Hi Matt, he don't want to use lockdown.

R
RMLFD
2 years ago

Hi @Matt, tahnk you for your reply, it's possible to add a script on the HomeScreen not with a lockdonw ?

Hi @Rafael, i test your solution but the Website Microsoft need to enable a cookie for login.

Best regards

RS
Rafael Schäfer
2 years ago

But if you then enable cookies but still "clear on launch", i assume it should work.

R
RMLFD
2 years ago

Hi Rafael, sorry this solution, not working. Best regards

RS
Rafael Schäfer
2 years ago

So, in final you have 3 possibilitys:

1. Investigate further to get the correct settings for the browser doing what you need. (including Soti Surf LDAP login). Would be maybe the easiest way if you get it to work with that.
      Take a look into the "Browser" profile settings as well, they may help you, never used them yet. (Depends on your Mobicontrol version, these settings maybe only be part of the Chrome app (managed config) and switched with latest version (we use 15.6.3) into profile). Here some suggestions:
      - Cookies > Session only
      - Browser History > off
      - Password Management > off
      - AutoFill > off
2. Tell the users to use incognito mode only (is the same as the way you look for: to tell them to run a script manually after they finished!). Is definitely the worst and most unsafe way.
(2.b. Manage chrome settings/bahviour via policy. Requires a managed chrome user per device to get the settings applied. Requires Google Workspace and also manual handling.)
3. Change the device setup to a shared device with login before able to use the device in general. This could be the best solution (in handling and security) but would mean a massive rework and testing to implement this.

R
RMLFD
2 years ago

Ok thank you, I am testing your solution. Best regards

MD
Matt Dermody Diamond Contributor
2 years ago

I missed the detail about not wanting to use the lockdown. 

G
GPMOD@SOTI
2 years ago

Hi RMLFD, 

Thanks for posting on SOTI Pulse and thanks Rafael and Matt for responding to the post.

Have you had a chance to try the suggestions provided by Rafael? 
Did it resolve your query?

Please let me know. 

Thank you. 

Kind regards,

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

R
RMLFD
2 years ago

Hi, i have test but not working.

For resolve i have create a rules for sync file and i have add a script before apply rules.

Best regards

Solution