Riley Testut
cf4d308174
[AltStoreCore] Adds Permissions.plist with definitions for most known permissions
...
Simpler to update over time as a separate plist rather than in source code.
2024-12-26 21:15:29 +05:30
Riley Testut
72f4bd3657
Refactors app version comparison logic to always include buildVersion
...
Before, whether or not the source included the buildVersion affected the comparison. If present, the buildVersion was used in comparison, if not, only the version itself was used for comparsion.
This meant it was impossible to update from a version with a buildVersion to the same version without one (e.g. going from betas to final releases). Now we _always_ consider the buildVersion in the comparsion, so an earlier entry in versions array without buildVersion can be considered “newer” even if versions match.
2024-12-26 21:15:29 +05:30
Riley Testut
c59266c2cb
Disables permission verification for DEBUG builds
2024-12-26 21:15:29 +05:30
Riley Testut
8929b857cf
Removes support for “background mode” permissions
2024-12-26 21:15:29 +05:30
Riley Testut
00d6fdb1ea
Fixes erroneously showing “Unsupported Updates Available” message
2024-12-26 21:15:29 +05:30
Riley Testut
3203bcd6cb
Revises Entitlements UI on app detail page
2024-12-26 21:15:29 +05:30
Riley Testut
e20b223c55
Redesigns store page permissions UI to show all entitlements and privacy permissions
2024-12-26 21:15:29 +05:30
Riley Testut
d52d0fc4a8
[AltStoreCore] Adds some common ALTPrivacyPermissions
...
* Apple Music
* Bluetooth
* Calendars
* Camera
* Face ID
* Local Network
* Microphone
* Photos
2024-12-26 21:15:29 +05:30
Riley Testut
6168e0c3f1
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.
2024-12-26 21:15:29 +05:30
Riley Testut
fcf571a1ba
[AltStoreCore] Renames StoreApp.latestVersionString to _version
2024-12-26 21:15:29 +05:30
Riley Testut
35e3d09f4c
Supports app versions with explicit build versions
...
AltStore will now consider an update available if either:
* The source’s marketing version doesn’t match installed app’s version
* The source declares a build version AND it doesn’t match the install app’s build version
The installed app matches an app version if both maketing versions match, and the build versions match (if provided by the source).
2024-12-26 21:15:29 +05:30
Riley Testut
7c0f61de81
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).
2024-12-26 21:15:29 +05:30
Riley Testut
32fa812064
[AltStoreCore] Backports iOS 15+ NSManagedObjectContext.performAndWait<T>()
...
Simplifies returning values and throwing errors from managed object contexts.
2024-12-26 21:15:29 +05:30
Riley Testut
495cddf2e4
Supports blocking third-party sources
...
Blocked sources cannot be added by new users, or updated for existing users.
2024-12-26 21:15:29 +05:30
Riley Testut
8b68a41caf
Verifies downloaded app’s permissions match source
...
Renames source JSON permissions key to “appPermissions” in order to preserve backwards compatibility, since we’ve changed the schema for permissions.
2024-12-26 21:15:29 +05:30
Riley Testut
67ac0eb400
Verifies downloaded app’s SHA-256 checksum (if specified)
2024-12-26 21:15:29 +05:30
Riley Testut
1cd4b03d0f
[AltStoreCore] Flattens optional values when @Managed/@AsyncManaged.wrappedValue is also optional
2024-12-26 21:15:29 +05:30
Riley Testut
9499e9ec5c
[AltStoreCore] Adds Managed.perform() to match AsyncManaged
2024-12-26 21:15:29 +05:30
Riley Testut
c72d067403
[AltStoreCore] Renames AsyncManaged.get() to perform()
...
Implies it can be used as alternative to managedObject.managedObjectContext.perform() and not just for retrieving values.
2024-12-26 21:15:29 +05:30
Riley Testut
a6ef07450d
[AltStoreCore] Migrates Core Data model from v11 to v12
2024-12-26 21:15:29 +05:30
Riley Testut
c5f9896fab
[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.
2024-12-26 21:15:29 +05:30
Riley Testut
2917ebb5e4
[AltStoreCore] Fixes migration error on launch if AltStore app group does not exist.
...
Allows falling back to using regular app sandbox instead of app group.
2024-12-26 21:15:29 +05:30
Riley Testut
d4378bbe57
[AltStoreCore] Fixes incorrectly merging app versions for same app from different sources
2024-12-26 21:15:29 +05:30
Riley Testut
b7dc40ba03
[AltStoreCore] Adds async wrappers for presenting UIAlertControllers
2024-12-26 21:15:29 +05:30
Riley Testut
9265fd5a5d
Shows detailed source “About” page when adding 3rd-party sources
...
Allows users to preview sources before adding them to their AltStore.
2024-12-26 21:15:29 +05:30
Riley Testut
57837d37dd
[AltStoreCore] Adds Source.isAdded
...
Convenience property to determine whether a source has been added to the user’s AltStore.
2024-12-26 21:15:29 +05:30
Riley Testut
f3493e0a9e
[AltStoreCore] Adds @AsyncManaged property wrapper
...
Same as @Managed, except it supports using Swift Concurrency to fetch values from its managedObject’s managedObjectContext.
2024-12-26 21:15:29 +05:30
Riley Testut
fc4a8b09a5
[AltStoreCore] Adds NSManagedObjectContext.performAsync() to wrap iOS 15+ async perform()
...
Allows us to use Swift Concurrency with Core Data pre-iOS 15.
2024-12-26 21:15:29 +05:30
Riley Testut
b8e8ce8aac
[AltStoreCore] Fixes incorrect Source.featuredApps relationship post-merging
2024-12-26 21:15:29 +05:30
Riley Testut
256b0c14f5
[AltStoreCore] Supports additional source JSON values for detailed “About” page
2024-12-26 21:15:29 +05:30
Riley Testut
403b34c39c
Fixes error fetching Friend Zone patrons due to unexpected nil name
2024-12-26 21:15:29 +05:30
Riley Testut
b12e33d5c9
Removes unnecessary @available annotations
2024-12-26 21:15:29 +05:30
Riley Testut
ae11777359
Removes unnecessary #available checks
2024-12-26 21:15:29 +05:30
Riley Testut
8fb0304728
Fixes UIApplication.keyWindow deprecation warning
2024-12-26 21:15:29 +05:30
Riley Testut
74a0d0f580
Fixes Scanner.scanHexInt32 deprecation warning
2024-12-26 21:15:29 +05:30
Riley Testut
d4f98f3a94
[AltStoreCore] Fixes Core Data “Using nil or insecure value transformer” warnings
2024-12-26 21:15:29 +05:30
Riley Testut
c8a3ff0a9c
Fixes triggering false positives with some malware detectors
...
Renames UserDefaults.isMacDirtyCowSupported to .isCowExploitSupported
2024-12-26 21:15:29 +05:30
Riley Testut
a5b1a320de
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
2024-12-26 21:15:29 +05:30
Riley Testut
68d49bd1ca
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.
2024-12-26 21:15:29 +05:30
Riley Testut
07d5a7551f
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.
2024-12-26 21:15:29 +05:30
Riley Testut
31d5d024dd
Caches MergeErrors when refreshing sources to view later in SourcesViewController
2024-12-26 21:15:29 +05:30
Riley Testut
47fb8ff3eb
Fixes incorrect StoreApp.versions order post-merge
2024-12-26 21:15:29 +05:30
Riley Testut
333e68a859
Replaces StoreApp.setVersions() preconditionFailure with runtime error
...
It’s more common than expected for apps to not have any app versions, so better to fail gracefully than crash.
2024-12-26 21:15:29 +05:30
Riley Testut
3d586f2c64
Moves @Managed to AltStoreCore
2024-12-26 21:15:29 +05:30
Riley Testut
2e27447e36
[Shared] Adds OperatingSystemVersion+Comparable to AltServer target
2024-12-26 21:15:29 +05:30
Riley Testut
f45deb5ba4
Fixes missing app icon for update errors in Error Log
2024-12-26 21:15:29 +05:30
Riley Testut
b63adb38d8
Fixes potentially incorrect versions order when merging StoreApp
2024-12-26 21:15:29 +05:30
Riley Testut
fdbb40a0df
Hides app updates that don’t support device’s OS version
2024-12-26 21:15:29 +05:30
Riley Testut
3e9463c434
Replaces StoreApp.latestVersion with latestSupportedVersion + latestAvailableVersion
...
We now store the latest supported version as a relationship on StoreApp, rather than the latest available version. This allows us to reference the latest supported version in predicates and sort descriptors.
However, we kept the underlying Core Data property name the same to avoid extra migration.
2024-12-26 21:15:29 +05:30
Riley Testut
19463281cc
Limits quitting other AltStore processes to database migrations only
...
Previously, AltStore would quit all other processes when first accessing the database no matter what. However, this unintentionally caused the widget extension to quit the main app after refreshing apps.
Now, we only quit other AltStore processes if a database migration is required. This still prevents multiple AltStores with different database schemas from accessing database concurrently, but also allows extensions to access database without quitting main app.
2024-12-26 21:15:29 +05:30