How to Block Factory Reset and Safe Mode on Managed Android Devices: An Enterprise Guide

Workers reset company devices or boot into safe mode to get out of a kiosk. Here is how to prevent factory reset and block safe mode with Android Enterprise policy, what recovery mode still allows, and how to fix a stuck device without wiping it.

Table of Contents

A warehouse scanner comes back from the night shift with no apps, no Wi-Fi profile and no management agent. A retail kiosk that was locked to a single app is showing the full Android home screen. A field tablet has been wiped by a well-meaning employee who "just wanted it to run faster." These are common problems for IT teams that manage company-owned Android fleets, and the cause is usually one of two built-in Android features: factory reset and safe boot.

Both features exist for good reasons. They let owners recover a broken phone or remove a misbehaving app. On a company device, though, they are also the quickest way for a frustrated worker to undo your configuration. This guide explains what each feature does and why workers reach for them. It covers how to block both through Android Enterprise policy, what blocking does not prevent (especially hardware recovery mode), when you should leave reset allowed, and how to fix a stuck device without wiping it.

The guide is written for IT and operations leads who need to stop devices coming back reset, and who may have to explain the decision to directors. It starts with definitions and moves on to implementation detail and edge cases.

Key Terms Before You Start

Several Android concepts come up repeatedly in this guide. Here they are in one place.

  • Factory reset: Erases user data, apps and settings from the device's data partition and returns it to the out-of-box setup wizard. On a managed device, it also removes the management agent and every policy, unless the device is set up to re-enroll automatically.
  • Safe boot (safe mode): A diagnostic startup mode in which Android loads only preinstalled system apps. Apps installed afterwards, such as a custom kiosk launcher or a line-of-business app, do not run until the device restarts normally.
  • Recovery mode: A separate, minimal environment reached with a hardware button combination while the device powers on. It sits outside the normal Android operating system and usually includes a "wipe data / factory reset" option.
  • Factory Reset Protection (FRP): An Android security feature that runs after an untrusted reset. Before setup can finish, it asks for credentials for an account that was previously linked to the device. In an enterprise, specific administrator accounts can be designated for this.
  • Fully managed device (device owner mode): A company-owned device on which the management app controls the whole device, not just a work container.
  • Work profile: A separate, encrypted container for work apps and data on a device. It is commonly used on personal phones (BYOD) and on company-owned devices where personal use is allowed.
  • Kiosk mode / lock task mode: A configuration that confines the device to one app or a small set of apps, hiding the status bar, home screen and settings.
  • Android Management API (AMAPI): Google's cloud API for managing Android Enterprise devices. MDM consoles use it to send policies to devices. Its policy fields include factoryResetDisabled and safeBootDisabled.
  • User restriction: An operating-system-level rule set by the device administrator that disables a specific action for the user, such as resetting the device or booting into safe mode. The Android platform names for the two restrictions in this guide are DISALLOW_FACTORY_RESET and DISALLOW_SAFE_BOOT.

Why Workers Reset Devices, and What It Costs IT

The usual reasons

Resetting a company device is often a worker's attempt to fix something, not an attack. Plan for these motives:

  • The device feels slow. Many people reset their personal phones when performance drops, and they bring that habit to work. Common causes of slowness are a full storage partition, an app stuck in a crash loop, or a weak battery. A reset fixes none of these permanently.
  • A forgotten PIN or password. A worker who is locked out at the start of a shift wants the device working now. If they know about the recovery-mode wipe, or a colleague shows them, they will use it.
  • "Fixing" a kiosk. When a kiosk app freezes or shows an error, staff often try to escape it, either by resetting the device or by booting into safe mode to get to the home screen.
  • Clearing personal traces. On shared devices, some workers reset to remove their logins or photos before handing the device over, especially if no sign-out process exists.
  • Curiosity or deliberate circumvention. This is a smaller group: users who want to install unapproved apps, remove usage restrictions, or keep the device for themselves.

What a reset actually costs

Every unplanned reset sets off a chain of work, even when no data is lost. Exact costs depend on your environment, but the categories are consistent:

Cost category

What happens

Re-enrollment labor

Someone has to enroll the device again by QR code, zero-touch, Knox Mobile Enrollment or a manual process, then wait for apps and configuration to install.

Downtime

The worker cannot scan, sell, deliver or chart until the device is restored. On a remote site that may take hours or longer.

Lost local data

