I am working on Android MDM and have the app_restrictions.xml file under /src/main/res/xml/ folder. The MDM i am working on is not showing me the value of the restriction, not even the default value. All the steps mentioned in this link has been followed to set app restrictions: https://developer.android.com/training/enterprise/app-restrictions.html but i am getting Bundle[EMPTY_PARCEL]. below is the code
app_restrictions.xml <?xml version="1.0" encoding="utf-8"?> <restrictions xmlns:android="http://schemas.android.com/apk/res/android"> <restriction android:key="MDMEmailKey" android:title="Email" android:restrictionType="string" android:description="@string/email_address_mdm_description" android:defaultValue="[email protected]" /> <restriction/> </restrictions> The lint is showing me below errors, though i was able to suppress it in gradle through lint options, but just wondering if it is not the cause of issue i am facing. Please let me know why i am getting these errors. Executing task ':MeetingExpert:lintVitalRelease' (up-to-date check took 0.0 secs) due to: Task has not declared any outputs. .../src/main/res/xml/app_restrictions.xml:8: Error: Missing required attribute android:key [ValidRestrictions] <restriction/> ~~~~~~~~~~~~~~ .../src/main/res/xml/app_restrictions.xml:8: Error: Missing required attribute android:restrictionType [ValidRestrictions] <restriction/> ~~~~~~~~~~~~~~ .../src/main/res/xml/app_restrictions.xml:8: Error: Missing required attribute android:title [ValidRestrictions] <restriction/> ~~~~~~~~~~~~~~ Explanation for issues of type "ValidRestrictions": Ensures that an applications restrictions XML file is properly formed https://developer.android.com/reference/android/content/RestrictionsManager.html 3 errors, 0 warnings -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/9395f949-59e2-4401-854a-2036238daf67%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

