Skip to content

Commit

Permalink
bugfix: missing entitlements for icloud
Browse files Browse the repository at this point in the history
Signed-off-by: 82Flex <[email protected]>

remove compile commands

Signed-off-by: 82Flex <[email protected]>
  • Loading branch information
Lessica committed Aug 18, 2024
1 parent 0fe2e80 commit d47f993
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.theos
packages
compile_commands.json

# Created by https://www.toptal.com/developers/gitignore/api/swift,macos,xcode
# Edit at https://www.toptal.com/developers/gitignore?templates=swift,macos,xcode
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Bug Fixes

- “Developer Mode” is no longer required.
- Now you can access “iCloud Drive” from TrollFools.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ SUBPROJECTS += TrollFoolsTweak

include $(THEOS_MAKE_PATH)/aggregate.mk

before-all::
devkit/standardize-entitlements.sh

before-package::
$(ECHO_NOTHING)ldid -STrollFools/TrollFools.entitlements $(THEOS_STAGING_DIR)/Applications/TrollFools.app$(ECHO_END)

Expand Down
51 changes: 51 additions & 0 deletions TrollFools/TrollFools.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@
<string>spi</string>
<string>identity</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>GXZ23M5TP2.iCloud.wiki.qaq.TrollFools.icloud-container</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudDocuments</string>
</array>
<key>com.apple.developer.notificationcenter-identifiers</key>
<true/>
<key>com.apple.developer.team-identifier</key>
<string>GXZ23M5TP2</string>
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>GXZ23M5TP2.iCloud.wiki.qaq.TrollFools.icloud-container</string>
</array>
<key>com.apple.private.persona-mgmt</key>
<true/>
<key>com.apple.private.security.container-manager</key>
Expand All @@ -23,10 +39,43 @@
<true/>
<key>com.apple.private.security.storage.AppDataContainers</key>
<true/>
<key>com.apple.private.security.storage.CloudDocsDB</key>
<true/>
<key>com.apple.private.security.storage.CloudKit</key>
<true/>
<key>com.apple.private.security.storage.DocumentRevisions</key>
<true/>
<key>com.apple.private.security.storage.MobileDocuments</key>
<true/>
<key>com.apple.private.security.storage.ciconia</key>
<true/>
<key>com.apple.private.security.storage.iCloudDrive</key>
<true/>
<key>com.apple.private.tcc.allow</key>
<array>
<string>kTCCServiceUbiquity</string>
<string>kTCCServiceSystemPolicyDesktopFolder</string>
<string>kTCCServiceSystemPolicyDocumentsFolder</string>
<string>kTCCServiceSystemPolicyDownloadsFolder</string>
</array>
<key>com.apple.private.tcc.manager</key>
<true/>
<key>com.apple.private.tcc.manager.check-by-audit-token</key>
<array>
<string>kTCCServiceUbiquity</string>
<string>kTCCServiceSystemPolicyDesktopFolder</string>
<string>kTCCServiceSystemPolicyDocumentsFolder</string>
<string>kTCCServiceSystemPolicyDownloadsFolder</string>
</array>
<key>com.apple.security.exception.files.absolute-path.read-write</key>
<array>
<string>/</string>
</array>
<key>com.apple.security.exception.files.home-relative-path.read-write</key>
<array>
<string>/Library/CloudStorage/</string>
<string>/Library/Mobile Documents/</string>
</array>
<key>com.apple.springboard.iconState</key>
<true/>
<key>com.apple.springboard.iconState.mutate</key>
Expand All @@ -39,6 +88,8 @@
<true/>
<key>com.apple.springboard.openurlswhenlocked</key>
<true/>
<key>file-read-data</key>
<true/>
<key>keychain-access-groups</key>
<array>
<string>wiki.qaq.TrollFools</string>
Expand Down
5 changes: 5 additions & 0 deletions devkit/standardize-entitlements.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

cd $(dirname $0)/..

plutil -convert xml1 TrollFools/TrollFools.entitlements

0 comments on commit d47f993

Please sign in to comment.