1. Home
  2. Knowledge Base
  3. SureMDM
  4. How to lock and unlock an Android device using a run script.
  1. Home
  2. Knowledge Base
  3. Android Management
  4. How to lock and unlock an Android device using a run script.

How to lock and unlock an Android device using a run script.

Locking and unlocking an Android device remotely serves several important security and management purposes, especially in enterprise or managed environments (like MDM/UEM setups)

Purpose

This knowledge base article describes how to use a Run Script to remotely lock and unlock screens on multiple Android devices. It covers prerequisites, a clear step‑by‑step execution guide, common use cases, and expected outcomes.

Prerequisites

N/A

Steps

Procedure to remotely lock and unlock multiple Android devices using a run script with verification.

Step 1: Go to the Jobs section from the top navigation bar.

Step 2: Select the option to create a new job to set up the new job.


Step 3: Select the appropriate OS platform [Android]

Locate the job named [Run Script] from the list. 


Device Lock Runscript:- input keyevent 26

Device Unlock Runscript:- input keyevent 224

Need help?

CONTACT US

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