Forum Discussion

Johny's avatar
Johny
Level 2.0: Eclair
10 months ago

Could not factory reset android 14 devices

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".

 

  • Alex_Muc's avatar
    Alex_Muc
    Level 2.3: Gingerbread
    10 months ago

    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's avatar
      Lizzie
      Google Community Manager
      10 months ago

      Hey Johny,

       

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

       

      Thanks,

      Lizzie

  • nonomura's avatar
    nonomura
    Level 1.5: Cupcake
    7 months ago

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

    • Lizzie's avatar
      Lizzie
      Google Community Manager
      7 months ago

      Hello nonomura,

       

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