Wifi Hotspot Timeout in Samsung Devices

Wifi Hotspot Timeout in Samsung Devices

Hello, I would really appreciate your help with the following issue:

Is it possible to configure the wifi hotspot timeout? We use the hotspot profile configuration and it works fine, but the default timeout is set to 20 minutes, and we need it to be always active.

Thank you

 

8 Answers

Order By:   Standard | Newest | Votes
Raymond Chan | posted this 12 March 2018

In the past, the command you could use to set no timeout for Wifi hotspot on Samsung Android+ agent was

   writesecuresetting -sec  wifi_ap_timeout_setting  0

 

This may not work any more for newer agents/firmware versions, or when some permissions of your MobiControl agent  are disabled on your device model.

Good luck.

 

  • 0
  • 0
Edgar Gomez | posted this 12 March 2018

Hello,

I tried the script but it didn't work

I also noted that the hotspot is not enabled, only configured, so the user has to go to settings and enable it.

Is there any way to enable the hotspot  automatically?

Thank you Raymod,

  • 0
  • 0
Raymond Chan | posted this 13 March 2018

To enable Wifi hotspot on Android+ device (not just for Samsung), use the following script command:

  wifiapenable 1

 

Due to change of security/app-permission model in recent versions of Android defined by Google,  this might also not work.  In one extreme case, we had  test device with this command  working at one time and failing at another within an hour of repeated tests, and we are still trying to determine what factor(s) are crucial, and a way to guarantee that it always works.

 

The same argument applies to the writesecuresetting command given in the previous post.  The syntax/command-arguments are definitely right on all Samsung Android+ devices.  The real issue is the security/permission to use this command to write settings (i.e. ANY setting, and NOT just this one for "Wifi Hotspot timeout") on the device.  Device firmware version, agent version, and some Android permissions configured by device user in Settings are some of the factors that can affect whether it works or not.  We are trying to figure out if there is a proper way to follow, so that it always works every time just like two or three years ago.

     

 

  • 0
  • 1
Edgar Gomez | posted this 13 March 2018

That worked fine. We finally use a script file in the lockdown to enable the wifi hotspot.

 

Thank you very much

  • 0
  • 0
Raymond Chan | posted this 13 March 2018

Hi Edgar,

Did you make any change on your device to make the script commands work?

What device model(s), Android version(s) and MC server/agent versions have you successfully deployed the scripts?

Thanks.

  • 0
  • 0
Edgar Gomez | posted this 14 March 2018

I did not really  make any changes in device settings. These are Samsung J7 with Android 7 and Android 6.

The script file just has the following:

wifiapenable 1

start packagename

With this, we make sure the wifi hotspot is enabled when the app is launched.

 

 

  • 0
  • 0
Duke, Cox | posted this 26 June 2019

Raymond, Has any progress been made on newer Android versions as well as enterprise devices on this subject?

  • 0
  • 0
Raymond Chan | posted this 26 June 2019

It seems that the old script command to some settings has been added back to Android Enterprise platform device agent recently.  However, I still haven't successfully use such command mentioned in the release notes to make settings changes.  One reason why I haven't spent much time exploring is that commands used to support this flow to get information about the parameters/arguments seem to be still missing.

 

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback