Set Chrome as default browser

Solved
KW

Hi

I need a command to type in a postinstall script to set Chrome as default browser.

Basicly automating that the users has to choose a default browser. Feature control or something else is fine too, I just havent been able to find it.

Its Samsung Galaxy S8 and S9 devices. Its Android Enterprise devices.

Anyone know how to?

7 years ago
Android
ANSWERS
RC
Raymond Chan Diamond Contributor
6 years ago

Hi Kenneth,

"Watchsettings" command is not supported for most, if not all, brands of devices using Android Enterprise agent.

Solution
MD
Matt Dermody Diamond Contributor
7 years ago

Have you tried the watchsettings/writesecuresetting process?

watchsettings [on | off]

This enables OS settings change tracking.

writesecuresetting [-sys | -sec | -glo ]

This actually changes settings based on the log results of watchsettings. 

KW

Hi Matt

Thanks for the response.

I dont know these settings options you mention. I assume it somehow monitors what I change on the phone?

Afterwards I assume I can then call this command to set it on other devices?

KW
Hi
I tried to use send script to the Samsung device from SOTI.
Is this the wrong way to do it?
 
4:47:48 PM
Information
Script was sent to device (watchsettings on)
 
 
4:47:49 PM
Information
Script command is not supported by device (watchsettings)
 
 
 
BR
Ben Ragland
6 years ago

Hi Kenneth, that is correct. You should now be able to physically make the change on the device to set Chrome as the default browser and that change will be reflected in the SOTI log section for that device.

If setting the default browser IS displayed in the log section, you can then take that information and format the writesecuresetting as Matt outlined.

You can test the writesecuresetting with send script but once you get it working you may want to add it to a package as a script so all of your devices have a uniform configuration.