Commit Graph

39 Commits

Author SHA1 Message Date
Riley Testut
a46c4a1063 Displays detailed error log in-app with Quick Look 2023-12-08 18:15:48 -06:00
Riley Testut
6a0e30cbb0 [AltStoreCore] Adds Date.shortDateFormatter 2023-12-08 15:24:40 -06:00
Riley Testut
f9ab215560 Allows changing BrowseViewController sort order 2023-12-08 14:04:36 -06:00
Riley Testut
2377ada199 Supports remotely disabling workaround for downloading Patreon attachments
In case our workaround for downloading Patreon post attachments breaks, we can remotely disable it and force AltStore to use its fallback instead (taking user to post directly).
2023-12-01 16:50:48 -06:00
Riley Testut
c04d63ba9d [AltStoreCore] Generalizes Source.sourceID(from:) logic into URL.normalized()
Allows comparing URLs that may have slight (but irrelevant) differences (e.g. trailing slashes).
2023-11-15 13:20:50 -06:00
Riley Testut
a6bc4b5d5f Merge branch 'revised_source_json'
# Conflicts:
#	AltStore.xcodeproj/project.pbxproj
#	AltStore/App Detail/AppContentViewController.swift
#	AltStore/App Detail/AppViewController.swift
#	AltStore/Base.lproj/Main.storyboard
#	AltStoreCore/Model/DatabaseManager.swift
2023-10-19 16:43:50 -05:00
Riley Testut
3656bf165b Merge branch 'sources_tab'
# Conflicts:
#	AltStore.xcodeproj/project.pbxproj
2023-10-19 14:18:43 -05:00
Riley Testut
a092c99b84 Logs misc. events with OSLog
* Discovering AltServers
* Clearing app cache
* Updating Friend Zone Patrons
2023-10-18 14:28:36 -05:00
Riley Testut
82d4e4d4d8 Logs AltJIT-related events with OSLog 2023-10-18 14:28:36 -05:00
Riley Testut
bf0a5b9e2d Logs Fugu14-related events with OSLog 2023-10-18 14:28:17 -05:00
Riley Testut
2133b6240d Logs sideloading-related events with OSLog 2023-10-18 14:28:17 -05:00
Riley Testut
17b6235ad9 Limits relative date strings to “Yesterday” and “Today”
Any relative date older than “Yesterday” will be displayed as absolute date instead.
2023-10-16 18:27:48 -05:00
Riley Testut
24334f88ce [AltStoreCore] Updates DatabaseManager to support #Preview macro
Synchronously loads database via startForPreview(), and also erases database for DEBUG builds.

# Conflicts:
#	AltStore.xcodeproj/project.pbxproj
2023-10-16 16:56:51 -05:00
Riley Testut
03fad2f202 [AltStoreCore] Updates DatabaseManager to support #Preview macro
Synchronously loads database via startForPreview(), and also erases database for DEBUG builds.
2023-10-11 18:02:12 -05:00
Riley Testut
990abb3162 [AltStoreCore] Fixes ALTAppPrivacyPermission.synthesizedName for legacy permissions 2023-10-10 15:29:34 -05:00
Riley Testut
21c2f8d5ce [AltWidget] Adds interactive Active Apps widget to view + refresh all active apps (iOS 17+) 2023-09-05 13:11:21 -05:00
Riley Testut
0db5e3caab Adds “Disable Response Caching” debug setting
When enabled, AltStore will ignore cached responses for certain requests and will always make a new request to the server. This is useful for development when repeatedly testing changes to remote files.

Limited to UpdateKnownSourcesOperation for now, but will eventually affect fetching sources as well.
2023-05-29 16:50:17 -05:00
Riley Testut
5bc8e609e8 Disables permission verification for DEBUG builds 2023-05-29 16:50:17 -05:00
Riley Testut
77bed04d68 Supports bypassing “Undeclared Permissions” error while sources are in beta
Presents error alert that can be explicitly bypassed by user when sideloading apps with undeclared permissions, and also allows user to view all undeclared permissions.
2023-05-22 15:02:26 -05:00
Riley Testut
fe412a07b6 Updates SourceError.blocked recovery suggestion to list installed/blocked apps
If source is already added, the error message will list all installed apps from the source.

