Updating Configuration Profile installed in iOS device in MDM

為{幸葍}努か 提交于 2019-12-30 09:32:58

问题


I want to send a configuration payload to a device. Eg. I want to send a restriction payload (Disallow safari) to a particular device. i.e. I want to update the configuration profile installed on the device.

Do I need to send this configuration profile payload same way as I send the query payloads?

Do I need to include all the configuration payloads of the configuration profile which exists on the device? OR Just need to send the one I need to update.

Please help!!!


回答1:


It needs to be the contents of the containing the PayloadContent of the profile you wish to install which has been Base64 encoded.

You don't need all the XML, just the first block.




回答2:


To be clear, the DATA section should contain the base64 encoded (UTF8) string of everything starting with the plist tags in the mobiliconfig from IPCU to the end /plist tag

<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!DOCTYPE plist PUBLIC \"-//Apple Computer/DTD PLIST 1.0//EN\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<plist version=\"1.0\">
<dict>
<key>CommandUUID</key>
<string>c22d6f22-d222-4477-9e6e-5886e5f1e2a1</string>
<key>Command</key>
<dict>
<key>RequestType</key>
<string>InstallProfile</string>
<key>Payload</key>
<data>base64encode("<plist>...</plist")</data>
</dict>
</dict>
</plist>



回答3:


Remove the XML declarations. Encode64 your plist data (....).



来源:https://stackoverflow.com/questions/9698228/updating-configuration-profile-installed-in-ios-device-in-mdm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!