mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 03:03:31 +01:00
Revert "Don't reinstall on first SideStore refresh"
This reverts commit 40e1225b87.
This commit is contained in:
@@ -874,11 +874,7 @@ private extension AppManager
|
|||||||
// Check if backup app is installed in place of real app.
|
// Check if backup app is installed in place of real app.
|
||||||
let uti = UTTypeCopyDeclaration(app.installedBackupAppUTI as CFString)?.takeRetainedValue() as NSDictionary?
|
let uti = UTTypeCopyDeclaration(app.installedBackupAppUTI as CFString)?.takeRetainedValue() as NSDictionary?
|
||||||
|
|
||||||
// for some reason, `app.certificateSerialNumber != group.context.certificate?.serialNumber` is true on first SideStore refresh
|
if app.certificateSerialNumber != group.context.certificate?.serialNumber ||
|
||||||
// in most cases, the first refresh gets stuck since it is a full reinstall, and to fix it you must exit to home screen
|
|
||||||
// which finishes it but removes all app data
|
|
||||||
// so we want to ensure we don't reinstall for SideStore if it's true (it will still reinstall if needsResign is true)
|
|
||||||
if (app.certificateSerialNumber != group.context.certificate?.serialNumber && app.bundleIdentifier != StoreApp.altstoreAppID) ||
|
|
||||||
uti != nil ||
|
uti != nil ||
|
||||||
app.needsResign
|
app.needsResign
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user