Unsynced transactions, offline forms, photos, logs and app caches are erased.

Visibility gap

Between the reset and re-enrollment, the device is out of the fleet. You cannot locate, lock or wipe it remotely.

Security exposure

A reset device that is not covered by FRP or automatic re-enrollment can be set up as an ordinary consumer device by whoever holds it.

Support noise

Repeated resets create tickets that hide the real problem underneath, such as a crashing app or a bad network profile.

The visibility gap and the security exposure are usually what convince directors. A device that can be wiped from its own Settings menu is a device the company only partly controls.

A photorealistic 3D render of an IT workbench in a logistics depot at dusk, viewed from a slightly elevated three-quarter angle. Three rugged Android handheld scanners lie on an anti-static mat. One shows a bright blank setup-wizard-style screen with no text, one shows a locked single-app interface rendered as abstract colored tiles, and one is face-down with a small orange sticky tab on it. In the soft-focus background, charging cradles line a metal shelf and a forklift is parked near a roller door. Cool blue ambient lighting with warm task-lamp highlights, professional and calm, no readable text anywhere.

Blocking Factory Reset from Settings

How the restriction works

On a fully managed device, the management app can apply the DISALLOW_FACTORY_RESET user restriction. Through the Android Management API this is exposed as the boolean policy field factoryResetDisabled. When it is set to true:

  • The "Erase all data (factory reset)" option in Settings is disabled or hidden, depending on the manufacturer's Settings design.
  • Recovery mode is not affected. That gap is covered below.
  • The administrator can still wipe the device remotely. The restriction limits the user, not the management console.

The last point matters. Some admins hesitate to block reset because they worry about losing their own ability to wipe a lost device. They don't lose it. Remote wipe is a separate command sent by the management app, and the user restriction does not affect it.

Applying it in practice

In most MDM consoles the setting is a single toggle in a security or restrictions section of the policy. In Nomid MDM, the policy's Security tab has a switch to block factory reset from Settings, which maps to factoryResetDisabled. A separate switch blocks safe boot, covered later in this guide. Keeping them as two switches lets you choose combinations. For example, a shared tablet fleet might block reset but allow safe boot, while a locked kiosk fleet blocks both.

A sensible rollout sequence:

  1. Identify the device classes that should never be reset by their users: kiosks, shared scanners, field tablets and dedicated devices.
  2. Apply the restriction to a pilot group first. Make sure your help desk knows the Settings option will disappear, so they don't escalate it as a fault.
  3. Confirm remote wipe still works on a pilot device you are willing to re-enroll.
  4. Roll out by policy group instead of device by device, so new devices inherit the setting automatically.
  5. Write down the exception process. State who can authorize a reset and how they do it, for example by moving the device into a bench policy (see the section on when to leave reset allowed).

What it does not stop: recovery mode

This is the most widely misunderstood part of the topic. Blocking factory reset in Settings does not stop a reset from recovery mode.

Recovery mode runs before the full Android operating system loads, so the user restrictions enforced by Android are not active there. On many devices, anyone holding the device can power it off, hold a button combination (often Power plus Volume Up, though this varies by manufacturer and model), and choose "wipe data / factory reset" from the recovery menu. No PIN is needed and no MDM policy intervenes.

That is why a Settings-level block is one layer, not the whole answer. It removes the easy, accidental and impulsive resets from Settings. A determined person with physical access can still wipe the device. You plan for that with the next two layers, and by keeping developer options and USB debugging turned off: with USB debugging on, a connected computer can reboot the device into recovery, and the OEM unlocking switch allows a bootloader unlock, which also wipes the device.

Layer two: Factory Reset Protection accounts

After a reset that did not come from a trusted path such as Settings or an admin command, Android's Factory Reset Protection asks for credentials for an account previously associated with the device before setup can finish. On consumer phones, that is the owner's Google account. On fully managed company devices, you normally don't want an employee's personal account controlling the device. Instead, you designate FRP admin accounts: company-controlled Google accounts that can unlock a device after a recovery-mode reset. In the Android Management API, these are set in the frpAdminEmails policy field.

With FRP admin accounts configured, a device wiped from recovery mode stops at a verification screen. Someone without the company credentials cannot get past it. The device is not destroyed or tracked by this step. It is just unusable until IT unlocks it. Our separate post on factory reset protection explains how to set up FRP admin accounts, how to choose and protect them, and what the post-reset flow looks like.

Layer three: automatic re-enrollment

