我们正在尝试将 MDM 中的一些命令发送到 iOS 设备。我们测试了设备锁定等基本命令,对于其他命令,例如将一个应用程序制作为 KIOSK 应用程序,该命令需要 PayloadUUID,如何获取该 payloaduuid。我们启用了“常规”、“凭据”、“移动设备管理”有效负载。
请找到服务器使用的以下命令,
public static String getAppLockPList(){
StringBuffer backString = new StringBuffer();
backString.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
backString.append("<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\"");
backString.append("\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">");
backString.append("<plist version=\"1.0\">");
backString.append("<dict>");
backString.append("<key>PayloadContent</key>");
backString.append("<array>");
backString.append("<dict>");
backString.append("<key>App</key>");
backString.append("<dict>");
backString.append("<key>Identifier</key>");
backString.append("<string>com.company.identifier</string>");
backString.append("</dict>");
backString.append("<key>PayloadType</key>");
backString.append("<string>com.apple.app.lock</string>");
backString.append("<key>PayloadIdentifier</key>");
backString.append("<string>com.company.identifier</string>");
backString.append("<key>PayloadUUID</key>");
backString.append("<string>d7e27098ad530884664a98a6f93ab3796f97b</string>");
backString.append("<key>PayloadVersion</key>");
backString.append("<integer>1</integer>");
backString.append("</dict>");
backString.append("</array>");
backString.append("<key>PayloadType</key>");
backString.append("<string>Configuration</string>");
/*backString.append("<key>PayloadDisplayName</key>");
backString.append("<string>##########</string>");*/
backString.append("<key>PayloadIdentifier</key>");
backString.append("<string>com.company.identifier</string>");
backString.append("<key>PayloadUUID</key>");
backString.append("<string>d7e27098ad530884664a98a6f93ab3796f97b</string>");
backString.append("<key>PayloadVersion</key>");
backString.append("<integer>1</integer>");
backString.append("</dict></plist>");
return backString.toString();
}