If adding source for first time, the error message will mention exactly which apps have been blocked from the source (if provided).
2023-05-16 15:44:30 -05:00
Riley Testut
6053a075f4 [AltStoreCore] Backports iOS 15+ NSManagedObjectContext.performAndWait<T>()
Simplifies returning values and throwing errors from managed object contexts.
2023-05-16 15:15:43 -05:00
Riley Testut
bfb4fac42a Supports blocking third-party sources
Blocked sources cannot be added by new users, or updated for existing users.
2023-05-15 16:27:30 -05:00
Riley Testut
1a1d301642 [AltStoreCore] Replaces remaining Bundle.appGroups.first with Bundle.altstoreAppGroup
Ensures we can still find the correct AltStore app group even if it isn’t the first one listed in the Info.plist.
2023-04-04 17:50:48 -05:00
Riley Testut
b2ff0065a3 [AltStoreCore] Adds async wrappers for presenting UIAlertControllers 2023-04-04 16:49:12 -05:00
Riley Testut
86d2db189f [AltStoreCore] Adds NSManagedObjectContext.performAsync() to wrap iOS 15+ async perform()
Allows us to use Swift Concurrency with Core Data pre-iOS 15.
2023-04-04 14:21:00 -05:00
Riley Testut
e1f7e05042 Fixes Scanner.scanHexInt32 deprecation warning 2023-03-02 14:49:02 -06:00
Riley Testut
e93457de2f Fixes triggering false positives with some malware detectors
Renames UserDefaults.isMacDirtyCowSupported to .isCowExploitSupported
2023-02-14 14:07:48 -08:00
Riley Testut
c6476b6b4a Hides MacDirtyCow settings on iOS 15.7.2
MacDirtyCow supports iOS 14.0 - 15.7.1 and 16.0 - 16.1.2, but not 15.7.2
2023-02-08 13:47:54 -06:00
Riley Testut
053cc9feda Force-enables “Enforce 3-App Limit” if iOS version does not support MacDirtyCow exploit
Prevents “Enforce 3-App Limit” remaining enabled after updating iOS version without a way to disable it.
2023-02-07 16:36:11 -06:00
Riley Testut
eeea64f780 Supports sideloading more than 3 apps via MacDirtyCow exploit
The MacDirtyCow exploit allows users to remove the 3 active apps limit on iOS 16.1.2 and earlier. To support this, we’ve added a new (hidden) “Enforce 3-App Limit” setting that can be disabled to allow sideloading more than 3 apps.
2023-02-06 17:37:54 -06:00
Riley Testut
dbd71050ac [Shared] Adds OperatingSystemVersion+Comparable to AltServer target 2023-01-24 15:03:09 -06:00
Riley Testut
8609209821 Conforms OperatingSystemVersion to Comparable
# Conflicts:
#	AltStore.xcodeproj/project.pbxproj
2023-01-24 15:01:42 -06:00
Riley Testut
07daff261a Caches Friend Zone patrons to offset slow loading time
The Patreon API doesn’t have a way to fetch just the patrons belonging to our Friend Zone tier. Instead, we need to fetch ALL patrons (including inactive ones) and filter out those not in the tier. This is very inefficient, and takes over a minute to complete as of April 14, 2022, due to the number of patrons we have.

We can’t do much to change this, but AltStore will now at least cache the fetched patrons with Core Data. Additionally, AltStore will only perform this long fetch whenever the Friend Zone list actually changes, rather than every time the Patreon screen appears.
2022-04-14 17:56:36 -07:00
Riley Testut
1f7c089c70 Supports adding trusted sources from SourcesViewController
Previously, only the beta version of AltStore could add sources. Now, the public version supports adding explicitly “trusted” sources, while the beta version can continue to add any source.
2022-04-14 16:33:49 -07:00
Riley Testut
ed396b400d Supports installing Fugu14-based jailbreaks
If a jailbreak app contains the relevant Fugu14 entries in its Info.plist, AltStore will automatically guide the user through the Fugu14 untether process before installing the jailbreak.
2021-10-25 22:27:30 -07:00
Riley Testut
a3318b1253 Fixes AltDaemon untrusting apps on iOS 14
Refreshing with provisioning profiles causes apps to become untrusted on iOS 14 or later. As a (hopefully) temporary workaround, we instead now always re-install apps to refresh them on iOS 14+ jailbroken devices, which does still work as expected.
2021-02-26 21:08:10 -06:00
Riley Testut
50a5d56856 Migrates database + cached apps from app sandbox to app group 2020-09-16 12:09:12 -07:00
Riley Testut
88c8d5f0f8 [AltStoreCore] Adds Date, FileManager, and UIColor extensions 2020-09-14 14:18:15 -07:00
Riley Testut
f1a39e1a1f [AltStoreCore] Refactors core AltStore logic into AltStoreCore framework
AltStoreCore will contain all shared AltStore code between AltStore and any app extensions. Initially, it includes all AltStore model logic.
2020-09-03 16:39:08 -07:00