How to re-enroll Android devices that have been offline for 90+ days
Ninety days offline is not a cutoff in Android Enterprise. A device managed through the Android Management API (AMAPI) picks up where it left off when it reconnects, until it has been offline for 270 consecutive days. Past that point, Google's documentation says it must be reprovisioned, which means a factory reset and a fresh enrollment. What does expire inside 90 days is everything around the device: queued commands, push messages, wipe instructions, enrollment tokens and often its Wi-Fi certificate. Recovery is mostly about getting the device back onto a network.
Key facts
- Android Enterprise has no 90-day offline rule. Under the Android Management API, the documented limit is 270 consecutive days offline.
- After 270 days, Google says the device must be reprovisioned: a factory reset and a new enrollment.
- An AMAPI command expires after ten minutes by default, unless you set a longer duration.
- If a device record is deleted, the wipe is lost once the device has been offline for more than 30 days.
- Push services hold a message for an offline device for up to 28 days.
- An enrollment token lasts one hour by default, so a token saved for re-enrollment has usually expired.
What expires while an Android device is offline?
| What | Lifetime | What it means for a returning device |
|---|---|---|
| AMAPI device registration | 270 consecutive days offline | After that, the device must be reprovisioned |
| A command, such as lock or reboot | Ten minutes by default. No maximum if you set a duration | A command sent while the device was off has almost certainly expired |
| Wipe after a device record is deleted | 30 days | If the device stays offline longer, the wipe never arrives and company data stays on it |
| Push message to an offline device | Up to 28 days | An agent that relies on a push to wake up misses anything older |
| Push registration | 270 days of inactivity | The device has to register again before a push can reach it |
| Enrollment token | One hour by default | A token saved for re-enrollment may be long expired |
| Wi-Fi client certificate | Set by your certificate authority | An expired certificate keeps the device off the network it needs |
| Postponed app update | Up to 90 days | Held updates are released |
The AMAPI figures come from Google's provisioning guide, command reference and deprovisioning guide. The push figures come from Firebase Cloud Messaging documentation.
How do you recover a device that is still enrolled after 90 to 270 days offline?
No re-enrollment is needed. The job is to bring the device back up to date.
- Charge it and let it set its clock from the network. Certificate checks depend on the right time.
- Get it online. If its Wi-Fi certificate has expired, use a provisioning network, a SIM, Ethernet, or the temporary connection the network escape hatch offers at boot.
- Wait for a policy sync. In your EMM, check the last sync time and the policy version the device reports.
- Let updates run. Months of system, Google Play system and app updates are waiting. Expect several cycles and reboots. Do not return the device to service the same hour.
- Send again whatever expired. That means commands and certificates.
- Confirm it reports as compliant before it goes back to work.
What do you do after more than 270 days offline, or when the record was deleted?
Reprovision the device. Factory reset it, then enroll it again.
If the device is registered with zero-touch or Knox Mobile Enrollment (KME), it enrolls itself after the reset. That works only if the enrollment token in the configuration is still valid. Otherwise, enroll by QR code.
A reset from recovery mode can trigger Factory Reset Protection. Your EMM's settings decide which account unlocks the device, so check them before a site visit.
How do you change EMM when part of the fleet is switched off?
This is the hard case. Devices in storage or in closed sites still carry the old EMM's agent, and nobody can tell them to leave.
- Re-point the enrollment service now. Assign the new EMM's profile in KME or zero-touch. The assignment is stored server-side and applies at the device's next factory reset.
- Queue the release in the old EMM, and ask how it is delivered. A wipe that depends on a single push can be lost, because push services hold a message for 28 days at most. You need the old EMM to deliver the wipe when the device next checks in.
- Keep the old EMM tenant alive until the stragglers return. If it shuts down first, the old agent has nobody to take orders from. Each device then needs a manual reset.
- Put a long-lived enrollment token in the new profile.
- Let returning devices move themselves. A device comes online, checks in with the old EMM, receives the wipe and resets. The enrollment service then hands it to the new EMM.
- Set a cut-off date. After it, plan site visits for manual resets and close the old tenant.
The full procedure for Samsung fleets is in Migrating Samsung devices from a DPC-based EMM to AMAPI.
How do you stop stored devices going stale?
- Alert on last-sync age. Pick thresholds well inside 270 days, so someone acts while the fix is still a power button.
- Wipe before storage. A device registered in zero-touch or KME re-enrolls from clean when it is next powered on. It gets current policy and carries no stale state.
- Rotate spares. Power stored devices on a schedule and let them sync.
- Match certificate lifetimes to reality. Either issue certificates that outlast your longest storage period, or keep a recovery network. See Certificate management for Wi-Fi and EAP-TLS on Android.
- Keep a second way online at Wi-Fi-only sites, such as a SIM or a wired port.
- Review enrollment tokens in zero-touch and KME profiles before they expire.
How does AndroidNexus treat devices that stop checking in?
AndroidNexus billing follows devices that check in. A device that is silent for a full month drops out of the next charge. Zero-touch and Knox Mobile Enrollment devices enroll on first boot after a reset.
Frequently asked questions
Does Android unenroll a device after 90 days offline?
No. Android Enterprise has no 90-day rule. Under AMAPI, the documented limit is 270 consecutive days offline. Your EMM may have its own rules for stale records, so check its settings too.
What happens after 270 days offline?
Google's provisioning guide says the device must be reprovisioned. In practice, that is a factory reset followed by a new enrollment.
Will a wipe reach a device that has been offline for months?
Often not. A wipe command expires like any other command unless it was given a long duration. If the device record was deleted instead, the wipe instruction is lost once the device has been offline for more than 30 days.
Do I have to factory reset a device that was in storage?
Not if it is still enrolled and has been offline for less than 270 days. Connect it, let it sync and update, and check compliance.
Why won't a returned device connect to Wi-Fi?
The usual cause is an expired client certificate on a certificate-based network. The device needs another route online to fetch a new one.
Will zero-touch or KME re-enroll the device automatically?
Yes, after a factory reset, if the device is still registered and reaches the internet during setup. The enrollment token in the configuration must still be valid.
Can I move offline devices to a new EMM?
You can prepare the move. Assign the new EMM in the enrollment service today. The device itself changes over only when it comes online, is wiped and enrolls again.
How long can a managed Android device stay offline?
Up to 270 consecutive days under the Android Management API. Within that time it resumes management when it reconnects. After it, Google's provisioning guide says the device must be reprovisioned. Your EMM may apply shorter limits of its own to stale records.
Why did a command sent to an offline device never run?
It expired. An AMAPI command lasts ten minutes by default. A lock, reboot or wipe sent while the device was switched off is gone by the time the device returns, unless it was issued with a longer duration. Send it again once the device is online.
Sources
- Provision a device, Android Management API guide
- enterprises.devices.issueCommand, Android Management API reference
- Wipe and deprovision a device, Android Management API guide
- Policy resource reference, Android Management API
- Set the lifespan of a message, Firebase Cloud Messaging
- Best practices for FCM registration token management, Firebase Cloud Messaging
- Zero-touch enrollment for IT admins, Google