- Step 1 – Extract the app_restrictions.xml file
-
The first step is to extract the restrictions.xml file to get a list of the key-value pairs required to create the XML file.
- Download the Windows wrapper script and save the file as apktool.bat. Then, download the apktool.
- Copy both files into a folder (name it APKTool) in C:\Documents.
- Navigate to Environment Variables (This PC > Properties > Advanced System Settings).
- Select the system variable for the JAVA path and click Edit.
- Add a new path that points to the folder containing the APK tool files.
- Run the command apktool d using command prompt.
- Step 2 – Create the XML file to be published as part of the custom settings profile
-
The next step is to build the XML file.
The previous command extracts the APK files to the Current Location\ (C:\KSP).
- Open the app_restrictions.xml file located in C:\<App name>\res\xml.
- Find the parameter that you want to configure and the corresponding key-value pair.
- KSP follows a nested configuration. After you have added the parameter, for example, profileDexCustomization, then find the parent parameter under which it is nested. Note the restrictionType (see yellow highlighted values in the previous screenshot) because you must create XML tags to form the nested XML file, as shown in this example.
- Open the app_restrictions.xml file located in C:\<App name>\res\xml.
- Step 3 – Apply the KSP app configuration to the device
-
The final step is to create an Android device profile and apply the KSP app configuration to the device.
- In the Workspace ONE UEM console, create an Android device profile (Devices > Profiles & Resources > Profiles > Add).
- Add a Custom Settings payload and paste the XML file that was built in the previous step.
- Save and Publish the profile to be pushed to assigned devices.
- In the Workspace ONE UEM console, create an Android device profile (Devices > Profiles & Resources > Profiles > Add).