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
- Log in to the SureMDM console
- Navigate to:
Jobs → New Job → Android → Run Script - 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.
Was this helpful?
YesNo