1. Home
  2. Knowledge Base
  3. SureLock
  4. How to export the current settings of the SureLock application to a specified location through SureMDM

How to export the current settings of the SureLock application to a specified location through SureMDM

SureMDM stores multiple types of data that vary depending on the use case. There are some default storage locations for these data to be stored. This helps to protect your data from being accidentally changed, corrupted, or deleted while you work.

An example of such a default storage location is

/storage/emulated/0/Documents/42Gears

/storage/emulated/0/Documents/42Gears/SureLock

/storage/emulated/0/Documents/42Gears/SureFox etc. 

Now, SureMDM allows the user to modify the location of where data, like a SureLock settings file, is stored. This helps the user access the settings files faster and place them in any desired location of available storage.

Purpose

The purpose of this knowledge article is to provide a guide on how to export the current settings of the SureLock application to a specified location through SureMDM.

Prerequisites

NA

Steps

Step 1: To export SureLock Settings on the device through SureMDM

  1. Login to your SureMDM console and go to the Run Script Job from the jobs section. Jobs > Android > Run Script.
  2. Inside the runscript job, enter the below script for exporting SureLock settings to default storage ( i.e. /storage/emulated/0/Documents/42Gears/SureLock/). 

!#suremdm

exportSureLockSettings()

Please find the below image as a reference to the above runscript job:

Step 2: To export SureLock Settings on the device to a specific location through SureMDM

  1. Login to your SureMDM console and go to the Run Script Job from the jobs section. Jobs > Android > Run Script
  2. Inside the runscript job, enter the below script for exporting SureLock settings to any specific location.

!#suremdm

exportSureLockSettings(path-of-the-file)

Note: 

  • While exporting SureLock Settings to the desired location, we need to enter the complete path as below.
  • /storage/emulated/0/Documents/42Gears/SureLock/SureLock.settings.

Please find the below image as reference to the above runscript job:

Example:

If you want to change the location to storage/emulated/0/Download/settings, the run script should be as follows:

!#suremdm

exportSureLockSettings(storage/emulated/0/Download/settings/SureLock.settings)

Need help? 

CONTACT US

Was this helpful?
YesNo
Updated on March 2024