Devices registered for Android zero-touch enrollment, or Samsung devices registered in Knox Mobile Enrollment, check in during the setup wizard after a reset and are directed back into management. For many fleets this is the most useful safety net, because it turns a reset from "device lost to management" into "device rebuilt with its configuration." It needs a network connection during setup, and zero-touch covers only devices bought through a participating reseller.

Taken together, the three layers look like this:

Layer

What it prevents

What it does not prevent

Block factory reset in Settings

Casual, accidental and impulsive resets from the Settings menu

Resets from recovery mode using hardware buttons

FRP admin accounts

Setting up a recovery-wiped device without company credentials

The data loss and downtime of the wipe itself

Zero-touch or Knox Mobile Enrollment

The device staying out of management after a reset

The reset itself, and loss of unsynced local data

One note on expectations: none of these layers makes a device theft-proof. They make an unauthorized reset harder, make a wiped device less useful to someone without credentials, and shorten recovery. Physical security, asset tracking and return processes still matter.

Safe Boot: How It Gets Around a Kiosk or an App

What safe mode does

Safe mode is Android's built-in troubleshooting state. It loads the operating system with only preinstalled system apps running. Its intended use is diagnosing a third-party app that causes crashes or battery drain: if the problem disappears in safe mode, a downloaded app is the likely cause.

On most modern Android devices, safe mode is reached by opening the power menu, then pressing and holding the "Power off" or "Restart" option until a "Reboot to safe mode" prompt appears. Some manufacturers also use a button press, such as holding Volume Down, during startup. The exact method depends on the model.

Why safe mode undermines a kiosk

Kiosk deployments often depend on apps that were installed after the device left the factory:

  • A custom kiosk launcher that replaces the standard home screen.
  • The line-of-business app the kiosk exists to run, such as a check-in app, a point-of-sale app or a digital signage player.
  • Helper apps that enforce behavior, such as restarting the main app if it closes.

In safe mode, those apps don't start. The device falls back to the system launcher, so the user may see a standard home screen instead of the locked interface. Operating-system restrictions that were already applied usually stay in force, but anything that depends on a downloaded app running is suspended until the next normal boot. To a worker trying to "fix" a frozen kiosk, or a customer probing a public tablet, this looks like an exit.

Safe mode has a second, quieter effect. It is often used to remove an app that would otherwise be hard to remove, because a downloaded app cannot defend itself while it isn't running. On a device where you have also blocked app uninstallation by policy, OS-level restrictions should still apply. Even so, safe mode gives users a window in which your normal app-driven protections are not active.

Blocking safe boot

The Android user restriction DISALLOW_SAFE_BOOT, exposed in the Android Management API as safeBootDisabled, stops the user from rebooting into safe mode. When it is applied, the "Reboot to safe mode" prompt no longer works, and the device restarts normally instead.

In Nomid's policy Security tab, this is the separate block safe boot switch mentioned earlier. Turn it on for:

  • Single-app and multi-app kiosks, where safe mode is a known escape route.
  • Shared devices whose usefulness depends on a specific line-of-business app staying in front.
  • Public-facing devices such as customer tablets, check-in stations and digital signage, where you cannot supervise who handles them.

Consider leaving safe boot allowed on knowledge-worker devices, where it can still help troubleshoot. The same applies to any fleet where your support team uses safe mode as a diagnostic step and has no other way to isolate a misbehaving app.

Kiosk hardening checklist

Blocking safe boot works best with other kiosk controls. A locked-down device usually combines:

  • Factory reset blocked from Settings, with FRP admin accounts configured.
  • Safe boot blocked.
  • Status bar and notification shade restricted, so quick settings aren't reachable.
  • Settings app inaccessible from the kiosk.
  • Installation from unknown sources and USB debugging disabled.
  • App uninstallation blocked for the kiosk app and launcher.
  • Automatic re-enrollment through zero-touch or Knox Mobile Enrollment where the hardware supports it.

Fleet visibility helps confirm the hardening is actually in place. A security posture view showing encryption, ADB, unknown sources and developer options status across devices lets you spot a device that has drifted from its intended configuration before it becomes a kiosk escape.

When to Leave Factory Reset Allowed

Blocking reset everywhere is tempting, but it causes problems in some contexts. A fair policy separates the devices where a reset is a threat from the devices where it is a legitimate tool.

Personal devices with a work profile

