Could not factory reset android 14 devices

Johny
Level 2.0: Eclair

Android 14 tablet(Samsung-SM-x210) could not perform the factory reset programatically. Others android version working fine. Got and error for admin user "SecurityException: java.lang.SecurityException: User 0 is a system user and cannot be removed".

 

Screenshot 2024-05-29 at 4.50.36 PM.png

4 REPLIES 4

Alex_Muc
Level 2.2: Froyo

Do you have the problem with Android 14 in general, or does it only occur with this device model + Android 14? Was the device originally set up with <=Android 13? Does the problem occur in Work Profile, Work Managed or both modes?

 

If the problem is reproducible, I would recommend submitting a ticket to the MDM manufacturer with a series of logs and timestamps:

  • Create a sysdump of the error (the sysdump contains a bug report and more)
  • Connect to the device via ADB and save logcat logs during error reproduction. (e.g. with: adb logcat -v threadtime >logcat.txt)
  • Increase the log level of DPC before reproducing the error and export these logs if possible

 

We are experiencing sporadic problems with Samsung devices when wiping COPE devices. (Work Managed Devices are not affected) However, the triggers and causes are not yet known. In our case, however, this fatal error does not occur.
After our DPC successfully starts the wipe via the DevicePolicyManager, this error occurs:
  E DevicePolicyManager: Device/profile owner cannot be removed
The DPC then crashes and the wipe is not carried out.

 

With the fatal exception alone, I cannot assess whether the error is caused by the device/OS or incorrect commands from the DPC. (fi.hublet.hubletdevicemanager)

Lizzie
Google Community Manager
Google Community Manager

Hey @Johny,

 

I hope you are doing well. Just wanted @ mention you here, to check you have seen Alex's response. 

 

Thanks,

Lizzie



Welcome to the Community everyone!

Have a question or want to start a conversation, click here.

nonomura
Level 1.5: Cupcake

I have the same problem, did you find a solution?

Lizzie
Google Community Manager
Google Community Manager

Hello @nonomura,

 

Thanks for your comment. I'm wondering if you have tried any of the suggestion in @Alex_Muc's comment above?



Welcome to the Community everyone!

Have a question or want to start a conversation, click here.