Skip to content

Commit

Permalink
add explanation to README
Browse files Browse the repository at this point in the history
  • Loading branch information
dlevi309 committed Jul 8, 2021
1 parent c168dbf commit c849cfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# TrustEvaluator

This doesn’t work on profiles with expired certificates, only profiles with no signature. Luckily, it’s quite easy to strip a profile of this, you just need to cut the XML portion of the .mobileconfig file and paste it into a newly created XML document (you can then proceed to remove some keys such as the ‘RemovalDate’ for example). After that, just change the file extension from .xml to .mobileconfig, and Airdrop the unsigned profile to your device. The profile will stay installed regardless of being jailbroken or not.

Check the 'Example' directory of this repo for an example of creating an unsigned profile that can write defaults
2 changes: 0 additions & 2 deletions Tweak.xm
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* This doesn’t work on profiles with expired certificates, only profiles with no signature. Luckily, it’s quite easy to strip a profile of this, you just need to cut the XML portion of the .mobileconfig file and paste it into a newly created XML document (you can then proceed to remove some keys such as the ‘RemovalDate’ for example). After that, just change the file extension from .xml to .mobileconfig, and Airdrop the unsigned profile to your device. The profile will stay installed regardless of being jailbroken or not. */

%hook MCProfileTrustEvaluator
- (BOOL)sanitizedProfileSignerCertificateChainIsAllowedToWriteDefaults:(id)arg1 { return YES; }
- (BOOL)sanitizedProfileSignerCertificateChainIsAllowedToInstallUnsupportedPayload:(id)arg1 { return YES; }
Expand Down

0 comments on commit c849cfb

Please sign in to comment.