Skip to main content
New Member
Aug 7, 2023 9:45 AM UTC
Question

Auto factory-reset AMAPI issue

  • 8 replies
  • 78 views
  • Translate All • Beta, powered by Gemini

We are facing auto hard reset issue on multiple Android manufacturer like oneplus xiomi samsung redmi oppo vivo. We are android gold partner and managing more than 7lakh plus devices via zero touch enrollment and tried contacting enterprise support but getting no proper resolution. can some one please help to find what is the reason behind auto hard reset. 

8 replies

Moombas
Level 4.4: KitKat
Aug 7, 2023 12:36 PM UTC

Auto hard reset normally only occurs if devices are enrolled without using Zero-Touch after 2 hours but as you describe it, it happens at your end to already and long time enrolled devices?

Translate • Beta, powered by Gemini
Android Enterprise Expert
Level 1.6: Donut
Sep 15, 2023 5:43 PM UTC

We have validated our policies and other given factors also the devices which are in fully compliance are getting hard reset. We can see in GCP console in Android Management API device.delete command is getting call'd in bulk below is the screenshot for reference

Translate • Beta, powered by Gemini
New Member
Oct 25, 2023 6:07 PM UTC

@MagicLocker 

Translate • Beta, powered by Gemini
Level 1.6: Donut
Sep 15, 2023 5:44 PM UTC

But not able to figure out from where and why delete method got triggered

Translate • Beta, powered by Gemini
jasonbayton
Level: 4.1: Jelly bean
Sep 15, 2023 7:46 PM UTC

I saw similar when I was trying to handle duplicate device records, have you isolated all calls to device.delete in your codebase and ruled them out?

Translate • Beta, powered by Gemini
Droider in Chief - bayton.org
Level 1.6: Donut
Sep 16, 2023 5:25 PM UTC

We removed and commented out "device.delete" method from the plugin's code. Despite removing the method, mass hard resets continue to occur.

 

But disabling the associated service account stops these reset requests. Re-enabling the service account results in the resumption of the "delete" API executions.

 

Now not sure how to get out of this. Just curious to know do DPC android app has a control to execute device.delete command. And who else other us can execute device.delete command with our service account.

 

Below are the few this which i'm suspecting.
1. zero touch
2. DPC Google Mobile App

Translate • Beta, powered by Gemini
Moombas
Level 4.4: KitKat
Sep 18, 2023 5:41 AM UTC

Zero-Touch will only execute factory reset devices when not enrolled using Zero-Touch during enrollment but devices have an assigned configuration in the Zero-Touch-Portal (ZTP). This happens as soon as a device get'S a internet connection and receives that information. Then you have up to 2 hours before a wipe is forced.

I can't say anything to the Google DPC app, as i never used it yet.

If you enroll devices inta an MDM, every user with access to the MDM and relevant permissions in it can send a wipe to (a) device(s).

Translate • Beta, powered by Gemini
Android Enterprise Expert
New Member
Oct 25, 2023 6:06 PM UTC

@JilaniShaikh 

Translate • Beta, powered by Gemini