Reset default application on Android plus?

AD
Adam Davidson
Boots Global account

Hi, does anyone know of a way to reset a default application on an Android Plus device via a script?

We're using Android KitKat on TC55's.  Some users have accidentally clicked the wrong app and selected 'Always'.  As the wrong app is on the blacklist it fails to open.  Rather than remote onto each device and clear the default in the settings, I wondered if I could clear and then set the correct app via a script?

In the meantime, I'm going to have to remove the 'wrong' app from the blacklist.

Thanks.

5 years ago
Android Scripting
ANSWERS
MD
Matt Dermody Diamond Contributor
5 years ago

I'm not completely sure but you could try the watchsettings on script while you manually change the setting on the device to see if it captures anything. If it does you might be able to then convert that configuration into a writesecuresetting script. 

D
DDMOD@SOTI
5 years ago

Hi Adam,

Thanks for posting an interesting question!

Did you try to remove that app from the BlackList profile and pushed it to the device again?

Regards,

AD
Adam Davidson
5 years ago

Hi Matt,  thanks for the reply, not used Watchsettings before. 

I tried, but unfortunately there was nothing recorded in the logs when I changed the setting.  Back to the drawingboard.

AD
Adam Davidson
5 years ago

Hi,

I have.  Both apps are now on the whitelist.  I tried to use watchsettings but that didn't show anything in the logs when I reset the default app in settings.

Any other ideas?