Run Scripts on Android Outside of the Lockdown

O
Owen
Scope Services Inc.

I have a problem starting a factory reset with my android devices. I have the settings disabled via a policy and occasionally a factory reset needs to be started by an end user while offline. My thought was to have a script that the end user could run to start the reset /w command, but I didn't see a way to do this?

What I really need is to be able to easily have the device factory reset by the end user while the device is offline with the settings disabled.

Any advice would be appreciated. 

6 years ago
Android
ANSWERS
BR
Ben Ragland
6 years ago

If you are utilizing the SOTI lockdown, you could deliver a .cmd file containing the FR script to the device and then add a Menu Item in the lockdown pointing to the script (script://%sdcard%/scriptfile.cmd). When the user taps on the Menu Item in the lockdown, it will execute the script.

This would have obvious caveats being exposed to the end user though.

O
Owen
6 years ago

Right. I was hoping to not expose to anyone who doesn't know the admin password. It would be nice if there was a admin menu like the pc lockdown menus have.

BR
Ben Ragland
6 years ago

You could get creative with javascript and have an onlick function that can only be accessed through a password prompt in the lockdown html. It would take some coding effort though.

O
Owen
6 years ago

I love that idea! I'll play with it and see what I can come up with.

BR
Ben Ragland
6 years ago (edited 6 years ago)

I am going to give this a go too. Been wanting to make an admin menu for a while.

Edit: Maybe support will chime in if there is an Auth Password macro we could utilize? :)