Enable Single Application Mode using Runscript job


Single Application Mode refers to a state of device lockdown with only one application on the screen. With just one application in the foreground, access to home screen settings or other apps will be blocked at all times.

Prerequisites

  • Set SureMDM Agent VR as Device Owner and in the SureMDM Agent settings file, type 1 in kiosk mode tag to enable kiosk mode
  • There must be only one application allowed in the SureMDM Agent Kiosk.

To enable Single Application Mode using Runscript job, follow these steps:

1.   On the SureMDM Web Console, navigate to Jobs > New Job > Android > Run Script.    

2.  In the Run Script window, enter the Job Name and type the below script in the script box.

   !#suremdm

   enableSingleAppMode(true/false)

     Note: Type true to enable Single Application mode.

3. Click Save. 

     The newly created runscript job will be listed in the Jobs List section.

4.  Go back to Home tab and select the VR device(s).

5.  Click Apply to launch Apply Job/Profile To Device prompt.

6.  In the Apply Job/Profile To Device prompt, select the runscript job and click Apply.