The command gives the ability to set the network connection for a device.
Execute any of the following connection types:
airplane_mode, wifi, mobile_data, bluetooth
Note: Bluetooth is only supported for Android 5.* and above.
Note: Some Xiaomi devices with Android 6 and MIUI 9 Xiaomi have added their own permission manager. It needs to be disabled to use this command.
In order to do disable Permission Manager:
- Turn off MIUI optimization under Developer options.
- Reboot the device.
- Under Settings go to Permissions.
- Click on the gear icon.
- Turn off the Permission Manager.