1. Home
  2. Knowledge Base
  3. SureMDM
  4. How to change the GPS status on Android devices remotely using SureMDM
  1. Home
  2. Knowledge Base
  3. Android Management
  4. How to change the GPS status on Android devices remotely using SureMDM

How to change the GPS status on Android devices remotely using SureMDM

Purpose

This article explains how administrators can remotely control and configure GPS (location services) settings on Android devices using SureMDM.

GPS functionality is essential for features such as location tracking and geo-fencing, which rely on accurate device location settings.

Prerequisites

N/A

Steps to Configure GPS Settings

Step 1: Create a Run Script Job

  1. Log in to the SureMDM console
  2. Navigate to:
    Jobs → New Job → Android → Run Script
  3. Create a new Run Script job

Step 2: Use GPS Control Commands

Use the following scripts based on your requirement:

Enable GPS

!#suremdm 

TurnOnGPS(true)

Set GPS Mode to Device Only

!#suremdm 

TurnOnGPS(true,1)

Set GPS Mode to Battery Saving

!#suremdm 

TurnOnGPS(true,2)

Set GPS Mode to High Accuracy !#suremdm 

TurnOnGPS(true,3)

Step 3: Grant High Accuracy Location Silently 

In scenarios where silent configuration is required, use the below script:

!#suremdm

GrantLocationToHighAccuracySilently()

The above command works only on supported devices, such as:

  • Samsung Knox devices
  • Platform-signed devices
  • Devices with Accessibility permission granted

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

CONTACT US

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