Search code examples
androidkioskkiosk-modeandroid-management-apidevice-policy-manager

How to get the managed configuration from the non DPC application?


I have enrolled the device with the enterprise web application and applied the restriction through the Admin(DPC) application. Now i am trying to get the managed configuration using RestrictionsManager.getApplicationRestrictions() from the non DPC application, but i am getting empty parcel.

Is there any possibility to get the managed configuration from non DPC application. Whether i need to do any other configuration to get the managed configuration from our own application.

https://developer.android.com/work/managed-configurations


Solution

  • If you are trying to get a managed configuration set for your own application, then I believe your issue has been answered already from this post.

    RestrictionManager getRestrictions() is always empty