On a personal phone enrolled with a work profile, the employer cannot block the person from resetting their own phone, and should not try. The phone belongs to the employee. Android's work profile model gives the company control over the work container, not over the device as a whole.

What the company controls is the work profile itself. If an employee leaves, loses the phone or breaks policy, IT can remove the work profile, which erases work apps and data while leaving personal content alone. If the employee resets the phone themselves, the work profile is removed along with everything else, and the company's data goes with it. For BYOD, the right controls are profile-level ones: work profile passcode requirements, data-sharing restrictions between work and personal apps, and a clear offboarding process that removes the profile.

Company-owned devices with personal use allowed are a middle case. The company owns the hardware, so device-level restrictions are available, but the employee also has a personal space on it. Decide deliberately and document the decision in your acceptable use policy so employees know whether they can reset the device.

Repair benches and refurbishment

Devices on a repair bench, in a staging area or awaiting reassignment often need to be reset as part of the normal workflow. Toggling restrictions device by device is slow and easy to get wrong. A cleaner pattern:

  1. Create a dedicated bench policy that allows factory reset and safe boot, and keeps the other security settings you still want.
  2. When a device comes in for repair, move it into the bench policy group instead of editing its production policy.
  3. Record the move in the device's allocation fields so there is a history of who handled it and why.
  4. When repair is done, move it back to its production group, or remote-wipe and re-enroll it if it is being reassigned.

Policy groups and templates, which Nomid supports, make this a routine reassignment instead of a one-off configuration change. The same approach applies to a technician kit of devices that IT uses for testing.

Decommissioning and planned reassignment

When a device is retired, sold or passed to another team, the preferred path is an admin-initiated remote wipe from the console, not a local reset. The wipe is logged, it is a trusted reset from FRP's point of view, and it doesn't require the device to be on a bench. If the device will leave the organization, deregister it from zero-touch or Knox Mobile Enrollment and clear FRP admin accounts as part of the process, so the next owner isn't blocked.

Fixing a Stuck Device Without a Reset

Blocking reset works best when workers and help desk staff have a quicker, less destructive way to solve the problem that made them want to reset. A fix-before-reset ladder gives your team a consistent order to work through, starting with the least disruptive step.

The fix-before-reset ladder

  1. Restart the app. Force-stop the app that is misbehaving and open it again. This clears temporary in-memory state and resolves many freezes. On kiosks, a remote reboot or an app relaunch from the console may be easier than asking a worker to do it.
  2. Reboot the device. A full restart clears stuck services, network state and memory pressure. Try it before anything more drastic when a device feels slow and its storage is not full. Remote reboot means nobody on site has to do it.
  3. Clear the app's data. This resets one app to its first-launch state without touching the rest of the device. It fixes corrupt caches, broken local databases and bad login sessions. Warn users first, because unsynced data in that app is lost. Nomid can clear app data remotely, so the help desk can do this without asking the worker to open Settings, which may be locked anyway.
  4. Reinstall the app. If clearing data doesn't help, remove the app and reinstall it through managed Google Play or private app hosting. This handles corrupted installs and version mismatches.
  5. Escalate before resetting. Only after the earlier steps fail should a device be considered for a full wipe. Even then, it should be an admin-initiated remote wipe or a move to the bench policy, not a local reset by the user.

Diagnosing before you act

Several fleet signals help you choose the right rung without guessing:

  • Last-seen and contact status show whether the device is still talking to the console at all.
  • Battery levels separate a device that is "slow" because of a failing battery from one with a software problem.
  • App usage statistics can show whether the core app is being opened and used, or crashing on launch.
  • Remote screenshots and remote access sessions let support see what the worker sees, instead of relying on a description over the phone. Remote access is available on Nomid's paid plans, not the free plan.

Nomid also includes an on-device Check-up screen in the Nomid Settings app on managed Android devices. Where the policy shows its button, a worker can run it on the spot. It checks whether the Nomid Store apps the policy assigns are installed, whether the device can reach the Nomid servers, and whether the agent has the permissions it needs, and a failed row offers a fix. The console shows when the last check-up ran. For a worker who would otherwise reach for a reset, it gives a supported first step, and it gives the help desk evidence to work from.

Handling the forgotten PIN

A forgotten PIN is a common reason to reach for a recovery-mode reset, so plan for it. Common approaches across MDM platforms include an admin-issued passcode reset through the Android Management API's device commands, a documented help desk process for verifying identity before unlocking, and for shared devices, removing per-user PINs in favor of device-level controls plus app-level sign-in. Whatever you choose, make sure workers know that calling the help desk is quicker than wiping the device, and that the help desk can actually deliver on that.

