From 2615e217b3f79393d4cd1ecb574835e6cdd7db86 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Mon, 13 Jan 2020 09:01:19 -0800 Subject: [PATCH] Falls back to using canOpenURL to detect AltStore/Delta/Clip installs --- AltStore/Managing Apps/AppManager.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AltStore/Managing Apps/AppManager.swift b/AltStore/Managing Apps/AppManager.swift index 4fbca082..654d66ab 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -66,9 +66,12 @@ extension AppManager } else { - if uti == nil + if uti == nil && !UIApplication.shared.canOpenURL(app.openAppURL) { // This UTI is not declared by any apps, which means this app has been deleted by the user. + // We also check canOpenURL as a fallback for apps installed before we switched to using custom UTIs. + // canOpenURL always returns NO for apps not declared in our Info.plist, + // so it should not affect UTI-based installation checks. context.delete(app) } }