From 7bcd0ea748492dff1a18d3c8a7e857144a82a541 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Mon, 11 Dec 2023 15:05:00 -0600 Subject: [PATCH] Supports not including `get-task-allow` entitlement in source JSON if value is false --- AltStore/Operations/VerifyAppOperation.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AltStore/Operations/VerifyAppOperation.swift b/AltStore/Operations/VerifyAppOperation.swift index ec8f40c9..d04444d9 100644 --- a/AltStore/Operations/VerifyAppOperation.swift +++ b/AltStore/Operations/VerifyAppOperation.swift @@ -271,6 +271,11 @@ private extension VerifyAppOperation // Filter out ignored entitlements. allEntitlements = allEntitlements.filter { !ALTEntitlement.ignoredEntitlements.contains($0) } + if let isDebuggable = app.entitlements[.getTaskAllow] as? Bool, !isDebuggable + { + // App has `get-task-allow` entitlement but the value is false, so remove from allEntitlements. + allEntitlements.remove(.getTaskAllow) + } // Privacy let allPrivacyPermissions = ([app] + app.appExtensions).flatMap { (app) in