Toggle Airplane Mode from the Lockdown Menu (Android)

Toggle Airplane Mode from the Lockdown Menu (Android)

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

 

  • 18 March 2019
  • SOTI MobiControl
  • 7 Answers
  • 0 Upvote
  • 6 Followers
  • 5K Views
    • 7 Answers
    • 0 Upvote
    • 6 Followers

7 Answers

Order By:   Standard | Newest | Votes
Raymond Chan | posted this 18 March 2019

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

Android Plus or Android Enterprise agent(s)?

 

  • 0
  • 0
Owen | posted this 19 March 2019

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

  • 0
  • 0
Raymond Chan | posted this 19 March 2019

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.
 

 

  • 1
  • 0
Owen | posted this 19 March 2019

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) 

  • 0
  • 0
Raymond Chan | posted this 19 March 2019

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. 

 

  • 1
  • 0
Ricky Palmer | posted this 09 March 2021

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?

  • 0
  • 0
JCMOD@SOTI | posted this 22 March 2021

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,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback