Deleting shortcuts on Android

Solved Locked
M
Mbachi
Hobart UK

We have a script that creates shortcuts on the Android tablets we use and I wanted to find a way of removing any shortcuts we create and also to find a way of adding a single shortcut rather than all.  A portion of the the script I use is below

############################

writeprivateprofstring Webclips Count 37
writeprivateprofstring Webclips Name36 "Website1"
writeprivateprofstring Webclips Url36 https://Website1/
writeprivateprofstring Webclips Icon36 %sdcard%ShortcutImages\Website1.png

writeprivateprofstring Webclips Count 38
writeprivateprofstring Webclips Name37 "Website2"
writeprivateprofstring Webclips Url37 https://website2
writeprivateprofstring Webclips Icon37 %sdcard%ShortcutImages\Website2.png

apply Webclips

############################

Is anyone able to help me?

5 years ago
Android Scripting
ANSWERS
M
Mbachi
5 years ago

That doesn't work for us.  I think this might be because we don't really use lock screens.  Here is what I have tried and now works.  I use the below script and it clears all the icons so that will do

writeprivateprofstring Webclips Count

apply Webclips

Solution
D
DDMOD@SOTI
5 years ago

Hi Mbachi,

Can you please try the below script and confirm if it works?

writesecureprofstring  DeviceFeature  DisableLockScreenShortcuts 1

apply featurecontrol 

Regards,

D
DDMOD@SOTI
5 years ago

Thanks Mbachi for sharing the resolution.

Regards,