From 536f775baab49bccb59ffd21b93da3790e7af361 Mon Sep 17 00:00:00 2001 From: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Tue, 11 Apr 2023 21:12:01 -0700 Subject: [PATCH] Revert "Don't reinstall on first SideStore refresh" This reverts commit 40e1225b875922d8d0dfe0e713434e4150a26e03. --- AltStore/Managing Apps/AppManager.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/AltStore/Managing Apps/AppManager.swift b/AltStore/Managing Apps/AppManager.swift index f6fb71ce..5bf39ed2 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -874,11 +874,7 @@ private extension AppManager // Check if backup app is installed in place of real app. 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 - // 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) || + if app.certificateSerialNumber != group.context.certificate?.serialNumber || uti != nil || app.needsResign {