Communicating the change

When you block reset and safe boot, tell people why and what to do instead. A short note to site managers or a one-page job aid might say:

  • The reset and safe mode options are turned off on company devices to protect data and keep devices working.
  • If a device is slow or an app is stuck, restart the app, then restart the device.
  • If that doesn't work, run the check-up (if your devices show it) and contact the help desk.
  • Do not use hardware button combinations to wipe the device. A wipe erases everything on it, and the device may stay locked until IT recovers it.

This framing presents the restriction as part of a support process instead of an arbitrary block, which tends to reduce the workarounds you are trying to prevent.

Implementation Summary by Device Type

The table below brings the guidance together. Treat it as a starting point and adjust it for your industry, risk tolerance and support model.

Device type

Block factory reset (Settings)

Block safe boot

FRP admin accounts

Notes

Single-app or multi-app kiosk

Yes

Yes

Yes

Pair with zero-touch or Knox Mobile Enrollment where possible.

Shared scanner or handheld

Yes

Usually yes

Yes

Make sure shift workers know the fix-before-reset ladder.

Dedicated field tablet (one user)

Yes

Optional

Yes

Allow safe boot if support uses it for diagnosis.

Company-owned, personal use allowed

Decide by policy

Optional

Yes

Document the choice in your acceptable use policy.

Personal device with work profile

Not applicable

Not applicable

Not applicable

Control the work profile; remove it on offboarding.

Repair bench or staging

No

No

Keep credentials on hand; clear when leaving the organization

Use a dedicated bench policy group.

Frequently Asked Questions

Does blocking factory reset stop me from wiping a lost device remotely?

No. The restriction applies to the user. Admin-initiated remote wipe through your MDM console still works.

Can a user still reset the device from recovery mode?

Yes, on most devices. Recovery mode runs outside normal Android, so Settings-level restrictions don't apply there. FRP admin accounts and automatic re-enrollment are the layers that reduce the impact.

Will blocking safe boot affect normal restarts?

No. Devices still power off and restart normally. Only the option to reboot into safe mode is disabled.

Can I block factory reset on employees' personal phones?

Not for the device as a whole, and you should not try. On a personal device with a work profile, the company controls the work profile and can remove it.

Does blocking reset make a device theft-proof?

No. It makes unauthorized resets harder and, together with FRP, makes a wiped device unusable without company credentials. Physical security and asset processes are still needed.

Conclusion: A Layered, Supportable Approach

Blocking factory reset and safe boot is a simple security improvement on company-owned Android devices, and it stops the casual resets that send devices back to IT. To get it right, keep the limits in mind and build supporting layers around the setting:

  • Block factory reset from Settings to stop casual and accidental wipes, knowing that recovery mode remains a route for someone with physical access.
  • Configure FRP admin accounts so a recovery-wiped device cannot be set up without company credentials. Our post on factory reset protection covers this in detail.
  • Use zero-touch or Knox Mobile Enrollment so reset devices return to management automatically.
  • Block safe boot on kiosks and shared devices where it would suspend your launcher and line-of-business apps.
  • Leave reset allowed where it belongs: personal devices with a work profile, repair benches and planned decommissioning.
  • Give workers a quicker alternative with the fix-before-reset ladder: restart the app, reboot, clear app data, reinstall, then escalate.

As next steps, list your device classes, decide which combination of controls each one needs using the summary table, pilot the restrictions on a small group, and publish a short job aid so frontline staff know what to do when a device misbehaves.

If you want to try this on your own hardware, Nomid MDM has separate switches in the policy Security tab to block factory reset from Settings and to block safe boot. It also offers policy groups for bench devices, remote clearing of app data, and the on-device Check-up screen for diagnosing problems before anyone considers a wipe. Nomid's free plan covers up to 10 devices with no time limit (remote access and API features are on paid plans). You can find details at nomidmdm.com.

Secure your Android fleet today

See how Nomid MDM secures Android devices with Android Enterprise policies, a security posture view and remote lock and wipe.

Start for Free
DP

Written by

David Ponces

Share this article

See how Nomid fits your device fleet

Create a workspace and test a real management workflow, or book a tailored product walkthrough with our team.

Choose Your Time

Loading...
Open booking calendar