1. Home
  2. Knowledge Base
  3. SureMDM
  4. How to manage Bluetooth State on Wear OS Devices Using RunScript
  1. Home
  2. Knowledge Base
  3. Things Management
  4. How to manage Bluetooth State on Wear OS Devices Using RunScript

How to manage Bluetooth State on Wear OS Devices Using RunScript

Purpose

To manage and control Bluetooth functionality on Wear OS devices, administrators can use the RunScript feature in SureMDM to remotely enable, disable, or restrict user access to Bluetooth settings. This capability helps enforce organizational policies by preventing unauthorized Bluetooth usage, while also allowing real-time control over Bluetooth state without requiring user interaction.

Prerequisites

  • Access to SureMDM Console and Wear OS device(s) enrolled in SureMDM
  • Device(s) online and reachable and Required permissions to execute Run Script
  • Device configured in Device Owner (DO) mode (recommended for full restriction support)

Steps

  1. On the SureMDM Console -> Jobs -> New Job
  2. Select the target Wear OS -> Click on Run Script
  3. Enter the Job Name and the Script
  4. Save and Deploy to the Device.

RunScript 1: Force OFF Bluetooth and Restrict User Access

!#suremdm
enableBluetooth(false)

Parameter Explanation:

  • false → Turns Bluetooth OFF immediately
  • true → Turns Bluetooth ON immediately 

RunScript 2: Toggle Bluetooth State Immediately

!#suremdm

ToggleBluetoothState(false)

Parameter Explanation:

  • false → User is not allowed to enable Bluetooth from Settings
  • true → User can enable/disable Bluetooth manually

Expected Results

  • Bluetooth state is controlled based on the script applied
  • Administrators can either enforce restrictions or toggle Bluetooth instantly
  • End-user access to Bluetooth settings is restricted when configured

Advantages

  • Enhances device security by preventing unauthorized Bluetooth usage
  • Enables quick enable/disable without user interaction

Conclusion

The RunScript feature in SureMDM offers a flexible way to manage Bluetooth behavior on Wear OS devices. Administrators can enforce restrictions or dynamically control Bluetooth state, improving both security and operational efficiency.

Need more help? Here’s how to get help from our experts. 

CONTACT US

Was this helpful?
YesNo
Updated on June 2026
Need Support?
Can't find the answer you're looking for?
Contact Support