Toggle radio command

Turns the device's radio signal on or off. This essentially disconnects or re-connects the cellular service of the device.

The command works for devices running Android 9.0 or earlier, but this is subject to Google not changing the implementation, so the command is not guaranteed to work in the future.

If the device does not reconnect when the radio signal is turned on, you may need to do one of the following:

  • Reboot the device.
  • Turn Airplane Mode off (using Set Network Settings command) and immediately back on.

Parameters

Name Type Possible values Description

Device ID*

Device

 

The device for this command.

Mode

String

On | Off

Turns the device's radio signal on or off, where: 

  • On connects to the cellular network

  • Off disconnects from the cellular network

Comment

String

 

Adds a comment to the script

On-fail Result*

Condition

Ignore | Break | Continue | Abort | Catch

The behavior when the command fails.

* Mandatory parameter