Toggle Airplane Mode from the Lockdown Menu (Android)

Solved Locked
O
Owen
Scope Services Inc.

I am having trouble finding if this is possible. Can airplane mode be toggled from the lockdown menu on the Androids using mobicontrol?

6 years ago
SOTI MobiControl
ANSWERS
RC
Raymond Chan Diamond Contributor
6 years ago

Turning on/off airplane mode is likely not directly supported in your devices.  The closest you can get is to use a script kiosk item,

e.g.

  script://%sdcard%/Download/abc.cmd

and use the following script commands in your script abc.cmd:

  setradioenable  bt 0

  setradioenable  wifi 0

  setradioenable  phone 0

  setmobiledata 0

Script Commands for Android Plus Devices

 
This is of course really airplane mode, as other apps on the device may turn any of the hardware on at any time.
 
Solution
RC
Raymond Chan Diamond Contributor
6 years ago (edited 6 years ago)

What are the brand and model of your device(s)?

Android Plus or Android Enterprise agent(s)?

O
Owen
6 years ago

Panasonics FZ-N1 (Android 6.01) using the Android Plus agents.

O
Owen
6 years ago

That is close to what I need. Would it be possible to toggle on and off with script? I am finding making togglable scripts difficult in android (I am used to windows mobile environment) 

RC
Raymond Chan Diamond Contributor
6 years ago

The simplest solution is to add a second kiosk item with all the script command arguments changed from 0 to 1.  

Of course, if you are good at html/css/javascript, it is possible to have in the kiosk a toggle switch with the two scripts bind. This might look nicer visually.   However, as it is not possible to guarantee the actual state of the hardware due to possible modification by other apps, such UI can be misleading when deployed in the field. 

RP
Ricky Palmer
4 years ago

Hi I have used the .cmd method but had the off/on all in one file, this worked fine turning off and back on the WIFI, Bluetooth but when I tried with mobile data I received a log entry Script command is not supported by device (setmobiledata) so the  setmobiledata 0 does not seem to work. This is on a Honeywell EDA51 on Android Enterprise and carrier O2?

J
JCMOD@SOTI
4 years ago

Hi Ricky,

Can you try upgrading your device's firmware and ensure you're utilizing the latest agent version? Then test it directly with the Send Script device action.

Let us know how it goes?

Regards,