1. Home
  2. Knowledge Base
  3. SureMDM
  4. How to Enable Download of Pre-Reboot Security Logs on DO-Enrolled Devices Using SureMDM
  1. Home
  2. Knowledge Base
  3. Android Management
  4. How to Enable Download of Pre-Reboot Security Logs on DO-Enrolled Devices Using SureMDM

How to Enable Download of Pre-Reboot Security Logs on DO-Enrolled Devices Using SureMDM

This article covers the “Download Pre-Reboot Security Logs” option, available exclusively for DO-enrolled devices.

Purpose

Use Case: In scenarios where device behavior before a reboot is critical (e.g., crash analysis, unauthorized access attempts), enabling pre-reboot security logging helps in diagnosing issues or auditing user actions.

Prerequisites

This option is only available for DO-enrolled devices. It does not apply to WPCO or other enrollment modes.

Steps

Run Script Command

To enable this feature, use the following SureMDM script:

!#suremdm

enablePreRebootSecurityLogs(true)

Options:

  • true – Enables the downloading of pre-reboot security logs. 
  • false – Disables the feature (if needed later).

Example: To disable the feature:

!#suremdm

enablePreRebootSecurityLogs(false)

Steps to create and use the runscript jobs on SureMDM Console

1.   On the SureMDM Console, click on Job > New Job > choose Android > click on Run Script Job.

2. Enter the Job Name, and in the text box, enter the Script

3. Select Save to save this Job.

Applying the Job to Devices 

  1. Navigate to the SureMDM Home page.
  2. Select the desired device(s) or Group of devices. 
  3. Select the Apply button (or Group-Apply button) and apply the above-created job.

Expected Behavior

When true is passed, the device will start collecting and retaining pre-reboot security logs. 

Need help?

CONTACT US

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