From 3d89c079a2bf703b0b4f3af8049e137176d31f3b Mon Sep 17 00:00:00 2001 From: opa334 Date: Sun, 26 Nov 2023 17:39:02 +0100 Subject: [PATCH] Very late bugfix: Also wipe data container when uninstalling an app --- RootHelper/main.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RootHelper/main.m b/RootHelper/main.m index 61615b2..1662ffb 100644 --- a/RootHelper/main.m +++ b/RootHelper/main.m @@ -775,6 +775,11 @@ int uninstallApp(NSString* appPath, NSString* appId, BOOL useCustomMethod) { LSApplicationProxy* appProxy = [LSApplicationProxy applicationProxyForIdentifier:appId]; + // delete data container + if (appProxy.dataContainerURL) { + [[NSFileManager defaultManager] removeItemAtURL:appProxy.dataContainerURL error:nil]; + } + // delete group container paths [[appProxy groupContainerURLs] enumerateKeysAndObjectsUsingBlock:^(NSString* groupId, NSURL* groupURL, BOOL* stop) {