Forum Discussion

Ragulsurendar's avatar
Ragulsurendar
Level 1.5: Cupcake
2 months ago

Workprofile creation failure using CUSTOM DPC

We use a custom DPC to create work profiles. On certain devices, profile creation fails with errors like STORAGE_UNAVAILABLE or work profile already exists. From bug reports, we can confirm the failure cause, but is there a way to detect these conditions directly in our app and handle them gracefully?”

1 Reply

  • Emilie_B's avatar
    Emilie_B
    Google Community Manager
    31 days ago

    Hi Ragulsurendar​ - hope you're well!

     

    Apologies for the delayed answer; I've checked with the team and they said that the profile creation failing when the work profile is already there is working as intended. 

    Similarly, the work profile will not be created if there are not enough storage space.

     

    When you say you can confirm the failure on the bug report, are you describing the above or was there another cause of failure? Can you give an example of what a graceful handling would you like to see?

     

    In most cases, when a profile already exists, the work profile creation will just fail to successfully install. 

     

    Please let us know if this is helpful 🙂