Skip to content

Commit

Permalink
Fixes InstallProfile problems
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasr committed Aug 5, 2014
1 parent b6eb44b commit b4a9585
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/Example.mobileconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<key>allowAddingGameCenterFriends</key>
<true/>
<key>allowAppInstallation</key>
<false/>
<true/>
<key>allowCamera</key>
<true/>
<key>allowExplicitContent</key>
Expand All @@ -32,19 +32,19 @@
<key>allowInAppPurchases</key>
<true/>
<key>allowMultiplayerGaming</key>
<false/>
<true/>
<key>allowSafari</key>
<false/>
<key>allowScreenShot</key>
<true/>
<key>allowScreenShot</key>
<false/>
<key>allowVideoConferencing</key>
<true/>
<key>allowVoiceDialing</key>
<true/>
<key>allowYouTube</key>
<false/>
<true/>
<key>allowiTunes</key>
<false/>
<true/>
<key>forceEncryptedBackup</key>
<false/>
<key>ratingApps</key>
Expand Down
5 changes: 5 additions & 0 deletions server/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ def populate(self):
for i in range(len(temp_cmd['response']['ProvisioningProfileList'])):
temp_cmd['response']['ProvisioningProfileList'][i]['ExpiryDate'] = temp_cmd['response']['ProvisioningProfileList'][i]['ExpiryDate'].strftime("%Y-%m-%d %H:%M:%S") + " UTC"
d['commands'].append(temp_cmd)
elif 'InstallProfile' == self.cmdList[tuple[1]]['cmd']['Command']['RequestType']:
#Remove payload data from output
temp_cmd = copy.deepcopy(self.cmdList[tuple[1]])
temp_cmd['cmd']['Command']['Payload'] = 'Redacted by server'
d['commands'].append(temp_cmd)

else:
d['commands'].append(self.cmdList[tuple[1]])
Expand Down

0 comments on commit b4a9585

Please sign in to comment.